Moode Forum
[IDEA] Enable cron daemon to schedule shutdown - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8)
+--- Thread: [IDEA] Enable cron daemon to schedule shutdown (/showthread.php?tid=5097)



Enable cron daemon to schedule shutdown - romain - 10-02-2022

Hello,

one of my moOde devices is plugged onto a smart plug that I've programmed to shutdown at 1:30 am and wakes up at 6:30 am. I've enabled the cron systemd service, disabled by default in moOde, to shutdown my moOde device at 1:15 am every day.

Would it be possible to schedule shutdown via system config in a future version ? On my own setup, the cron command line looks like this :

15 1    * * *   /usr/sbin/shutdown -h -P now

Thanks,
Romain


RE: Enable cron daemon to schedule shutdown - Tim Curtis - 10-02-2022

I think you can already do it with Clock Radio.

Set the mode to "Sleep Timer"
Set a Stop time
Set Action after stop to Shutdown


RE: Enable cron daemon to schedule shutdown - romain - 10-02-2022

(10-02-2022, 03:43 PM)Tim Curtis Wrote: I think you can already do it with Clock Radio.

Set the mode to "Sleep Timer"
Set a Stop time
Set Action after stop to Shutdown

Thanks Tim I'll give it a try