JSON service questions and issues

Re: TMS dropping Data Direct!!! But no reason to panic.

Postby rkulagow » Wed Sep 10, 2014 7:18 am

The beta grabber is located here:

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

Currently it runs as a standalone replacement to mythfilldatabase; because it's not fully integrated into mythtv-setup there are some rough edges.

Please let me know if you run into any issues.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Re: TMS dropping Data Direct!!! But no reason to panic.

Postby rkulagow » Wed Sep 10, 2014 7:30 am

There are additional tables created in mythconverg to store the JSON data and there are some entries added to the settings table, but otherwise none of the core MythTV tables are modified. So it should be possible, but I'm not going to spend too much time on that.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Re: TMS dropping Data Direct!!! But no reason to panic.

Postby RonF » Thu Sep 11, 2014 7:11 pm

Is there a spec available for the new web API and the new download format, for those of us who have implemented our own grabbers? I would definitely like to update my "xtvd-tools" Python library to support the new format. The additional information and other improvements sound excellent.
RonF
 
Posts: 4
Joined: Mon Aug 20, 2007 8:58 pm

Re: TMS dropping Data Direct!!! But no reason to panic.

Postby rkulagow » Fri Sep 12, 2014 5:24 am

Yes; I have a data description document that details the fields, it will be posted shortly once the formatting is corrected.

The description of the API is at https://github.com/SchedulesDirect/JSON-Service/wiki/API-20140530

You can run the utility program and grabber at https://github.com/SchedulesDirect/mfdb-json/tree/API-20140530

The utility program and grabber are usable even without MythTV; you can feed the script some files as the input rather than it reading the mythconverg database.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Re: TMS dropping Data Direct!!! But no reason to panic.

Postby sub » Fri Sep 12, 2014 11:04 am

I've got a couple of questions.

1) Can you tell me if the station IDs are the same between the old TMS service and the new JSON service? ie, so that I can pass existing TMS station ID mappings stored against my user's channels to the new json service. I'm hoping to avoid forcing my users to set up their channel mappings again.

I did a quick test requesting listings for {"request":[78909, 44936]} from /schedules, but it returned me these errors:

{"stationID":44936,"response":"ERROR","code":404,"serverID":"AWS-SD-web.1","message":"This stationID (44936) is not in any of your lineups.","datetime":"2014-09-12T02:21:48Z"}
{"stationID":78909,"response":"ERROR","code":404,"serverID":"AWS-SD-web.1","message":"This stationID (78909) is not in any of your lineups.","datetime":"2014-09-12T02:21:48Z"}

2) The error message above prompted me to try calling "/lineups", but this is returning me a 400 error. Is there something else I'm supposed to include on the request url? I'm setting the token header correctly, since my other calls using the same function like /status are working fine. Visiting https://www.schedulesdirect.org/account in my browser shows me having one lineup, and those station IDs are in that lineup.

The remote server returned an error: (400) Bad Request.
sub
 
Posts: 23
Joined: Sun Aug 19, 2007 2:18 pm

Re: TMS dropping Data Direct!!! But no reason to panic.

Postby sub » Fri Sep 12, 2014 11:17 am

Actually, I see that 400 response did have a body, telling me there was no lineups. Why is that? I can see my lineup on the website.
Attachments
no-lineups.png
no-lineups.png (23.22 KiB) Viewed 12427 times
sub
 
Posts: 23
Joined: Sun Aug 19, 2007 2:18 pm

Re: TMS dropping Data Direct!!! But no reason to panic.

Postby rkulagow » Fri Sep 12, 2014 11:33 am

The JSON service is not the same as the XML service. You need to add the lineups that you're interested in to the JSON service first.

I've updated the documentation at https://github.com/SchedulesDirect/JSON-Service/wiki/API-20140530

it puts the client tasks at the top so that you'll know the sequence to follow.

There's also a description / link to the format of a programs response.

Let me know if that helps.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

JSON service questions and issues

Postby rkulagow » Fri Oct 17, 2014 5:53 pm

Please use this thread for anything related to the JSON service.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Re: JSON service questions and issues

Postby martyg » Fri Oct 17, 2014 6:07 pm

I am back online after pulling your latest fixes and following the updated README.
martyg
 
Posts: 9
Joined: Thu Feb 21, 2013 6:55 am

Re: JSON service questions and issues

Postby rkulagow » Fri Oct 17, 2014 6:12 pm

Excellent.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Next

Return to Developer

Who is online

Users browsing this forum: No registered users and 3 guests

cron