[mythtvnz] mythtv-status

Karl -skooobie skooobie at gmail.com
Thu Sep 8 04:56:50 BST 2016


I have found a possible solution in the perl script which runs the data
gathering and print to screen. There is a setting:

$c->{'encoder_skip_idle'}   ||= 1;

Where, if I change this to 0, I get the full output including the "idle"
status... see below which now shows all my encoders and their individual
status.

*kh at kh:/$ mythtv-status

                        *



*MythTV status for localhost

                         *
*===========================

                         *
*Status...........: 2016-09-08 15:54:29

                        *
*Total Disk Space.: Total space is 465.8 GB, with 132.5 GB used (28.4%)

                        *
*Next Recording In: 4 Hours

                        *



*Encoders:

                         *
*kh (9) - Idle

                         *
*kh (10) - Idle

                        *
*kh (11) - Idle

                        *
*kh (12) - Idle

                        *



*Scheduled Recordings:

                         *
*2016-09-08 19:55:00 - Tiny House Hunting (ChoiceTV)

                         *
*2016-09-08 20:30:00 - Seven Year Switch Australia (TV2)

                         *
*2016-09-08 23:00:00 - Holden Golf World (TV3)

                         *
*2016-09-09 19:30:00 - The Voice Australia (TV2)  *

The script captures not only Idle and Recording events but also Error,
which is rather handy. There is some protocol versions that are introduced
in MythTV which has different information and gathering options changed and
can be viewed here: https://www.mythtv.org/wiki/Category:Myth_Protocol and
in the latest protocols you can view the following on the encoders:

         '^-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 Blu-ray${normal}",
         '^5$' => "${warning}Watching Video${normal}",
         '^6$' => "${warning}Watching Recording${normal}",
         '^7$' => "${warning}Recording${normal}" },

While I have made the change on my system, it would be better to have this
as a git version change. I will ask the developer before making a git pull
request, just in case.

Karl

On 8 September 2016 at 15:48, Karl -skooobie <skooobie at gmail.com> wrote:

> I have found a possible solution in the perl script which runs the data
> gathering and print to screen. There is a setting:
>
> $c->{'encoder_skip_idle'}   ||= 1;
>
> Where, if I change this to 0, I get the full output including the "idle"
> status... see screen-capture below which now shows all my encoders and
> their individual status. The script captures not only Idle and Recording
> events but also Error, which is rather handy. There is some protocol
> versions that are introduced in MythTV which has different information and
> gathering options changed and can be viewed here:
> https://www.mythtv.org/wiki/Category:Myth_Protocol and in the latest
> protocols you can view the following on the encoders:
>
>          '^-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 Blu-ray${normal}",
>          '^5$' => "${warning}Watching Video${normal}",
>          '^6$' => "${warning}Watching Recording${normal}",
>          '^7$' => "${warning}Recording${normal}" },
>
> While I have made the change on my system, it would be better to have this
> as a git version change. I will ask the developer before making a git pull
> request, just in case.
>
> Karl
>
> On 7 September 2016 at 16:40, skooobie doo <skooobie at gmail.com> wrote:
>
>> But in the Web notes the screeshot shows the status as idle when not
>> recording. This would be a quick way of checking whether one or both tuners
>> have a fault or not without logging into the frontend or backend.
>>
>> On 7/09/2016 14:51, "Austin Green" <austin.green at orcon.net.nz> wrote:
>>
>>> On Wed, 7 Sep 2016 06:09:18 +1200
>>> skooobie doo <skooobie at gmail.com> wrote:
>>> > It should also show the tuners as *idle* when not recording. But maybe
>>> this
>>> > functionality was removed between your version and my slightly newer
>>> > version.
>>> >
>>> > On 6/09/2016 21:42, "Austin Green" <austin.green at orcon.net.nz> wrote:
>>> >
>>> > > On Tue, 6 Sep 2016 17:23:20 +1200
>>> > > skooobie doo <skooobie at gmail.com> wrote:
>>> > >
>>> > > > Anyone use the mythtv-status command-line program? I use this a
>>> lot but
>>> > > > have noticed it is no longer populating some of the info that
>>> should be
>>> > > > there. Is this the same for those of you who use the program?
>>> > >
>>> > > Works for me:
>>> > >
>>> > >         $ mythtv-status
>>> > >
>>> > >         MythTV status for localhost
>>> > >         ===========================
>>> > >         Status..........: 2016-09-06 21:34:23
>>> > >         Total Disk Space: Total space is 2,047.2 GB, with 1,822.1 GB
>>> used
>>> > > (89.0%)
>>> > >
>>> > >         Encoders:
>>> > >         alcatraz (1) - Recording
>>> > >         alcatraz (6) - Recording
>>> > >
>>> > >         Recording Now:
>>> > >         Game Of Thrones (Prime) Ends: 22:45:00
>>> > >         The Hard Stuff With Nigel Latta (TV ONE) Ends: 21:30:00
>>> > >
>>> > >         Scheduled Recordings:
>>> > >         ...
>>> > >
>>> > > OS is Trisquel Belenos, which is derived I believe from Ubuntu
>>> Trusty.
>>> > > MythTV Version : v0.27-193-g8ee257c
>>> > > mythtv-status, version 0.10.4.
>>> > >
>>> > > Austin.
>>>
>>> Mine too shows no encoders at all when no recording is happening; I
>>> guess we are supposed to deduce the idle status from that.  :)
>>> Austin.
>>>
>>> _______________________________________________
>>> mythtvnz mailing list
>>> mythtvnz at lists.linuxnut.co.nz
>>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/mythtvnz/attachments/20160908/7c8443a3/attachment-0001.html>


More information about the mythtvnz mailing list