[mythtv-users] Checking status via API
Hika van den Hoven
hikavdh at gmail.com
Mon Mar 6 20:32:16 UTC 2017
Hoi Roger,
Monday, March 6, 2017, 7:30:40 PM, you wrote:
> On 06/03/17 17:03, Peter Bennett wrote:
>>
>>>
>> The backend already has the feature built in. If you set "Idle shutdown
>> timeout" in mythtv-setup, it will automatically shut down the server
>> when idle using the "server halt command" that you specify. Is there
>> some reason this does not work for you?
>>
>> Peter
>>
> I suspect it's turned it off because the backend doesn't currently
> register API Service users as frontends/clients. So it will go idle and
> shutdown even whilst the Http server is in use.
> It's worth tracking https://code.mythtv.org/trac/ticket/12089 for this.
> However, has the OP actually tried it ?
> Even though the Kodi PVR does use some services, I believe it uses the
> internal protocol for playback. If it does it right then then you may
> find that it already prevents shutdown during playback.
> That won't stop it shutting down whilst you're deciding what to watch
> though - set a decent idle timeout.
> For the same reason you may also see playback started/stopped events,
> that your script could handle.
> https://www.mythtv.org/wiki/MythTV_System_Events
You can look for alternative ways to check. For instance as I
understand Kodi needs nfs or cifs for accessing the recordings. See if
you can do a check on that front. Or if all frontends are dedicated,
do a ping check. Or set a local file (for instance /ect/kodiplay.txt
to contain a 1 on starting kodi and reset it to 0 on stopping it. Etc.
Tot mails,
Hika mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
More information about the mythtv-users
mailing list