<br><br>
<div><span class="gmail_quote">On 5/4/05, <b class="gmail_sendername">James Armstrong</b> <<a href="mailto:james@thearmstrongs.org">james@thearmstrongs.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>> Basically, the software runs as root on all your backends. It can<br>> monitor free disk space, EPG data remaining, tuner status (in-use or
<br>> free), and job status (mythtranscode, mythcommflag, etc). The program<br>> gets its settings from 4 new tables (which will soon be controlled via<br>> MythWeb), and stores the results of it's analysis in another new table
<br>> (the led_status table). The program can also be run on a front-end,<br>> where it reads the status information from the status table and controls<br>> the 8 LEDs connected to the parallel port. The hardware costs about $10
<br>> at RadioShack, and the software is free.<br>><br>> I currently have MythLEDd running on my combined backend/frontend<br>> controlling 3 LEDs. Red means tuner one is recording, green means the<br>> machine is either transcoding or commercial flagging, blinking yellow
<br>> means low disk space, and solid yellow means low EPG data. My wife loves<br>> it! She doesn't like the idea of auto-expiration, but doesn't ever want<br>> to miss a recording due to low disk space. So whenever the yellow
<br>> blinks, she manually deletes some shows. I like knowing that I shouldn't<br>> shutdown the machine during a recording. Actually, I've made a shutdown<br>> ACPI script that prevents me from shutting down during a recording, but
<br>> having a light is still cool :)<br>><br>> 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> </div>
<div>Regarding querying the master backend: I considered this, but opted for a solution that was less tightly coupled to any particular version of MythTV.</div>
<div> </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 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> </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> </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> </div>
<div>Any suggestions?</div>
<div> </div>
<div>-- </div>
<div>Christopher David Petersen</div>
<div> </div>