-
Notifications
You must be signed in to change notification settings - Fork 5
Feature Request: Move OTA tuning data from station data to channel map #4
Copy link
Copy link
Closed
Description
Instead of get lineups returning:
{
"deviceTypes":[
"Antenna"
],
"name":"Antenna",
"location":"Over-the-air",
"Antenna":{
"map":[
{
"stationID":10130,
"channel":"3"
},
{
"stationID":10137,
"channel":"11"
},
...
]
},
"stationID":[
{
"name":"Global Toronto",
"callsign":"CIII",
"affiliate":"Canadian Independent",
"broadcaster":{
"city":"North York",
"state":"ON",
"zipcode":"M3C 2A2",
"country":"Canada"
},
"language":"English",
"stationID":10130,
"uhfVhf":3,
"atscMajor":0,
"atscMinor":0
},
{
"name":"CKWS",
"callsign":"CKWS",
"affiliate":"CBC Affiliate",
"broadcaster":{
"city":"Kingston",
"state":"ON",
"zipcode":"K7K 1B2",
"country":"Canada"
},
"language":"English",
"stationID":10137,
"uhfVhf":11,
"atscMajor":0,
"atscMinor":0
},
...
],
"metadata":[
{
"modified":"2013-04-29T17:49:40Z",
"device":"Antenna"
}
]
}I think it should return:
{
"deviceTypes":[
"Antenna"
],
"name":"Antenna",
"location":"Over-the-air",
"Antenna":{
"map":[
{
"stationID":10130,
"channel":"3"
"uhfVhf":3,
"atscMajor":0,
"atscMinor":0
},
{
"stationID":10137,
"channel":"11"
"uhfVhf":11,
"atscMajor":0,
"atscMinor":0
},
...
]
},
"stationID":[
{
"name":"Global Toronto",
"callsign":"CIII",
"affiliate":"Canadian Independent",
"broadcaster":{
"city":"North York",
"state":"ON",
"zipcode":"M3C 2A2",
"country":"Canada"
},
"language":"English",
"stationID":10130
},
{
"name":"CKWS",
"callsign":"CKWS",
"affiliate":"CBC Affiliate",
"broadcaster":{
"city":"Kingston",
"state":"ON",
"zipcode":"K7K 1B2",
"country":"Canada"
},
"language":"English",
"stationID":10137
},
...
],
"metadata":[
{
"modified":"2013-04-29T17:49:40Z",
"device":"Antenna"
}
]
}When you make a request for an antenna/OTA lineup it returns fields like atscMajor, atscMinor, and uhfVhf in the station Data.
In the same way that the channel map in a cable lineup says to get stationid=xxx tune to channel=xxx, OTA lineup channel maps should say to get stationid=xxx tune to atscMajor, atscMinor.
In other words, cable and antenna may share common stations (and that station data should always be the same whether it's refered to by a cable channel or OTA channel). The channel map is where all the tuning information goes IMO.
Reactions are currently unavailable