[mythtv-users] MythTV Status in your MOTD
Andrew Ruthven
andrew at etc.gen.nz
Tue Mar 31 23:41:16 UTC 2009
I'll be releasing a new version of mythtv-status sometime in the next
couple of days that'll support both 0.21 and 0.22.
If you're running a version of trunk after the status code changed
(r20037), but before the protocol changed to 44 (r20281), then upgrade
otherwise you'll have bogus things in mythtv-status.
Thanks to Marc for providing me with the information to update
mythtv-status.
Cheers!
On Mon, 2009-03-30 at 23:11 -0400, Marc Tousignant wrote:
> Seems I found the fix myself. Google search on the states showed me
> exactly where to look in the source.
>
>
>
> Here is the updated code for .22
>
> Do not change this if you are still on .21
>
>
>
> {
>
> 'name' => 'Encoders',
>
> 'type' => 'xpath',
>
> 'xpath' => "//Status/Encoders/Encoder",
>
> 'attrs' => [ qw/hostname id state connected/ ],
>
> 'template' => "__hostname__ (__id__) - __state____connected__",
>
> 'rewrite' => {
>
> '/connected/' => { '1' => '', '0' => "${warning}
> (Disconnected)${normal}" },
>
> '/state/' => {
>
> '^-1$' => "${warning}Error${normal}",
>
> '^0$' => "${safe}Idle${normal}",
>
> '^1$' => "${warning}Watching LiveTV${normal}",
>
> '^2$' => "${warning}Watching Pre-recorded${normal}",
>
> '^3$' => "${warning}Watching DVD${normal}",
>
> '^4$' => "${warning}Watching Video${normal}",
>
> '^5$' => "${warning}Watching Recording${normal}",
>
> '^6$' => "${warning}Recording${normal}" },
>
> }
>
>
>
> Marc
>
>
>
> From: mythtv-users-bounces at mythtv.org
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Marc Tousignant
> Sent: Monday, March 30, 2009 10:23 PM
> To: 'Discussion about mythtv'
> Subject: [mythtv-users] MythTV Status in your MOTD
>
>
>
>
> Anyone who has been around for a while remember the MythTV Status in
> the MOTD script by Andrew Ruthven?
>
> http://www.etc.gen.nz/projects/mythtv/mythtv-status.html
>
>
>
> Since I updated to .22 the other day I have noticed that while it
> works still there is a slight error.
>
> The encoder status messages are wrong.
>
>
>
> Here is the bit of code in the latest release by Andrew. I have sent
> him a message already but wanted to know if someone could enlighten me
> on the new states.
>
>
>
> {
>
> 'name' => 'Encoders',
>
> 'type' => 'xpath',
>
> 'xpath' => "//Status/Encoders/Encoder",
>
> 'attrs' => [ qw/hostname id state connected/ ],
>
> 'template' => "__hostname__ (__id__) - __state____connected__",
>
> 'rewrite' => {
>
> '/connected/' => { '1' => '', '0' => ' (Disconnected)' },
>
> '/state/' => {
>
> '^0$' => "${safe}Idle${normal}",
>
> '^1$' => "${warning}Watching LiveTV${normal}",
>
> '^2$' => "${warning}Watching Pre-recorded${normal}",
>
> '^3$' => "${warning}Watching Recording${normal}",
>
> '^4$' => "${warning}Recording${normal}" },
>
> }
>
>
>
> I already know that 0 is still Idle, 1 is still Watching LiveTV, and
> that 6 is the new Recording. But what are 2 3 4 and 5?
>
>
>
> Marc
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
--
Andrew Ruthven, Wellington, New Zealand
At home: andrew at etc.gen.nz | linux.conf.au 2010
| Follow the signs. Visit Wellington!
| http://www.penguinsvisiting.org.nz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090401/a87a838c/attachment-0002.pgp>
More information about the mythtv-users
mailing list