[mythtv-users] Automation query

Thomas Mashos tgm4883 at gmail.com
Sat Feb 12 19:04:18 UTC 2011


On Sat, Feb 12, 2011 at 9:23 AM, Raymond Wagner <raymond at wagnerrp.com>wrote:

> On 2/12/2011 12:10, Richard Morton wrote:
> > On 12 February 2011 15:08, Ken Bass<kbass at kenbass.com>  wrote:
> >> What API / techniques are available that would allow me to determine
> >> that there are no recording currently being record on ANY/ALL my tuners.
> >>
> >> Is there a python method to determine this that I can use from a cron
> job?
> >> Would the event system allow this?
> > You could install the mythtv-status application; on ubuntu it is in a
> > separate package
>
> If hes going to parse the output from mythtv-status, he may as well
> forgo it and parse the same XML status page it does directly.  See:
> http://<yourbackend>:6544/xml
>
> With the Python bindings, there's a couple things you could do from the
> MythBE() class.  getRecorderList() returns the total number of
> recorders, while getFreeRecorderList() returns those that aren't in
> use.  If they don't match, one of them is in use.   You could use
> isRecording() directly on the recorder IDs returned by
> getRecorderList(), or you could use some other QUERY_RECORDER call.  You
> could run getRecordings() for a list of all recordings, and a recstatus
> of -10 (tuning) or -2 (recording) means a recorder is in use.  You could
> run getUpcomingRecordings() for a list of shows that will record, and
> check their start times to see if any will be in the near future.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/mailman/listinfo/mythtv-users
>

Just a thought, but wouldn't it be better if we could figure out what was
causing the HD-PVR to get into that state? Possibly it's something that can
be fixed. I actually have the same thing going on here, but haven't had the
time to troubleshoot it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20110212/09cdeae8/attachment.html 


More information about the mythtv-users mailing list