[mythtv-users] Turn cable box off after recording
nick.rout at gmail.com
Wed Jun 17 00:45:36 UTC 2009
On Wed, Jun 17, 2009 at 9:54 AM, William<william_munson at comcast.net> wrote:
> I know there is a status.xml file that is output from the backend on
> request. (Sorry, dont have the details handy) but I know it details the
> status of all of your recorders. It would not be hard to write a script that
> checks status that way and then turns off the cable box if nothing is
> recording. Run this at 5 and 35 after the hour via cron. Multiple off
> commands should not affect your box unless it toggles on each command. If
> thats the case you will need to keep a status flag on the drive. In fact you
> will want that flag to keep it from turning off the box while you watch live
> tv. Reset the flag whenever you see the channel in use.
> Hope this points you in a usable direction. I wrote a similar script to
> check activity before triggering a firewire reset.
mythtv-status also provides the information in a format that MAY be
easier to simply parse with grep.
In fact I think mythtv-status probably gets the info from the
status.xml file you refer to.
mythtv-status is packaged with mythbuntu. Dunno about other distros.
More information about the mythtv-users