panos_k75;420918 Wrote: > hmmm...what if I want to put the player on sleep but I dont want the > plugin to take any action (for instance I want the server to perform > other functions overnight but my music to stop after lets say 30 > minutes)?
Do any of the following: * Don't enable "Monitor Sleep Timers" in the first place. -- or -- * Set a block that inhibits shutdown/suspend, etc. -- or -- * Create a custom script with the chores that you want executed over night. Then point the "Custom end-of-day action command" at that script (include sudo and put an appropriate entry in /etc/sudoers). Enable "Perform end-of-day action". Set the "Allowed idle time (minutes)" to 0 (zero). Set the end-of-day start and end times for 2:00 am and 2:05 am. Finally, include a "setblock" command at the head of your script: touch /var/lock/spc-block ..and clear the block at the end of the script: rm --force /var/lock/spc-block With this setup, SrvrPowerCtrl will wake your server up at 2:00 am and perform the chores script and then put itself back to sleep when the chores are done. -- or -- Create a cron job that executes your chores script at the appropriate time, say, 2:01 am. Then create a "silent" alarm for 2:00 am or whathaveyou. A silent alarm would just be a playlist with one entry: a mp3 or wav file of silence. SrvrPowerCtrl will wake up the server for the alarm. With the server awake, the cron job fires. Personally, I use the "End of day" option above. My "chores" script performs an OS update and does svn updates of my SqueezeCenter installations. -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
