<div class="gmail_quote">On Sat, Feb 12, 2011 at 9:23 AM, Raymond Wagner <span dir="ltr">&lt;<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>&gt;</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>
&gt; On 12 February 2011 15:08, Ken Bass&lt;<a href="mailto:kbass@kenbass.com">kbass@kenbass.com</a>&gt;  wrote:<br>
</div><div class="im">&gt;&gt; What API / techniques are available that would allow me to determine<br>
&gt;&gt; that there are no recording currently being record on ANY/ALL my tuners.<br>
&gt;&gt;<br>
&gt;&gt; Is there a python method to determine this that I can use from a cron job?<br>
&gt;&gt; Would the event system allow this?<br>
</div><div class="im">&gt; You could install the mythtv-status application; on ubuntu it is in a<br>
&gt; 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://&lt;yourbackend&gt;:6544/xml<br>
<br>
With the Python bindings, there&#39;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&#39;t in<br>
use.  If they don&#39;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&#39;t it be better if we could figure out what was causing the HD-PVR to get into that state? Possibly it&#39;s something that can be fixed. I actually have the same thing going on here, but haven&#39;t had the time to troubleshoot it.</div>

<div><br></div><div><br></div>