Mopidy extension for remote control via MQTT broker
Project description
Based on .
Installation
Using pip:
pip install Mopidy-MQTT-NG
Configuration
You have to at least configure the MQTT broker access. By default it's assumed to be installed locally.
[mqtt]
host = <mqtt broker address>
port = 1883
topic = mopidy
Note: Remember to also supply username
and password
options if your
MQTT broker requires authentication.
Features
- Sends information about Mopidy state on any change
- Playback status
- Volume
- Track description
- Reacts to control commands
- Playback control
- Tracklist control
- Volume control
- Track search [WIP]
- Responds to specific information inquiries
MQTT protocol
Topics
Default top level topic: mopidy
.
Control topic: mopidy/c
.
Information topic mopidy/i
.
Publishing
Kind | Subtopic | Values |
---|---|---|
State | /sta |
paused / stop / playing |
Volume | /vol |
<level:int> |
Current track | /trk |
<artist:str>;<title:str>;<album> or |
Subscribing
Kind | Subtopic | Values |
---|---|---|
Playback control | /plb |
play / stop / pause / resume / toggle / prev / next |
Volume control | /vol |
=<int> or -<int> or +<int> |
Add to queue | /add |
<uri:str> |
Load playlist | /loa |
<uri:str> |
Clear queue | /clr |
|
Search tracks | /src |
<str> |
Request info | /inf |
state / volume / queue |
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-MQTT-NG-1.0.0.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for Mopidy_MQTT_NG-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984f597bd639b4e34d3680ab33f574f9d9740705be31921ada4f3857b2e0a876 |
|
MD5 | 7ef7f06a05d4a03d7f5d582f1b65c836 |
|
BLAKE2b-256 | 2887331e96c96814176d6333e9b1393c9286bd51b6e525ce94637159d87a516e |