SchedulesDirect JSON client

Other clients written by the community
et23kochie
Posts: 23
Joined: Mon Jan 26, 2015 2:18 am

Re: SchedulesDirect JSON client

Post by et23kochie » Wed Feb 04, 2015 9:11 am

So I got it to run (see above). Opened the config and filled it out (screen shot attached). Hit save config. Then requested lineups from SD. Got them. Selected my lineup and hit save lineup. windowed blinked but stayed open. Hit save config again nothing happened. X'ed out window. Hit refresh channels and got error (screen shot attached). Error log also attached.

Let me know if you need any other info from me or if you have another version to test.
Attachments
ErrorLog.zip
(1.51 KiB) Downloaded 845 times
Setup.jpg
Setup.jpg (225.01 KiB) Viewed 35791 times
Error1.jpg
Error1.jpg (80.26 KiB) Viewed 35791 times

geoffstewart
Posts: 152
Joined: Sat Sep 18, 2010 1:29 am
Location: Ottawa, ON, Canada

Re: SchedulesDirect JSON client

Post by geoffstewart » Wed Feb 04, 2015 5:57 pm

I see by the log that you assigned your lineup, then removed it right after.

So, when you go to get your guide data, I get this error:

{"response":"NO_LINEUPS","code":4102,"serverID":"20140530.1","message":"No lineups have been added to this account.","datetime":"2015-02-04T06:57:25Z"}

NO LINEUPS...

Try to assign your "Local" lineup again and try to get channels.

Yes, you use the X to close the config screen... just following the setup done in the tool.

Cheers.

Geoff

et23kochie
Posts: 23
Joined: Mon Jan 26, 2015 2:18 am

Re: SchedulesDirect JSON client

Post by et23kochie » Wed Feb 04, 2015 6:19 pm

Cann't get it to work. I open the config page and the lineup section is empty. I get the lineups from SD and click on the one I want. Then I hit save lineup button and x out. Same error. I tried selecting the lineup and x out (with hitting the save lineup button) and same result.

From the log:
2015-02-04 10:12:41,036 [INFO ][1]: Guide importer started.
2015-02-04 10:12:53,561 [INFO ][1]: Got a reply of 92 bytes
2015-02-04 10:12:54,133 [INFO ][1]: Got a reply of 2103 bytes
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: 4DTV - /20140530/lineups/USA-4DTV-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: AFN Satellite - /20140530/lineups/USA-AFN-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: C-Band - /20140530/lineups/USA-C-BAND-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: DISH Minneapolis - /20140530/lineups/USA-DISH613-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: DIRECTV - /20140530/lineups/USA-DITV-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: DIRECTV Minneapolis - /20140530/lineups/USA-DITV613-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: DISH Network - /20140530/lineups/USA-ECHOST-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: Global - Free-to-air satellite - /20140530/lineups/ZZZ-FTA-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: Globecast World TV - /20140530/lineups/USA-GLOBCST-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: GLRYSTR - /20140530/lineups/USA-GLRYSTR-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: Comcast Columbia Heights/Coon Rapids/Quad - Digital - /20140530/lineups/USA-MN22560-X
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: Comcast Columbia Heights/Coon Rapids/Quad - Cable - /20140530/lineups/USA-MN22560-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: Comcast North Metro - Digital - /20140530/lineups/USA-MN53919-X
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: Comcast North Metro - Cable - /20140530/lineups/USA-MN53919-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: RELAYTV - /20140530/lineups/USA-RELAYTV-DEFAULT
2015-02-04 10:12:54,150 [INFO ][1]: This is a lineup: Antenna - /20140530/lineups/USA-OTA-55014
2015-02-04 10:12:54,255 [INFO ][1]: Got a reply of 192 bytes
2015-02-04 10:12:56,954 [INFO ][1]: Got a reply of 192 bytes
2015-02-04 10:13:08,792 [INFO ][1]: SchedulesDirectJSONService Calling SchedulesDirect JSON WebService ...
2015-02-04 10:13:08,906 [INFO ][1]: Got a reply of 192 bytes
2015-02-04 10:13:08,906 [INFO ][1]: SchedulesDirectJSONService Got the lineups.... 1 lineup assigned
2015-02-04 10:13:08,908 [INFO ][1]: SchedulesDirectJSONService Get channels for Local
2015-02-04 10:13:09,058 [INFO ][1]: Got a reply of 13244 bytes
2015-02-04 10:13:09,070 [INFO ][1]: SchedulesDirectJSONService Got a bunch of channels: 55
2015-02-04 10:13:24,180 [INFO ][1]: Got a reply of 2103 bytes
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: 4DTV - /20140530/lineups/USA-4DTV-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: AFN Satellite - /20140530/lineups/USA-AFN-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: C-Band - /20140530/lineups/USA-C-BAND-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: DISH Minneapolis - /20140530/lineups/USA-DISH613-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: DIRECTV - /20140530/lineups/USA-DITV-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: DIRECTV Minneapolis - /20140530/lineups/USA-DITV613-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: DISH Network - /20140530/lineups/USA-ECHOST-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: Global - Free-to-air satellite - /20140530/lineups/ZZZ-FTA-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: Globecast World TV - /20140530/lineups/USA-GLOBCST-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: GLRYSTR - /20140530/lineups/USA-GLRYSTR-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: Comcast Columbia Heights/Coon Rapids/Quad - Digital - /20140530/lineups/USA-MN22560-X
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: Comcast Columbia Heights/Coon Rapids/Quad - Cable - /20140530/lineups/USA-MN22560-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: Comcast North Metro - Digital - /20140530/lineups/USA-MN53919-X
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: Comcast North Metro - Cable - /20140530/lineups/USA-MN53919-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: RELAYTV - /20140530/lineups/USA-RELAYTV-DEFAULT
2015-02-04 10:13:24,180 [INFO ][1]: This is a lineup: Antenna - /20140530/lineups/USA-OTA-55014
2015-02-04 10:13:24,287 [INFO ][1]: Got a reply of 192 bytes
2015-02-04 10:13:38,516 [INFO ][1]: SchedulesDirectJSONService Calling SchedulesDirect JSON WebService ...
2015-02-04 10:13:38,620 [INFO ][1]: Got a reply of 192 bytes
2015-02-04 10:13:38,621 [INFO ][1]: SchedulesDirectJSONService Got the lineups.... 1 lineup assigned
2015-02-04 10:13:38,622 [INFO ][1]: SchedulesDirectJSONService Get channels for Local
2015-02-04 10:13:38,773 [INFO ][1]: Got a reply of 13244 bytes
2015-02-04 10:13:38,779 [INFO ][1]: SchedulesDirectJSONService Got a bunch of channels: 55
2015-02-04 10:13:48,731 [INFO ][1]: Got a reply of 192 bytes
2015-02-04 10:13:48,897 [INFO ][1]: Got a reply of 133 bytes
2015-02-04 10:13:48,899 [INFO ][1]: Lineup Removed
2015-02-04 10:13:51,633 [INFO ][1]: Got a reply of 2103 bytes
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: 4DTV - /20140530/lineups/USA-4DTV-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: AFN Satellite - /20140530/lineups/USA-AFN-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: C-Band - /20140530/lineups/USA-C-BAND-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: DISH Minneapolis - /20140530/lineups/USA-DISH613-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: DIRECTV - /20140530/lineups/USA-DITV-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: DIRECTV Minneapolis - /20140530/lineups/USA-DITV613-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: DISH Network - /20140530/lineups/USA-ECHOST-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: Global - Free-to-air satellite - /20140530/lineups/ZZZ-FTA-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: Globecast World TV - /20140530/lineups/USA-GLOBCST-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: GLRYSTR - /20140530/lineups/USA-GLRYSTR-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: Comcast Columbia Heights/Coon Rapids/Quad - Digital - /20140530/lineups/USA-MN22560-X
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: Comcast Columbia Heights/Coon Rapids/Quad - Cable - /20140530/lineups/USA-MN22560-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: Comcast North Metro - Digital - /20140530/lineups/USA-MN53919-X
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: Comcast North Metro - Cable - /20140530/lineups/USA-MN53919-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: RELAYTV - /20140530/lineups/USA-RELAYTV-DEFAULT
2015-02-04 10:13:51,633 [INFO ][1]: This is a lineup: Antenna - /20140530/lineups/USA-OTA-55014
2015-02-04 10:13:51,751 [INFO ][1]: Got an HTTP error The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at ArgusTV.GuideImporter.JSONService.WebClient.callHttp(String token, String method, String url, Object postData) in c:\Users\geoff\Documents\git\ARGUS-TV\ArgusTV.GuideImporter.JSONService\WebClient.cs:line 117
2015-02-04 10:13:51,751 [INFO ][1]: Got a reply of 151 bytes
2015-02-04 10:13:51,752 [ERROR][1]: Got the following error response:
{"response":"NO_LINEUPS","code":4102,"serverID":"20140530.2","message":"No lineups have been added to this account.","datetime":"2015-02-04T16:14:41Z"}
2015-02-04 10:14:00,017 [INFO ][1]: Got an HTTP error The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at ArgusTV.GuideImporter.JSONService.WebClient.callHttp(String token, String method, String url, Object postData) in c:\Users\geoff\Documents\git\ARGUS-TV\ArgusTV.GuideImporter.JSONService\WebClient.cs:line 117
2015-02-04 10:14:00,017 [INFO ][1]: Got a reply of 151 bytes
2015-02-04 10:14:00,017 [ERROR][1]: Got the following error response:
{"response":"NO_LINEUPS","code":4102,"serverID":"20140530.1","message":"No lineups have been added to this account.","datetime":"2015-02-04T16:14:50Z"}
2015-02-04 10:14:00,182 [INFO ][1]: Got a reply of 131 bytes
2015-02-04 10:14:00,182 [INFO ][1]: Lineup Added: /20140530/lineups/USA-OTA-55014
2015-02-04 10:14:07,509 [INFO ][1]: SchedulesDirectJSONService Calling SchedulesDirect JSON WebService ...
2015-02-04 10:14:07,616 [INFO ][1]: Got a reply of 192 bytes
2015-02-04 10:14:07,616 [INFO ][1]: SchedulesDirectJSONService Got the lineups.... 1 lineup assigned
2015-02-04 10:14:07,617 [INFO ][1]: SchedulesDirectJSONService Get channels for Local
2015-02-04 10:14:07,768 [INFO ][1]: Got a reply of 13244 bytes
2015-02-04 10:14:07,768 [INFO ][1]: SchedulesDirectJSONService Got a bunch of channels: 55

geoffstewart
Posts: 152
Joined: Sat Sep 18, 2010 1:29 am
Location: Ottawa, ON, Canada

Re: SchedulesDirect JSON client

Post by geoffstewart » Wed Feb 04, 2015 6:59 pm

Before closing the config screen, click reload lineups to see if your lineup selection was in fact saved.

Sent from my Nexus 5 using Tapatalk

et23kochie
Posts: 23
Joined: Mon Jan 26, 2015 2:18 am

Re: SchedulesDirect JSON client

Post by et23kochie » Thu Feb 05, 2015 5:17 am

When I opened the config window there is nothing in the lineup box. I reloaded them and my lineup was already selected.
Lineup.jpg
Lineup.jpg (41.82 KiB) Viewed 35762 times
I x'ed out and got the same error. I opened config again and no line up was in box, Reloaded, it was selected and I saved the lineup and x'ed out. Same error.

geoffstewart
Posts: 152
Joined: Sat Sep 18, 2010 1:29 am
Location: Ottawa, ON, Canada

Re: SchedulesDirect JSON client

Post by geoffstewart » Fri Feb 13, 2015 12:23 am

You get the error when you "x" out the config box?

et23kochie
Posts: 23
Joined: Mon Jan 26, 2015 2:18 am

Re: SchedulesDirect JSON client

Post by et23kochie » Fri Feb 13, 2015 12:33 am

I get the error when I try to import channels.

geoffstewart
Posts: 152
Joined: Sat Sep 18, 2010 1:29 am
Location: Ottawa, ON, Canada

Re: SchedulesDirect JSON client

Post by geoffstewart » Fri Feb 13, 2015 8:45 pm

Sorry... to be clear, that's the "Refresh Channels" button at the bottom of the main screen that you click to make this error?

et23kochie
Posts: 23
Joined: Mon Jan 26, 2015 2:18 am

Re: SchedulesDirect JSON client

Post by et23kochie » Sun Feb 15, 2015 5:21 am

It happens when hit the import button. The refresh channels button works now that I was able to get my lineup selected and saved.

geoffstewart
Posts: 152
Joined: Sat Sep 18, 2010 1:29 am
Location: Ottawa, ON, Canada

Re: SchedulesDirect JSON client

Post by geoffstewart » Thu Feb 19, 2015 3:49 am

OK,

I've recreated the problem... the Antenna channels return a different data structure....

Cable/Satellite returns this:

{
"map": [
{
"stationID": "74348",
"channel": "001"
},
{
"stationID": "11299",
"channel": "002"
},
}

But, antenna (yours) returns this:

{
"map": [
{
"stationID": "21634",
"uhfVhf": 34,
"atscMajor": 2,
"atscMinor": 1
},
{
"stationID": "31260",
"uhfVhf": 34,
"atscMajor": 2,
"atscMinor": 2
},
{
"stationID": "21865",
"uhfVhf": 23,
"atscMajor": 2,
"atscMinor": 3
},
}

So, I'll have to adjust the code to accept this info.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests