<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Hi Stephen!<br>
</div>
<blockquote type="cite"
cite="mid:mailman.5.1633780802.1477.mythtv-users@mythtv.org">
<pre class="moz-quote-pre" wrap="">It might be better to actually use the MythTV API and, for example,
request the next recording time, as that would check that a lot more
of mythbackend is working. It is better to use Python for that, as
there is API support for Python. I have code to do that as part of my
gaps program:
<a class="moz-txt-link-freetext" href="http://www.jsw.gen.nz/mythtv/gaps" moz-do-not-send="true">http://www.jsw.gen.nz/mythtv/gaps</a>
which is probably a reasonable example of a real life use of that API
call, so you could just take a copy of gaps and cut out all the extra
code to just leave a call to Dvr/GetUpcomingList and check the results
and then return 0 for OK or an error code from that. However, that
requires that you know at least a bit of Python. If you would like me
to do a cut down version like that, let me know.
</pre>
</blockquote>
<p> </p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">“Yes, please!”
to your offer of a cut-down version. As I mentioned in my original
post I piece and patch things together – not elegant but as long
as
it works! Will download your ‘Gaps’ for a learning experience –
see what do understand.</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">I’m assuming the
utility would be on my (local) computer and send inquires to the
(remote) Backend. To me makes more sense in this usage to have
Local
send inquires to the Remote system: my script sends the “You
there?” (SYN) and if doesn’t get an “Yup!” (ACK) puts up an
error message window. (If the remote Backend is down/having
problems
it might not be able to send out a ‘help!’ message.)</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Also if posted here
could be used by others – seems like it would be a good utility to
have just to monitor everything running properly rather sitting
down
at night to watch a show and being greeted with the “can’t find
the Backend” screen.</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Thanks!</p>
<p style="margin-bottom: 0in; line-height: 100%">Barry</p>
<p>
<style type="text/css">p { margin-bottom: 0.1in; line-height: 115% }a:link { so-language: zxx }</style></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>