pixel wrote:Hi. How to make the radio play immediately after powering on? Simulate pressing a play button?
Setup a playlist with your radio station, probably worth including additional station for the odd occasions when the stream isn't available as runeaudio will automatically move to the next.
Have python script that will launch your chosen playlist, following example of the python code
- Code: Select all
import os
print "Station Preset 1 Pressed"
os.system("mpc clear")
os.system("mpc load 'Radio Preset'")
os.system("mpc play 1")
Create a service that will call and run your python script
I have examples for something similar for running my gpio button scripts, though I don't launch a station at switch on:-
https://github.com/lakeuk/Runeaudio-extensionsAlternatively you could used the alarm add-on turn switch on the radio at set time, this is what I do, theirs a post for the add-on on this forum somewhere.