<br><br>
<div><span class="gmail_quote">On 5/4/05, <b class="gmail_sendername">James Armstrong</b> &lt;<a href="mailto:james@thearmstrongs.org">james@thearmstrongs.org</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>&gt; Basically, the software runs as root on all your backends. It can<br>&gt; monitor free disk space, EPG data remaining, tuner status (in-use or
<br>&gt; free), and job status (mythtranscode, mythcommflag, etc). The program<br>&gt; gets its settings from 4 new tables (which will soon be controlled via<br>&gt; MythWeb), and stores the results of it's analysis in another new table
<br>&gt; (the led_status table). The program can also be run on a front-end,<br>&gt; where it reads the status information from the status table and controls<br>&gt; the 8 LEDs connected to the parallel port. The hardware costs about $10
<br>&gt; at RadioShack, and the software is free.<br>&gt;<br>&gt; I currently have MythLEDd running on my combined backend/frontend<br>&gt; controlling 3 LEDs. Red means tuner one is recording, green means the<br>&gt; machine is either transcoding or commercial flagging, blinking yellow
<br>&gt; means low disk space, and solid yellow means low EPG data. My wife loves<br>&gt; it! She doesn't like the idea of auto-expiration, but doesn't ever want<br>&gt; to miss a recording due to low disk space. So whenever the yellow
<br>&gt; blinks, she manually deletes some shows. I like knowing that I shouldn't<br>&gt; shutdown the machine during a recording. Actually, I've made a shutdown<br>&gt; ACPI script that prevents me from shutting down during a recording, but
<br>&gt; having a light is still cool :)<br>&gt;<br>&gt; Here's the link: <a href="http://poormug.bitbucket.com/">http://poormug.bitbucket.com/</a><br><br>You can probably make it simpler by just querying the master backend for
<br>the status. It will do tuner status, disk space free, and we recently<br>added a patch that will provide the epg guide data status for the<br>Mythled project we did. That way you won't need new tables (except if<br>you really want to do your stats) and talk to one location.
<br><br>- James<br></blockquote></div>
<div><br>Do tell more! I don't want to duplicate a previous (and probably better) solution.</div>
<div>&nbsp;</div>
<div>Regarding&nbsp;querying the master backend: I considered this,&nbsp;but opted for a solution that was less tightly coupled to&nbsp;any particular&nbsp;version of MythTV.</div>
<div>&nbsp;</div>
<div>In our implementation, only EPG status directly uses the mythconverg database (and even this query is configurable). The tuner status is determined from the in-use file handles for mythbackend in the /proc virtual file system as is the job status. Disk space is determined via&nbsp;some flavor of the stat system call. In future releases I hope to add things CPU load, memory usage, network traffic, virtual memory paging, etc.
</div>
<div>&nbsp;</div>
<div>But again, if you've already produced a solution, please spread it throughout the MythTV community. I really don't want to produce a duplicate solution.</div>
<div>&nbsp;</div>
<div>The project I'd really like to produce is a solder-free parallel port LED kit. I can almost do it with an old DB25 serial port header (from old 386/486 computers) and LEDs with integrated resistors. But finding suitable LEDs with integrated resistors is difficult (ie. not as easy as a walk to the local RadioShack).
</div>
<div>&nbsp;</div>
<div>Any suggestions?</div>
<div>&nbsp;</div>
<div>-- </div>
<div>Christopher David Petersen</div>
<div>&nbsp;</div>