<div dir="ltr"><div dir="ltr">On Fri, Oct 12, 2018 at 7:28 PM Bill Meek <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
It does work. My usual 1st choice is: mythbackend --setverbose http:debug,upnp:debug<br>
(probably overkill.) And check the backend log...<br>
<br>
Here's a snippet from one of my tests:<br>
<br>
endpoint = 'Dvr/AddRecordSchedule'<br>
<br>
params_not_sent = ('AverageDelay', 'CallSign', 'Id', 'LastDeleted',<br>
'LastRecorded', 'NextRecording', 'ParentId')<br>
<br>
for param in params_not_sent:<br>
try:<br>
del template[param]<br>
except KeyError:<br>
pass<br>
...<br>
<br>
<br>
I also use:<br>
<br>
logging.basicConfig(level=logging.DEBUG if args['debug'] else logging.INFO)<br>
logging.getLogger('requests.packages.urllib3').setLevel(logging.WARNING)<br>
logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING)<br>
<br>
and a --debug switch to the Python program to activate the log messages. The<br>
send.py you're using has a bit more on the above.<br>
<br>
I attached my add_recording_rule.py FYI. The command line (just to test, without --wrmi):<br>
add_recording_rule.py --ho ofc0 --title Elementary --debug --digest admin:mythtv<br></blockquote><div><br></div><div>Bill,</div><div><br></div><div>I am attaching my modifications to your work. Basically, I just added support for manual recording rules. My next TODO is to add "power" recording rule support. I called it mythtv_record.py so you can easily diff it, to see what I added.</div><div><br></div><div>As a side note, the 500 error I was getting was because I did not have the SearchType set correctly. It took my a bit to figure that out.</div><div><br></div><div>John<br></div></div></div></div>