Skip to main content

Mopidy extension for GPIO input on a Raspberry Pi

Project description

Latest PyPI version CircleCI build status Test coverage

Mopidy extension for GPIO input on a Raspberry Pi

Installation

Install by running:

python3 -m pip install Mopidy-Raspberry-GPIO

Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.

Configuration

Before starting Mopidy, you must add configuration for Mopidy-Raspberry-GPIO to your Mopidy configuration file:

[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,250
bcm6 = volume_down,active_low,250
bcm16 = next,active_low,250
bcm20 = volume_up,active_low,250

Each bcmN entry corresponds to the BCM pin of that number.

You must assign an event, mode and bouncetime (ms) to your desired pins.

Supported events:

  • play_pause

  • volume_up

  • volume_down

  • next

  • prev

Supported modes:

  • active_low - configures the pin with a pull-up and triggers when it reads 0/low (RECOMMENDED)

  • active_high - configures the pin as a pull-down and triggers when it reads 1/high

Project resources

Credits

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-raspberry-gpio-1.0.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

mopidy_raspberry_gpio-1.0.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file mopidy-raspberry-gpio-1.0.0.tar.gz.

File metadata

  • Download URL: mopidy-raspberry-gpio-1.0.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for mopidy-raspberry-gpio-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a0bb0c175f924da0a704b5682fb952d50e52097cc6bb4fff9077429f613b816f
MD5 a6fe9e5a788f34f366d73c44588dbadf
BLAKE2b-256 3a28ead9c3f72c4d085fee25d46dd54810ab3f70caf32207b13041c0e4f6fa95

See more details on using hashes here.

File details

Details for the file mopidy_raspberry_gpio-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mopidy_raspberry_gpio-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for mopidy_raspberry_gpio-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c31949803362f8fced19215856662f9c935d17c4f31b37cff94446fe7582cfc1
MD5 b7e187045b579c69cf24ed9dbbbdba16
BLAKE2b-256 768f281d587ee896a3442dda7b4d00741fc9537b3d076a5d210dd9132aad9fce

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