11-19-2019, 11:59 AM
Hi
I had a quick look at this, as I am also interested in remote access, and it is straighforward to set up.
I installed an MQTT broker on the Moode machine, and added a user and password
https://www.vultr.com/docs/how-to-instal...untu-16-04
Then adjusted the python script in the following link to use the local broker
https://funprojects.blog/2016/12/13/house-music/
I can then play a radio station from a different debian-based machine, by installing "mosquitto-clients" and running
You could use the Python script as a starting point for adding the features you want, and then create a systemctl service file so the script is started at boot.
My interest in this is that I have been thinking about creating a standalone screen, connected to some small board, to display status and control the player. There are some very cheap TFT touchscreens
https://www.ebay.es/itm/240x320-2-4-SPI-...EBIDX%3AIT
Adrian.
I had a quick look at this, as I am also interested in remote access, and it is straighforward to set up.
I installed an MQTT broker on the Moode machine, and added a user and password
https://www.vultr.com/docs/how-to-instal...untu-16-04
Then adjusted the python script in the following link to use the local broker
https://funprojects.blog/2016/12/13/house-music/
Code:
client.subscribe("MoodeRadio")
...
client = mqtt.Client()
client.username_pw_set("my_username", "my_password")
client.connect("localhost",1883,60)
I can then play a radio station from a different debian-based machine, by installing "mosquitto-clients" and running
Code:
mosquitto_pub -t "MoodeRadio" -m "http://51.15.169.131:80/stream/3/" -u my_username -P "my_password" -h moode_player_ip_address
You could use the Python script as a starting point for adding the features you want, and then create a systemctl service file so the script is started at boot.
My interest in this is that I have been thinking about creating a standalone screen, connected to some small board, to display status and control the player. There are some very cheap TFT touchscreens
https://www.ebay.es/itm/240x320-2-4-SPI-...EBIDX%3AIT
Adrian.