[slim] Re: Script .bat for scheduled power on /off
To set an scheduled Power on/off of the Squeeze Box i have done this ( for windows XP ): STEP 1. WAKE UP 1º.- Install the Plugin called Alarm A [ http://callisto.deane-freeman.com/slimserver/ ] . With this you can wake up every weekday or weekend. 2º.- Install de Slim Server 6.2 and set up the alarm ( you can set it up for every day or for a single day ) , that´s 8 alarms in one ( great service ¡¡ ). STEP 2. POWER OFF 3º.- Download http://media.qwertyboy.org/files/sstime.exe to send CLI to the server 4º.- Make a simple text file called ( for example ) poweroff.txt with this lines : 00:04:20:10:aa:aa power 0 The first number is the MAC address of the player 5º.- Make a .bat file called ( for example ) ShutSQ2.bat with this lines : sstime.exe 192.168.20.1 9090 poweroff.txt where 192.168.20.1 is the IP of the Slim Server ( not of the player ¡¡ ) , 9090 is the standar communication port , and poweroff.txt is the name for the file you´ve done on step 4. STEP 3. SCHEDULE 6º By using the Windows Task Manager Schedule the ShutSQ2.bat file to power off the SQ2 at the desired time after the alarm has waked it up . Hope this will be useful for you ¡¡ Thank you to all the folks that help me before. ;) -- vayaruina ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Script .bat for scheduled power on /off
I´ve downloaded the .exe from : http://media.qwertyboy.org/files/sstime.exe form the threat : http://forums.slimdevices.com/showthread.php?t=17032highlight=sstime.exe i´m gonna try and post the script ( if i can to make it works , because i haven´t programing knowledge but so many illusion ¡¡ ) Thank you folks ¡¡ -- vayaruina ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Script .bat for scheduled power on /off
There's some code in my shutdown plugin at http://www.thespicers.net/slim.html#misc that fires commands against the cli. I stole this code from someone else, but can't remember who now (it's acknowledged in the source, though). You could easily change this to do something different and then call it from a batch file. Max vayaruina Wrote: I´ve downloaded the .exe from : http://media.qwertyboy.org/files/sstime.exe form the threat : http://forums.slimdevices.com/showthread.php?t=17032highlight=sstime.exe i´m gonna try and post the script ( if i can to make it works , because i haven´t programing knowledge but so many illusion ¡¡ ) Thank you folks ¡¡ -- max.spicer The wild things roared their terrible roars and gnashed their terrible teeth and rolled their terrible eyes and showed their terrible claws but Max stepped into his private boat and waved good-bye ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Script .bat for scheduled power on /off
vayaruina, in SlimServer 6.2 (still beta) you can define different start times with different playlists for every day. check the alarm menu for your squeezebox2 in slimserver 6.2. cheers jens -- jensboe ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Script .bat for scheduled power on /off
jensboe , so , we can´t do a simply batch file with the command lines options ? Maybe 6.2 can power up the system , but i´d like to power it off too ( i don´t like too much to play with buttons on early working mornings ¡¡ ) Thank you mate ¡¡¡ -- vayaruina ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
Re: [slim] Re: Script .bat for scheduled power on /off
so , we can´t do a simply batch file with the command lines options ? Of course you can. Have a look at the CLI documentation. But on Windows you'd need some additional tools to do connections from a batch file. Or some Perl scripting knowledge ;-). Or have a search in the forums: there was recently a benchmarking program published, which can run a batch of CLI commands from a text file. You could use it to automate tasks on from batch files (the file was called sstime.exe) -- Michael --- Help translate SlimServer by using the StringEditor Plugin (http://www.herger.net/slim/) ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: Script .bat for scheduled power on /off
i saw a program once on www.downloads.com that could run and end programs at set times. Can't remember what it was called though sorry. Also, could you not use windows task scheduler? EDIT: Oh, i see you need to run a specific playlist too. -- dangerous_dom ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss