Skip to main content

Mopidy extension for virtual input devices

Project description

Latest PyPI version Number of PyPI downloads Travis CI build status Test coverage

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.0

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Mopidy-EvtDev-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

File details

Details for the file Mopidy-EvtDev-0.1.0.tar.gz.

File metadata

File hashes

Hashes for Mopidy-EvtDev-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4849e597c1bd7060a4fed0556c71633c00c7752993ca2bfc6f9b77089faeb41
MD5 1480ff6283e266d8312dfde0385b34f5
BLAKE2b-256 11c4e3024419226128473dce2b98e0f87b8a9afb38de9178f313473add22c5b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page