{"id":24757176,"url":"https://github.com/magcode/mopidy-mqtt","last_synced_at":"2025-09-09T15:33:44.300Z","repository":{"id":84484891,"uuid":"97401929","full_name":"magcode/mopidy-mqtt","owner":"magcode","description":"MQTT features for Mopidy","archived":false,"fork":false,"pushed_at":"2023-12-14T19:48:19.000Z","size":41,"stargazers_count":22,"open_issues_count":1,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-18T07:44:20.541Z","etag":null,"topics":["mopidy","mopidy-frontend","mqtt"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-07-16T18:14:23.000Z","updated_at":"2024-05-18T07:44:20.542Z","dependencies_parsed_at":"2023-12-14T20:48:39.272Z","dependency_job_id":"6318dffd-fa03-4dc9-8f1e-18a04b0d2020","html_url":"https://github.com/magcode/mopidy-mqtt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fmopidy-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fmopidy-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fmopidy-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magcode%2Fmopidy-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magcode","download_url":"https://codeload.github.com/magcode/mopidy-mqtt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236032294,"owners_count":19084216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mopidy","mopidy-frontend","mqtt"],"created_at":"2025-01-28T14:36:36.563Z","updated_at":"2025-01-28T14:36:37.194Z","avatar_url":"https://github.com/magcode.png","language":"Python","readme":"# Features\n\nThis Mopidy Frontend Extension allows you to control Mopidy with MQTT and retrieve some information from Mopidy via MQTT.\nThe implementation is very basic. Open for any kind of pull requests.\nTested with Mopidy V3.\n\n## Status update\n\nMopidy sends an update as soon the playback state changes:\n\n`mytopic/state -\u003e 'paused'`\n\nWhen a new title or stream is started Mopidy sends this via `nowplaying`\n\n`mytopic/nowplaying -\u003e 'myradio'`\n\nAlso the image url is send:\n\n`mytopic/image -\u003e 'https://i1.sndcdn.com/artworks-kT5TLalLJI36UD05-BMX4rQ-t500x500.jpg'`\n\n## Play a song or stream\nYou can start playback of a song or stream via MQTT. Send the following:\n\n`mytopic/play -\u003e 'tunein:station:s48720'`\n\n## Stop playback\nYou can stop the playback via MQTT. Send the following:\n\n`mytopic/control -\u003e 'stop'`\n\n## Change volume\nYou can change the mixer volume from 0 to 100 via MQTT. Send the following:\n\n`mytopic/volume -\u003e '50'`\n\n# Installation\n\nThis is an example how to install on a Raspi:\n\n```\ncd ~\ngit clone https://github.com/magcode/mopidy-mqtt.git\ncd mopidy-mqtt\nsudo python3 setup.py develop\n```\nAlternatively for a local installation you can change the last line to\n```\npython3 setup.py install --user\n```\n\nNow configure the following file: `/etc/mopidy/mopidy.conf`\n\n```\n[mqtthook]\nenabled = true\nmqtthost = \u003cmqtt host\u003e\nmqttport = \u003cmqtt port\u003e\nusername = \u003cmqtt username\u003e (Optional)\npassword = \u003cmqtt password\u003e (Optional)\ntopic = \u003ctopic, e.g. home/livingroom/music\u003e\nstoppedimage = An image url which will be posted to the 'image' topic in case Mopidy playback is stopped. Use https://mydomain/myimage.png\ndefaultimage = An image url which will be posted to the 'image' topic in case there is no other image available. Use https://mydomain/myimage.png\n```\n\nRestart Mopidy with `sudo service mopidy restart`\n\nTo check Mopidy log run `sudo tail -f /var/log/mopidy/mopidy.log`\n","funding_links":[],"categories":["Interfaces"],"sub_categories":["Home Entertainment"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagcode%2Fmopidy-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagcode%2Fmopidy-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagcode%2Fmopidy-mqtt/lists"}