Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


autostart after inet reconnect
#5
O2 seems to only do a business broadband package, is this a business line? No broadband should be disconnecting unless there's a line stability problem or maybe a DHCP lease time issue, which you should take up with the ISP. Sorry to be deviating from your initial question but this is somewhat of an XY Problem, X being your connectivity problems.

That said does enabling repeat help? You could also create a playlist with the same radio station queued a bunch of times and play that on repeat (probably easiest option).
Moode also has a playlist-based "Clock Radio" function if you didn't know, add your radio station to a playlist and make it play at a certain time.

Last ditch option I guess is that you could create a cron job on the Pi that runs 'mpc play' at a certain time of the day, this will trigger playback of whatever's currently stopped.
e.g. login as pi and edit the pi user's crontab;
Code:
crontab -e
append a cronjob to the file and save the change, something like;
Code:
0 4 * * * /usr/bin/mpc play
The above example will hit play every morning at 4am. mpd should continue playback of whatever it was last playing.
Reply


Messages In This Thread
autostart after inet reconnect - by Utzbrösel - 09-07-2020, 05:55 PM
RE: autostart after inet reconnect - by vinnn - 09-07-2020, 07:20 PM
RE: autostart after inet reconnect - by DRONE7 - 09-08-2020, 08:08 AM
RE: autostart after inet reconnect - by vinnn - 09-08-2020, 08:36 AM
RE: autostart after inet reconnect - by DRONE7 - 09-08-2020, 08:56 AM

Forum Jump: