Mopidy-EvtDev
Mopidy extension for controlling music playback from virtual input device
Installation
Install by running:
pip install Mopidy-EvtDev
Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.
Configuration
Before starting Mopidy, you must add configuration for Mopidy-EvtDev to your Mopidy configuration file:
[evtdev] # Location of virtual input devices dev_dir = /dev/input # List of virtual devices to open which can be either their path, name or physical address # Leave blank to listen to all devices devices = 00:11:67:D2:AB:EE, AT Translated Set 2 keyboard, isa0060/serio0/input0 # Refresh period in seconds to check for new input devices refresh = 10
To permit mopidy to read virtual input devices without root permissions, you need to add the following into /etc/udev/rules.d/99-input.rules:
KERNEL==”event*”, NAME=”input/%k”, MODE=”660”, GROUP=”audio”
If you are concerned by security, then create a separate group name and add mopidy as a member to that group. E.g.,
KERNEL==”event*”, NAME=”input/%k”, MODE=”660”, GROUP=”input”
Otherwise, just run mopidy as root to avoid any additional configuration requirements.
Project resources
Changelog
v0.1.1
Fixes issue #7: Race hazard - closing and re-opening already devices causes events to be missed.
Improved unit test coverage.
v0.1.0
Initial release.
Metadata
Release files for Mopidy-EvtDev 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Mopidy-EvtDev-0.1.1.tar.gz | 13.3 kB | Without provenance | Details for Mopidy-EvtDev-0.1.1.tar.gz |
Release files / Mopidy-EvtDev-0.1.1.tar.gz
| Download URL | Mopidy-EvtDev-0.1.1.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f091e29082aaab140fe929db042e1e595fafb9fdae78750d8029cc7645635fd6
|
|
BLAKE2b-256 checksum How to use checksums |
9e898f2df7484ab0c5f80edb4a2fda0f276a42648172e8ee35a3df585625bd1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Mopidy-EvtDev 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.