https://github.com/prayerslayer/mopidy-serialport
Control Mopidy via messages over serial port
https://github.com/prayerslayer/mopidy-serialport
Last synced: 4 months ago
JSON representation
Control Mopidy via messages over serial port
- Host: GitHub
- URL: https://github.com/prayerslayer/mopidy-serialport
- Owner: prayerslayer
- License: apache-2.0
- Created: 2016-01-14T22:08:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-26T21:40:44.000Z (about 10 years ago)
- Last Synced: 2024-04-15T02:57:48.329Z (almost 2 years ago)
- Language: Python
- Size: 18.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
****************************
Mopidy-SerialPort
****************************
.. image:: https://img.shields.io/pypi/v/Mopidy-SerialPort.svg?style=flat
:target: https://pypi.python.org/pypi/Mopidy-SerialPort/
:alt: Latest PyPI version
.. image:: https://img.shields.io/pypi/dm/Mopidy-SerialPort.svg?style=flat
:target: https://pypi.python.org/pypi/Mopidy-SerialPort/
:alt: Number of PyPI downloads
.. image:: https://img.shields.io/travis/prayerslayer/mopidy-serialport/master.svg?style=flat
:target: https://travis-ci.org/prayerslayer/mopidy-serialport
:alt: Travis CI build status
.. image:: https://img.shields.io/coveralls/prayerslayer/mopidy-serialport/master.svg?style=flat
:target: https://coveralls.io/r/prayerslayer/mopidy-serialport
:alt: Test coverage
Mopidy extension for control via serial messages
Installation
============
Install by running::
pip install Mopidy-SerialPort
Or, if available, install the Debian/Ubuntu package from `apt.mopidy.com
`_.
Configuration
=============
Before starting Mopidy, you must add configuration for
Mopidy-SerialPort to your Mopidy configuration file::
[serialport]
enabled = true # self-explanatory
port = /dev/ttyACM0 # port to pass to pyserial for communication
baud = 9600 # baud rate to pass to pyserial
min_volume = 0
max_volume = 100
volume_step = 2
enable_noise = true # whether or not to play some fm noise between channel switching
# channels are newline separated
# channels are activated via the "Cn" command
# channels must be URIs
channels = soundcloud:directory:explore/0
soundcloud:directory:explore/5
Signals
=======
This extension writes ``OK`` once on startup. All communication (read and write) is expected to end with CRLF (\\r\\n).
- ``V+``: Volume up 1 step, but not more than ``max_volume``
- ``V-``: Volume down 1 step, but not less than ``min_volume``
- ``Cn``: Set channel to ``n`` (``n`` is a number >= 0)
- ``P1``: Pause playback
- ``P0``: Resume playback
Project resources
=================
- `Source code `_
- `Issue tracker `_
Changelog
=========
v0.1.0 (UNRELEASED)
----------------------------------------
- Initial release.