[mythtv-users] Remotely monitor Backend is running
Bill Meek
keemllib at gmail.com
Tue Oct 12 14:31:05 UTC 2021
On 10/12/21 9:04 AM, Barry Martin wrote:
>
> Hi Stephen!
>> Yes, I forgot to move the original import line down into the
>> conditional, so it was still there ahead of the intended code. Fixed
>> in v1.2.
>
> OK -- will download the update and update you on the new download. (Sorry: couldn't resist!)
>
>
>
>> So I think I need to create a virtual PC running a similar setup to
>> the PC you want to run this on and try it out and see what happens. So
>> what is that PC running? And your current backend box is running
>> MythTV v30, but what version of Ubuntu is it running?
>
> Ubuntu 18.04.6
>
>
> Thanks!
The MythTV.services_api directory can be copied from any host running
a backend/frontend. if you want to use it. You may need to load other
Python packages in order to use it, but that's OK. The Wiki you cited
has instructions for setting PYTHONPATH to point to where you put it.
Here's a command line version that does the last test in Stephen's
script that just sees if there's at lease one upcoming recording:
$ curl --header Accept:application/JSON --silent yourBE:6544/Dvr/GetUpcomingList?Count=1 | json_pp - | grep '"Count"'
Which returns: "Count" : "1", if there's at least one upcoming recording.
That may be easier to do.
--
Bill
More information about the mythtv-users
mailing list