Sony & DirecTV status assistance

Forum to ask for any help
Post Reply
rrehart
Posts: 44
Joined: Thu Sep 06, 2012 12:08 am

Sony & DirecTV status assistance

Post by rrehart » Wed May 15, 2013 6:19 pm

I have a Sony STR-DA5600ES receiver which is network connected. Through Sony's (terrible) iOS or Android app, when I adjust the volume (either via the app or via my IP2IR Global Cache device) I can see the volume setting (ie; -10, -13.5, -20, etc...) on the Sony app. What I'd like to do is see that via the DemoPad interface and not a separate app when I adjust the volume from my controls (controlling the IP2IR). Does anyone know the codes, URL, whatever... I would need to use to see the volume setting from the receiver?

Also, I have a DirecTV receiver that I would like to get the channel info from within the DP app as well, but in a 'formatted' look. Right now, I've put a web page on my DirecTV panel that shows the JSON info in native form; (http://10.10.10.50:8080/tv/getTuned) gives me:
{
"callsign": "NFLHD",
"duration": 14400,
"isOffAir": false,
"isPclocked": 3,
"isPpv": false,
"isRecording": false,
"isVod": false,
"major": 212,
"minor": 65535,
"offset": 11878,
"programId": "9213947",
"rating": "No Rating",
"startTime": 1368626400,
"stationId": 3900923,
"status": {
"code": 200,
"commandResult": 0,
"msg": "OK.",
"query": "/tv/getTuned"
},
"title": "NFL AM"
}
I'd like to extract the "callsign", "title", and "major" info from that and display it on my panel. Any ideas?

Thanks in advance for the info.

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Sony & DirecTV status assistance

Post by DemoPad » Wed May 15, 2013 6:47 pm

Ok - for the 2nd part, you can create a device at 10.10.10.50 port 8080 and send a http GET request command eg

GET /tv/getTuned HTTP/1.0\x0D\x0A

Then in the 2-way feedback module you can use a regular expression to extract the data you want, for example:

"callsign": "(.*)",

extracted to a label should give you NFLHD, which you can display on screen with an object text linked to that label.

See http://www.demopad.com/forum/viewtopic.php?f=7&t=17

You'll probably want either \x0A or \x0D as the response terminator for the device.

Post Reply