[mythtv-users] is there a simple recording status light avaliable?

Christopher David Petersen christopher.david.petersen at gmail.com
Wed May 4 18:55:32 UTC 2005


On 5/4/05, James Armstrong <james at thearmstrongs.org> wrote: 
> 
> 
> > Basically, the software runs as root on all your backends. It can
> > monitor free disk space, EPG data remaining, tuner status (in-use or
> > free), and job status (mythtranscode, mythcommflag, etc). The program
> > gets its settings from 4 new tables (which will soon be controlled via
> > MythWeb), and stores the results of it's analysis in another new table
> > (the led_status table). The program can also be run on a front-end,
> > where it reads the status information from the status table and controls
> > the 8 LEDs connected to the parallel port. The hardware costs about $10
> > at RadioShack, and the software is free.
> >
> > I currently have MythLEDd running on my combined backend/frontend
> > controlling 3 LEDs. Red means tuner one is recording, green means the
> > machine is either transcoding or commercial flagging, blinking yellow
> > means low disk space, and solid yellow means low EPG data. My wife loves
> > it! She doesn't like the idea of auto-expiration, but doesn't ever want
> > to miss a recording due to low disk space. So whenever the yellow
> > blinks, she manually deletes some shows. I like knowing that I shouldn't
> > shutdown the machine during a recording. Actually, I've made a shutdown
> > ACPI script that prevents me from shutting down during a recording, but
> > having a light is still cool :)
> >
> > Here's the link: http://poormug.bitbucket.com/
> 
> You can probably make it simpler by just querying the master backend for
> the status. It will do tuner status, disk space free, and we recently
> added a patch that will provide the epg guide data status for the
> Mythled project we did. That way you won't need new tables (except if
> you really want to do your stats) and talk to one location.
> 
> - James
> 

Do tell more! I don't want to duplicate a previous (and probably better) 
solution.
 Regarding querying the master backend: I considered this, but opted for a 
solution that was less tightly coupled to any particular version of MythTV.
 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.
 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.
 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).
 Any suggestions?
 -- 
Christopher David Petersen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20050504/21be666b/attachment.htm


More information about the mythtv-users mailing list