[mythtv-users] DirecTV HTTP Server
Greg Oliver
oliver.greg at gmail.com
Mon Nov 22 18:50:58 UTC 2010
On 11/22/2010 12:15 PM, jmk wrote:
> On Mon, 2010-11-22 at 06:51 -0600, Greg Oliver wrote:
>> Hmmmm. This morning, all is right with the universe I guess.. All of
>> the receivers are responding properly. I should have checked before I
>> connected a hub between those network segments and grabbed packet
>> captures. Waste of time. I do not know what the glitch was yesterday,
>> but I did double check my receivers and my HR21 that was experiencing
>> issues yesterday has not been updated since 8/23. Definitely not in
>> line with your observations (plus I see no unauthorized messages, etc).
>
> The "getTuned" request works fine on your H21? Here's what I'm seeing
> for that query:
>
> % echo 'GET /tv/getTuned HTTP/1.0\r\n\r\n'|netcat 192.168.1.5 8080
> HTTP/1.0 403 Forbidden.
> Content-Length: 100
> Content-Type: application/json
> Date: Mon, 22 Nov 2010 18:04:41 GMT
> Reason: Command(s) disabled.
>
> {"status": {
> "code": 403,
> "msg": "Forbidden. Command(s) disabled.",
> "query": "/tv/getTuned"
> }}
Yes..
HR23
./dtv.pl.orig 192.168.100.120 2 getTuned
{
"audioTrack": "English DD",
"callsign": "HISTHD",
"category": {
"advisories": [],
"post": [
"High-Def",
"CC",
"Special"
],
"pre": ["Documentary"]
},
"contentId": "1 1 149336 2",
"credits": {
"actor": [],
"author": [],
"director": []
},
"date": "20101126",
"description": "\"Handguns and Hooch\" Documentary. (2010) The guys
head into town to purchase a gun for Adam; Frank decides to build a
still in the backyard. Special.",
"duration": 1800,
"episodeTitle": "Handguns and Hooch",
"isHd": true,
"isPclocked": 3,
"isPpv": false,
"isRecording": false,
"isVod": false,
"major": 269,
"minor": 65535,
"programId": "6939880",
"rating": "TV-PG",
"startTime": 1290450600,
"stationId": 3900931,
"status": {
"code": 200,
"msg": "OK",
"query": "/tv/getTuned"
},
"title": "Apocalypse PA."
}
HR21
./dtv.pl.orig 192.168.100.201 2 getTuned
{
"audioTrack": "English DD",
"callsign": "DSCHD",
"category": {
"advisories": [],
"post": [
"High-Def",
"CC",
"Series"
],
"pre": [
"Sports",
"Reality",
"Motorcycle",
"How-To"
]
},
"contentId": "1 1 8A217 59",
"credits": {
"actor": [],
"author": [],
"director": []
},
"date": "20051114",
"description": "\"History of the OCC\" Sports, Reality, Motorcycle,
How-To. (2005) Paul Sr.'s start at Orange County Ironworks marks the
beginning of OCC. Series.",
"duration": 3600,
"episodeTitle": "History of the OCC",
"isHd": true,
"isPclocked": 3,
"isPpv": false,
"isRecording": false,
"isVod": false,
"major": 278,
"minor": 65535,
"programId": "5400936",
"rating": "TV-PG",
"startTime": 1290448800,
"stationId": 3900936,
"status": {
"code": 200,
"msg": "OK",
"query": "/tv/getTuned"
},
"title": "American Chopper"
}
> After further testing, the "tune" command does still work for me. I'm
> not sure what happened yesterday morning that caused it to fail,
> resulting in a missed recording. I performed a few manual tune requests
> and the response is now "OK.", where I think it was previously "OK". A
> minor adjustment to the script to match that and it no longer spits out
> an error.
>
> % echo 'GET /tv/tune?major=206 HTTP/1.0\r\n\r\n'|netcat 192.168.1.5 8080
> HTTP/1.0 200 OK.
> Content-Length: 78
> Content-Type: application/json
> Date: Mon, 22 Nov 2010 18:04:21 GMT
>
> {"status": {
> "code": 200,
> "msg": "OK.",
> "query": "/tv/tune?major=206"
> }}
>
> Joe
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
More information about the mythtv-users
mailing list