Mopidy extension to drive relays on Seeed Relay board (http://wiki.seeedstudio.com/Raspberry_Pi_Relay_Board_v1.0/)
Turns on selected relay on playback start and turns it off on playback end. You can use it to turn on/off your amplifier.
Install by running:
cd ~ git clone https://github.com/rmichalak/mopidy-seeedrelays.git cd mopidy-seeedrelays sudo python setup.py develop
Alternatively for a local installation you can change the last line to:
python setup.py install --user
Before starting Mopidy, you must add configuration for Mopidy-SeeedRelays to your Mopidy configuration file:
[relays] i2c = 1 # (default) i2c bus with board connected address = 0x20 # (default) board address relay=1 # (required) relay number to control
For board settings, please refer to http://wiki.seeedstudio.com/Raspberry_Pi_Relay_Board_v1.0/
- Original author: Robert Michalak
- Current maintainer: Robert Michalak
- Contributors