![]() |
time scheduling playlists - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: time scheduling playlists (/showthread.php?tid=3451) |
time scheduling playlists - kennedy - 02-03-2021 Hi, anyone know how to schedule playlists in moode using crontab ? also how to upload playlists from nextcloud to several Pis running moode ? RE: time scheduling playlists - TookaFace - 02-03-2021 I don't know with crontab, i would recommand systemd timer instead: Code: sudo systemd-run --unit=Playlist_Soul --on-calendar='2021-02-03 19:00' --timer-property=AccuracySec=500ms sh -c 'mpc clear; mpc load Soul; mpc play' Will create a timer and a service for loading your playlist Soul at 19H today. You also can replace the mpc commands by a script if u want do more stuff. To watch ur timers: Code: systemctl list-timers To disable the timer: Code: sudo systemctl stop Playlist_Soul.timer To reset the timers who failed: Code: sudo systemctl reset-failed RE: time scheduling playlists - kennedy - 02-04-2021 I think i need a script done as I have many tasks I want Moode to carry out. If I was to post a job online for a freelancer to do this what language or particulars would I need to mention? also want someone to write a script or show me how to integrate nextcloud to upload the music to the Pis. I am not a programmer and know very little about raspberrys. thanks very much for your help RE: time scheduling playlists - KmPan - 02-04-2021 (02-03-2021, 02:41 PM)TookaFace Wrote: I don't know with crontab, i would recommand systemd timer instead: ![]() |