Sends the currently playing track from Azuracast to MQTT Broker
2.0K
Sends the currently playing information from Azuracast to MQTT Broker.
If you are using Azuracast to run an Internet Radio Station, this script could be for you. It will take the currently playing track information for all of the stations on your Azuracast instance and send that information to an MQTT Broker to allow you to use it in other ways as needed. For example, this data could be sent to Home Assistant for display or for automations to be run when something changes.
My wife and I play Farming Simulator alot and the game has an in-game radio system that allows you to listen to music like if you were listening to a stereo in your car. It has some functionality to allow you to add Icecast radio streams from the internet to the "channel" list. I setup an Azuracast instance to allow us to add some stations of our own music to the game to listen to. It works great. I also setup some Discord bots around that to allow us to listen to the music streams as well.
I wanted a central dashboard to be able to see what all was playing on each station, so I put this together to let me add the information to Home Assistant. But the data can be used for any other application by connecting to the MQTT Broker and pulling the data from the topics.
This script is lightweight enough to be run on a Raspberry Pi (which is how I run it)
For configuration and other information, please see the repository on Github at https://github.com/n8acl/azuracast_to_mqtt
Content type
Image
Digest
sha256:df3e0e438…
Size
322.1 MB
Last updated
about 2 years ago
docker pull n8acl/azuracast_to_mqtt