https://github.com/qurben/mopidy-headless
Control Mopidy with generic input devices
https://github.com/qurben/mopidy-headless
evdev mopidy python
Last synced: 12 days ago
JSON representation
Control Mopidy with generic input devices
- Host: GitHub
- URL: https://github.com/qurben/mopidy-headless
- Owner: qurben
- License: apache-2.0
- Fork: true (avanc/mopidy-headless)
- Created: 2014-12-23T19:55:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T08:38:58.000Z (almost 6 years ago)
- Last Synced: 2025-09-28T15:10:55.298Z (4 months ago)
- Topics: evdev, mopidy, python
- Language: Python
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Mopidy Headless
===============
Mopidy headless makes it possible to connect a HID (Human Interface Device), like a remote or a keyboard, to a Mopidy server.
Use ir-keytable from lirc to see which keycodes are supported::
# ir-keytable -td /dev/input/...
Configuration
-------------
The default config is the following::
[headless]
enabled = true
device = ;needs to be set
enable_numbers = true
volume_up = KEY_VOLUMEUP
volume_down = KEY_VOLUMEDOWN
next_song = KEY_RIGHT, KEY_NEXTSONG
previous_song = KEY_PREVIOUSSONG, KEY_LEFT
play = KEY_PLAY
pause = KEY_PAUSE
playpause = KEY_ENTER
mute = KEY_MUTE
next_playlist = KEY_CHANNELDOWN, KEY_DOWN
previous_playlist = KEY_CHANNELUP, KEY_UP
shuffle = KEY_RECORD
The device is found in /dev/input.
By default the numpad of the remote is bound to the corresponding playlists on your Mopidy installation. Disable this by setting enable_numbers to false.
Make sure that the user running mopidy can read from the device you want to use. See http://puredata.info/docs/faq/how-can-i-set-permissions-so-hid-can-read-devices-in-gnu-linux to allow a non-root user to read from input devices.