[mythtv-users] using mythtv as clockradio

Hika van den Hoven hikavdh at gmail.com
Thu Jan 21 11:38:21 UTC 2016


Hoi Hika,

Thursday, January 21, 2016, 12:26:29 PM, you wrote:

> Hoi Michael,

> Thursday, January 21, 2016, 7:36:15 AM, you wrote:

>> On 01/20/2016 10:33 PM, Hika van den Hoven wrote:
>>> OK I looked further. The settings must be requested from the backend:
>>> <backend>:6544/Myth/GetSetting?HostName=<frontend>
>>> gives me whole list of settings and their values. Among them:
>>> 'WatchTVGuide' with a value of 1.
>>>
>>> According to the wiki I could directly request the one value with:
>>> <backend>:6544/Myth/GetSetting?HostName=<frontend>&Key=WatchTVGuide
>>> but no luck, it returns no value:
>>>
>>> <SettingList version="1.0" serializerVersion="1.1">
>>>     <HostName>pc-Myth</HostName>
>>>     <Settings>
>>>        <String>
>>>           <Key>WatchTVGuide</Key>
>>>           <Value/>
>>>        </String>
>>>     </Settings>
>>> </SettingList>

>> And what do you get when you send a GetSetting for a boolean setting 
>> whose data is false (opposite of pc-Myth's WatchTVGuide data)?  And for
>> ones that have, for example, a string type (such as Theme)?

>> Mike
>> _______________________________________________

> If I query the full list I see AlwaysOnTop = 0
> If I do:
> <backend>:6544/Myth/GetSetting?HostName=pc-Hika&Key=AlwaysOnTop

> <SettingList version="1.0" serializerVersion="1.1">
>    <HostName>pc-Hika</HostName>
>    <Settings>
>       <String>
>          <Key>AlwaysOnTop</Key>
>          <Value/>
>       </String>
>    </Settings>
> </SettingList>

> If I query the full list I see AudioOutputDevice = ALSA:pulse
> If I do:
> <backend>:6544/Myth/GetSetting?HostName=pc-Hika&Key=AudioOutputDevice

> <SettingList version="1.0" serializerVersion="1.1">
>    <HostName>pc-Hika</HostName>
>    <Settings>
>       <String>
>          <Key>AudioOutputDevice</Key>
>          <Value/>
>       </String>
>    </Settings>
> </SettingList>

> Etc., Etc

Oh and to complete the test. If I query a dummy value say:

<backend>:6544/Myth/GetSetting?HostName=pc-Hika&Key=DummyValue

the same result, but if I make Key all lowercase it's ignored and I
get the full setting list. If I also add a value for Default that
value is returned, but if I only send a Default say:

<backend>:6544/Myth/GetSetting?HostName=pc-Hika&Default=None

I get the full settings list.

Also swapping HostName and Key in place has no effect.

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