BookSwapSteve / Mopidy-MediaButton

Mopidy extension to control playback / volume with a bluetooth media button

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mopidy-MediaButton

Dependencies

You must have a media button (BT005)

  • Bluetooth must be enabled on your device
  • The media button needs to be paired with the device.

Installation

Install the Mopidy-MediaButton extension by running:

pip install mopidy-mediabutton

Development

Clone/download from git and install by using:

# python setup.py develop

or

python setup.py install

Restart Mopidy:

# systemctl restart mopidy
View logs::
$ nano /var/log/mopidy/mopidy.log
Edit configuration
# nano /etc/mopidy/mopidy.conf

Configuration

If no music is paused/playing, pressing play on the media button will play the default_playlist defined in the configuraiton

[mediabutton] default_playlist = PressPlayOnMediaButton button_name = BT005

This may require additional permissions for the button event watcher.

run as sudo...

Usage

The extension is enabled by default if all dependencies are available.

Project resources

Credits

Changelog

v0.1 (2018-08-25)

  • Initial release

About

Mopidy extension to control playback / volume with a bluetooth media button

License:Apache License 2.0


Languages

Language:Python 100.0%