[mythtv-users] Automation query
kbass at kenbass.com
Mon Feb 14 22:53:14 UTC 2011
On 2/12/2011 12:23 PM, Raymond Wagner wrote:
> With the Python bindings, there's a couple things you could do from the
> MythBE() class.
Is the wiki correct that python 2.7 is unsupported? (
I'm running Fedora 14 which has python 2.7. I just tried the following
and it seems to work.
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from MythTV import MythBE
>>> mythtv = MythBE()
>>> upcoming = mythtv.getUpcomingRecordings()
>>> print upcoming
<Program 'Enough Already With Peter Walsh','2011-02-14 20:00:00' at
One note, my backend did not have a /home/mythtv/.mythtv/config.xml so
the database connection initially failed. I copied one from my frontend.
However, how do I determine the 'MediaRenderer' id to be used. I simply
changed it by hand to be unique, but I have no idea where that is
supposed to come from or if it needs to match something. All my
frontends have a unique ID.
More information about the mythtv-users