Get Channel Information [DirecTV]
Posted: Wed Jan 01, 2014 11:49 pm
I am trying to get and display specific channel information from my direcTV receiver. I can get the information via the 'send data to a website' action:
http://<receiver IP>:8080/tv/getTuned
Returning:
{
"callsign": "NFLHD",
"date": "20131231",
"duration": 3600,
"episodeTitle": "Vince Lombardi, Part 2",
"isOffAir": false,
"isPclocked": 3,
"isPpv": false,
"isRecording": false,
"isVod": false,
"major": 212,
"minor": 65535,
"offset": 2497,
"programId": "11408688",
"rating": "No Rating",
"startTime": 1388613600,
"stationId": 3900923,
"status": {
"code": 200,
"commandResult": 0,
"msg": "OK.",
"query": "/tv/getTuned"
},
"title": "A Football Life"
}
But I have no idea how to get (in this instance) the result of "callsign": - which is "NFLHD" and display it in a label.
I have tried setting up the receiver as a device, specifying "GET /tv/getTuned HTTP1.1\x0d\x0a" as a command (and having that command run on startup), then configuring two-way feedback to condition: feedback matches a pattern, data: "callsign": "(.*)", -> [CurrentChannelInfo] label to no avail.
I telnet'd to the receiver from Windows and issued the same "GET /tv/getTuned HTTP1.1\x0d\x0a" command, and saw it error. So I removed the \x0d\x0a and it worked. So I removed that from my command in Demopad, and still got nothing back.
I am at a loss. Anyone have any idea how to Get the channel info to show up in a label??? HELP!
http://<receiver IP>:8080/tv/getTuned
Returning:
{
"callsign": "NFLHD",
"date": "20131231",
"duration": 3600,
"episodeTitle": "Vince Lombardi, Part 2",
"isOffAir": false,
"isPclocked": 3,
"isPpv": false,
"isRecording": false,
"isVod": false,
"major": 212,
"minor": 65535,
"offset": 2497,
"programId": "11408688",
"rating": "No Rating",
"startTime": 1388613600,
"stationId": 3900923,
"status": {
"code": 200,
"commandResult": 0,
"msg": "OK.",
"query": "/tv/getTuned"
},
"title": "A Football Life"
}
But I have no idea how to get (in this instance) the result of "callsign": - which is "NFLHD" and display it in a label.
I have tried setting up the receiver as a device, specifying "GET /tv/getTuned HTTP1.1\x0d\x0a" as a command (and having that command run on startup), then configuring two-way feedback to condition: feedback matches a pattern, data: "callsign": "(.*)", -> [CurrentChannelInfo] label to no avail.
I telnet'd to the receiver from Windows and issued the same "GET /tv/getTuned HTTP1.1\x0d\x0a" command, and saw it error. So I removed the \x0d\x0a and it worked. So I removed that from my command in Demopad, and still got nothing back.
I am at a loss. Anyone have any idea how to Get the channel info to show up in a label??? HELP!