Moode Forum
autostart after inet reconnect - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: autostart after inet reconnect (/showthread.php?tid=2950)



autostart after inet reconnect - Utzbrösel - 09-07-2020

Hi

i´m using moode for a whole time. Now we changed  our inet provider out of necessity, waiting since 3 years for fibreglas...

Now the provider makes a reconnect every 24 hours. When i awake in the morning, i have to start the radio manually. Not so good for the WAF.

Is there a way (a script for example) to restart play after loosing inet connection?

Sorry, i´m new to linux, i only installed this great piece of software on my pi 3 and it works...


RE: autostart after inet reconnect - vinnn - 09-07-2020

Surely that's just a setting your router no?


RE: autostart after inet reconnect - Utzbrösel - 09-08-2020

Nope

it´s because of the provider (02) . I cannot deactivate it.


RE: autostart after inet reconnect - DRONE7 - 09-08-2020

Quote:it´s because of the provider (02)

Who ??? Where ?? Why ??  Have you a link to their T&Cs and reason for this ? I know of no provider that will not supply an always on connection...seems strange.

Quote:I cannot deactivate it.
Can the provider ? Have you enquired of them ?


RE: autostart after inet reconnect - vinnn - 09-08-2020

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.


RE: autostart after inet reconnect - DRONE7 - 09-08-2020

You may suffer a substandard or noisy line hence the DLM resets....
https://support.zen.co.uk/kb/KnowledgebaseArticle.aspx?articleid=11511
Quote:When would a change take place?

The DLM system collects data throughout the day and analyses it overnight. If a change is required this would cause a brief disconnection – which takes place between 3am and 6am in order to minimise the impact on users. 

https://community.bt.com/t5/ADSL-Copper-broadband/DLM-Reset/td-p/1861918

Either way it seems to be something to take up with your provider rather than something MoOde could fix...


RE: autostart after inet reconnect - Utzbrösel - 09-08-2020

Hi

it´s a litte bit complicated... Our first provider canceled our contract ( DSL 6 mbit analog phone) since 2018 !! we are waiting for the fibreglas (it´s already installed in out home (ftth) but not online) so we went to o2 to save our phone numbers. So now with this o2 we have a lot of problems with stucking connections etc. I´m from a very small village in Germany...

But I´ll do test the cron of vinnn. Thank youi