[mythtv-users] MythTV Status in your MOTD

Andrew Ruthven andrew at etc.gen.nz
Wed Apr 1 20:32:07 UTC 2009


Whoops, my bad.

However, given smallish number of revisions between 19978 and 20037 I'm
happy to live with some people getting the wrong version for a short
period of time until they upgrade. ;)

Cheers!

On Tue, 2009-03-31 at 23:36 -0400, Marc Tousignant wrote:
> Andrew,
> 
> The protocol version got bumped to 44 in 19978, and not 20281.
> The changes to the status codes did happen on 20037 as you said.
> You will not be able to identify the correct status codes based on the
> ProtoVer this time.
> 
> 20281 was the version I was using at the time I discovered the issue. I
> think you misread my emails.
> 
> Marc
> 
> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Andrew Ruthven
> Sent: Tuesday, March 31, 2009 7:41 PM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] MythTV Status in your MOTD
> 
> 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
> 
> _______________________________________________
> 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/20090402/421d53bf/attachment.pgp>


More information about the mythtv-users mailing list