[mythtv-users] Remotely monitor Backend is running

Bill Meek keemllib at gmail.com
Sun Oct 10 16:36:04 UTC 2021


On 10/10/21 11:24 AM, Barry Martin wrote:
> 
> Hi Stephen!
> 
>> Here is the cut down version of gaps:
>>
>> http://www.jsw.gen.nz/mythtv/test-mythbackend.py
> 
> 
> 
> Something not quite working right for me with “/test-mythbackend.py <http://www.jsw.gen.nz/mythtv/test-mythbackend.py>”. Here doing from
> Terminal: python3 '/home/barry/MythTV Backend Scripts/Test_Mythbackend.py' (don’t fiddle with the original until know it’s right!) and I’m on my
> computer (not the Backend).
> 
> 
> Error is:
> 
> Traceback (most recent call last):
> 
> File "/home/barry/MythTV Backend Scripts/Test_Mythbackend.py", line 13, in <module>
> 
> from MythTV.services_api import send as api
> 
> ModuleNotFoundError: No module named 'MythTV'
> 
> 
> 
> Thought maybe because (line 33) HOST = 'localhost' so changed to HOST = '192.168.4.3' (my Backend’s IP). Still not finding the API services thingie.
> 
> 
> 
> Also, I don’t have a “ MythTV.services_api”, or at least that I could find. sudo service --status-all does list ‘mythtv-backend‘ but nothing
> with ‘api’ listed.
> 
> 
> 
> Only ones that seemed close to what the script wants:
> 
>     /home/barry/git/mythtv/mythtv/bindings/python/MythTV/services_api
> 
>         (The two mythtv’s in a row is correct)
> 
>     /usr/lib/python2.7/dist-packages/MythTV/services_api
> 
> 
> (used: find / -type d -iname *api* 2>/dev/null | grep -i myth)
> 
> 
> 
> The ‘line 13 error’ … Line 13 is from MythTV.services_api import send as api
> 
> – no idea what is being looked for so can’t guess. Plus still has to be looking at the other computer (the Backend).

Does the computer you're running the above on have MythTV installed? E.g. is it
a remote frontend?

Or, just run this: locate -b '\services_api' . If installed, you'll see something
*similar* to this:

  /usr/local/lib/python3.8/dist-packages/MythTV/services_api

-- 
Bill


More information about the mythtv-users mailing list