<div class="gmail_quote">On Sat, Feb 12, 2011 at 9:23 AM, Raymond Wagner <span dir="ltr"><<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 2/12/2011 12:10, Richard Morton wrote:<br>
> On 12 February 2011 15:08, Ken Bass<<a href="mailto:kbass@kenbass.com">kbass@kenbass.com</a>> wrote:<br>
</div><div class="im">>> What API / techniques are available that would allow me to determine<br>
>> that there are no recording currently being record on ANY/ALL my tuners.<br>
>><br>
>> Is there a python method to determine this that I can use from a cron job?<br>
>> Would the event system allow this?<br>
</div><div class="im">> You could install the mythtv-status application; on ubuntu it is in a<br>
> separate package<br>
<br>
</div>If hes going to parse the output from mythtv-status, he may as well<br>
forgo it and parse the same XML status page it does directly. See:<br>
http://<yourbackend>:6544/xml<br>
<br>
With the Python bindings, there's a couple things you could do from the<br>
MythBE() class. getRecorderList() returns the total number of<br>
recorders, while getFreeRecorderList() returns those that aren't in<br>
use. If they don't match, one of them is in use. You could use<br>
isRecording() directly on the recorder IDs returned by<br>
getRecorderList(), or you could use some other QUERY_RECORDER call. You<br>
could run getRecordings() for a list of all recordings, and a recstatus<br>
of -10 (tuning) or -2 (recording) means a recorder is in use. You could<br>
run getUpcomingRecordings() for a list of shows that will record, and<br>
check their start times to see if any will be in the near future.<br>
<div><div></div><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><div>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.</div>
<div><br></div><div><br></div>