[mythtv-users] using mythtv as clockradio

Bill Meek keemllib at gmail.com
Thu Jan 21 04:10:45 UTC 2016


On 01/20/2016 09:33 PM, Hika van den Hoven wrote:
> If I try to change the value with:
> <backend>:6544/Myth/PutSetting?HostName=<frontend>&Key=WatchTVGuide&Value=0

First guess is that you're not sending it as a POST.

FYI, you might like this:

     https://www.mythtv.org/wiki/Python_API_Examples#The_module_used_in_the_examples_above

to handle all the sending/receiving from Python. Returned data is
in a Python dict rather than an Element Tree.

The above would be something like:

   import Utilities as api
   postdata = { 'HostName':args.fe, 'Key':'WatchTVGuide', 'Value':0 }
   api.Send(host=args.host, port=args.port, endpoint=Myth/PutSetting, postdata=postdata)

-- 
Bill


More information about the mythtv-users mailing list