Page 1 of 1

Simple Example Needed

Posted: Sun Sep 13, 2015 5:17 pm
by zaxxon
Hi. I'm new to SchedulesDirect and love it. I'm using it with MythTV and I also want to do some experimenting with the raw data by way of a bash shell script or python script. I searched around the forum and see many discussions about the "old methods/server" and "new methods/servers" and it's a bit confusing for a new player like myself. Can someone point me to a current simple example that show how to make a call to the database, authenticate the username/password and download a lineup? Thank you.

Re: Simple Example Needed

Posted: Sun Sep 13, 2015 5:20 pm
by rkulagow
If by "new" method you mean the JSON service, then there's a MythTV grabber at

https://github.com/SchedulesDirect/mfdb ... I-20141201

Which implements a mythfilldatbase replacement as a php CLI script.

The "old" method (which isn't old so much as it is different) uses the XML service. For that you could look at the xmltv project, or the MythTV sourcecode.

Re: Simple Example Needed

Posted: Sun Sep 13, 2015 5:21 pm
by rkulagow

Re: Simple Example Needed

Posted: Sun Sep 13, 2015 5:27 pm
by zaxxon
Thanks rkulagow. this info is exactly what I was looking for.

Re: Simple Example Needed

Posted: Sun Sep 13, 2015 5:38 pm
by rkulagow
Sure. If you're on the JSON track then please use the JSON Developers Corner.

Re: Simple Example Needed

Posted: Sun Sep 13, 2015 9:07 pm
by rmeden
and if you want the "old" SD-DD XML feed.. your MythTV box may already have a copy in /tmp

You can also install xmltv, and then
tv_grab_na_dd --configure # answer questions
tv_grab_na_dd --dd-data dd.xml --download-only --days 7 # to get the "raw" data (tvxd schema)
tv_grab_na_dd --output tv.xml --days 7 # to get XMLTV formatted data

Depending on what you want to do with the data, the XMLTV package has lots of tools to manipulate the data.