Alpha feature: automap lineup

Alpha feature: automap lineup

Postby rkulagow » Sun Jul 26, 2015 11:49 am

In order to make lineup selection simpler, there is an automap function being developed.

The station names as sent by a station and the station names in our database often aren't the same. The automap functionality being developed will depend on getting data from your users.

Currently, this function only supports the lineup.json format provided by HDHR's.
(http://ipAddressOfHDHR/lineup.json)

If you get a 404 response that means that your HDHR is either too old, or isn't running a firmware that supports the feature.

To use:

POST to https://json.schedulesdirect.org/20141201/map/lineup/

with a valid token in the header.
The body will be the lineup.json from your HDHR.

The response will be a lineup name and a percentage match. Matches over 90% are returned as candidates. If there are no matches then you will get back an empty array. Matches will be sorted highest to lowest.

To submit a lineup.json do the same call, except include the lineup:

https://json.schedulesdirect.org/201412 ... -OTA-02116

That will store it so that I can check it for sanity first; I'll automate this some more if it seems that we're getting a good take rate.

If you'd like to test, here is the USA-OTA-02116 body which was submitted using the second call.

Sending it using the first example above will come back with:

{"USA-OTA-02116":100}

Indicating a 100% match.

[{"GuideNumber":"2.1","GuideName":"WGBH-HD","URL":"http://192.168.1.119:5004/auto/v2.1"},{"GuideNumber":"2.2","GuideName":"World","URL":"http://192.168.1.119:5004/auto/v2.2"},{"GuideNumber":"4.1","GuideName":"WBZ-TV","URL":"http://192.168.1.119:5004/auto/v4.1"},{"GuideNumber":"4.2","GuideName":"WBZ 4.2","URL":"http://192.168.1.119:5004/auto/v4.2"},{"GuideNumber":"5.1","GuideName":"WCVB","URL":"http://192.168.1.119:5004/auto/v5.1"},{"GuideNumber":"5.2","GuideName":"MeTV","URL":"http://192.168.1.119:5004/auto/v5.2"},{"GuideNumber":"7.1","GuideName":"WHDH-HD","URL":"http://192.168.1.119:5004/auto/v7.1"},{"GuideNumber":"7.2","GuideName":"THIS-TV","URL":"http://192.168.1.119:5004/auto/v7.2"},{"GuideNumber":"24.1","GuideName":"MndoFOX","URL":"http://192.168.1.119:5004/auto/v24.1"},{"GuideNumber":"24.2","GuideName":"Azteca","URL":"http://192.168.1.119:5004/auto/v24.2"},{"GuideNumber":"24.3","GuideName":"Hope","URL":"http://192.168.1.119:5004/auto/v24.3"},{"GuideNumber":"24.4","GuideName":"WFXZSD4","URL":"http://192.168.1.119:5004/auto/v24.4"},{"GuideNumber":"25.1","GuideName":"WFXT","URL":"http://192.168.1.119:5004/auto/v25.1"},{"GuideNumber":"25.2","GuideName":"MOVIES","URL":"http://192.168.1.119:5004/auto/v25.2"},{"GuideNumber":"25.3","GuideName":"LAFF","URL":"http://192.168.1.119:5004/auto/v25.3"},{"GuideNumber":"38.1","GuideName":"WSBK-TV","URL":"http://192.168.1.119:5004/auto/v38.1"},{"GuideNumber":"44.1","GuideName":"WGBX-HD","URL":"http://192.168.1.119:5004/auto/v44.1"},{"GuideNumber":"44.3","GuideName":"Create","URL":"http://192.168.1.119:5004/auto/v44.3"},{"GuideNumber":"44.4","GuideName":"Kids","URL":"http://192.168.1.119:5004/auto/v44.4"},{"GuideNumber":"56.1","GuideName":"WLVI-HD","URL":"http://192.168.1.119:5004/auto/v56.1"},{"GuideNumber":"56.2","GuideName":"ZUUS","URL":"http://192.168.1.119:5004/auto/v56.2"},{"GuideNumber":"58.1","GuideName":"WCEA","URL":"http://192.168.1.119:5004/auto/v58.1"},{"GuideNumber":"58.2","GuideName":"TELESUR","URL":"http://192.168.1.119:5004/auto/v58.2"},{"GuideNumber":"58.3","GuideName":"CUBA","URL":"http://192.168.1.119:5004/auto/v58.3"},{"GuideNumber":"58.4","GuideName":"P.R.NET","URL":"http://192.168.1.119:5004/auto/v58.4"},{"GuideNumber":"58.5","GuideName":"CDM","URL":"http://192.168.1.119:5004/auto/v58.5"},{"GuideNumber":"58.6","GuideName":"DOM.REP","URL":"http://192.168.1.119:5004/auto/v58.6"},{"GuideNumber":"62.1","GuideName":"WMFP","URL":"http://192.168.1.119:5004/auto/v62.1"},{"GuideNumber":"62.2","GuideName":"WMFPDT2","URL":"http://192.168.1.119:5004/auto/v62.2"},{"GuideNumber":"62.3","GuideName":"WMFPDT3","URL":"http://192.168.1.119:5004/auto/v62.3"},{"GuideNumber":"66.1","GuideName":"WUTF-DT","URL":"http://192.168.1.119:5004/auto/v66.1"},{"GuideNumber":"66.2","GuideName":"Bounce","URL":"http://192.168.1.119:5004/auto/v66.2"},{"GuideNumber":"66.3","GuideName":"getTV","URL":"http://192.168.1.119:5004/auto/v66.3"},{"GuideNumber":"66.4","GuideName":"Escape","URL":"http://192.168.1.119:5004/auto/v66.4"},{"GuideNumber":"68.1","GuideName":"ION","URL":"http://192.168.1.119:5004/auto/v68.1"},{"GuideNumber":"68.2","GuideName":"qubo","URL":"http://192.168.1.119:5004/auto/v68.2"},{"GuideNumber":"68.3","GuideName":"IONLife","URL":"http://192.168.1.119:5004/auto/v68.3"},{"GuideNumber":"68.4","GuideName":"Shop","URL":"http://192.168.1.119:5004/auto/v68.4"},{"GuideNumber":"68.5","GuideName":"QVC","URL":"http://192.168.1.119:5004/auto/v68.5"},{"GuideNumber":"68.6","GuideName":"HSN","URL":"http://192.168.1.119:5004/auto/v68.6"}]
rkulagow
SD Staff
 
Posts: 914
Joined: Tue Aug 14, 2007 3:15 pm

Return to Developer

Who is online

Users browsing this forum: No registered users and 6 guests