Le 21/04/2018 à 06:27, Damian a écrit : > > Hi, > > I realise that there has been quite a lot of discussion in previous > threads about getting playlists to reload when they are scheduled in > a switch. I have been trying to get my test script below to reload a > playlist so that it starts on time and at the beginning of a randomised > playlist with each scheduled switch. > > But each time the playlist is scheduled to start, it does not refresh > the playlist and start from the beginning. I have my test schedule below > set to switch to a new playlist every 5 minutes (this is just so I can > monitor the transitions for now, but I’ll obviously extend the play time > length later). What seems to happen is that the playlist doesn’t start > afresh. It continues from where it left off previously. I’ve tried > adding a reload time of 6 minutes to each playlist (so that the > playlists will have reloaded before the next scheduled switch is due) > but this doesn’t seem to work either. > > Can anyone tell me the best or easiest way to get the switch to start a > new playlist so that it is randomised and at the beginning of the > playlist on each scheduled switch time?
The way I do it is by actually reloading it through the socket before it starts... I have a crontab doing: echo -e "mylist.reload\r\nquit\r\n" | socat - UNIX-CONNECT:radio.sock 10 minutes or so before the playlist starts. Might be a bit ugly, but combined with check_next, it's an easy way to have something random (and updated) while avoiding repetitions! Gilles ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users