[mythtv-users] Finding gaps in the MythTV recording schedule to do maintenance in

Bill Meek keemllib at gmail.com
Sun Apr 23 00:48:27 UTC 2017


On 04/22/2017 07:28 PM, Mark Perkins wrote:
...
>>
> Thanks Stephen, this is quite good!
>
> I had one issue getting this to work, I run 0.27, 0.28 and master
> simultaneously on the one server so I have moved the services api ports
> in mythtv-setup so they don't conflict. Utilities.py is hardcoded to use
> port 6544 (which is the default). Once I changed that to the backend
> services port I wanted it worked perfectly Unfortunately I don't know
> python but if I get some spare time I might try and see what it would
> take to get Utilities.py to pull the port from the database using a
> found config.xml. Maybe it could pull the host as well, although I think
> your gaps.py script is coded to localhost only. I'm just thinking out loud.
>
> Thankyou again for putting this together and sharing!

The Utilities.Send() function defaults to 6544. See this for an example
of how to pass command line arguments:

     https://www.mythtv.org/wiki/Python_API_Examples#Working_program_using_the_Dvr.2FGetUpcomingList_endpoint

Or, you can just add the  port to this line, if you don't want
to pass it as a command line argument:

     resp_dict = api.Send(host=HOST, port=1234, endpoint='Dvr/GetUpcomingList')

-- 
Bill


More information about the mythtv-users mailing list