==========
I'd like to be able to shut down the box on demand and have the
auto wakeup programmed to make the next recording.
==========

I do that.

===========
I've figured out how to look in the mysql "record" table to find a
scheduled program after the current time, but I don't see where to
figure in exceptions (e.g., program already recorded, or manually
set not to record). Where do I look for this information? 
===========


I was trying to figure out the same thing, but for now I took the easy and ugly 
way out, by scraping the info from localhost:6544. I am running 0.15.1, using 
the following :

#!/usr/bin/bash
#Save the status file in  the temp directory:
wget http://localhost:6544 -O /tmp/mythstatus.html -q

#Get next recording time:
NEXTRECORDING=`cat /tmp/mythstatus.html |awk '/<a href="#">/{print 
substr($0,19, 18);exit}'`

#Remove saved status file:
rm /tmp/mythstatus.html

echo $NEXTRECORDING

#Next recording time, in number of seconds since 1970 01/01:
NEXTRECORDINGSEC=`date -d "$NEXTRECORDING" +%s`

#schedule next wakeup:
     sudo /usr/local/bin/nvram-wakeup -s $NEXTRECORDINGSEC

#change option in grub to Power_off (5th entry)
     #we specify 4 since we count from zero:
     echo "savedefault --default=4" | sudo /usr/sbin/grub

     # now reboot the machine:
     sudo /sbin/reboot

If anyone has another solution, I would like to see it. I reboot to a Poweroff 
option in grub, because my mobo requires it, in order for the wakeup to be in 
effect.


_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to