bitfocus / companion-module-requests

Repository for tracking module requests
95 stars 10 forks source link

DirecTV SHEF Protocol #1386

Open dougthebug opened 5 months ago

dougthebug commented 5 months ago

I have researched the list of existing Companion modules and requests and have determined this has not yet been requested.

The name of the device, hardware, or software you would like to control:

DirecTV set top boxes.

What you would like to be able to make it do from Companion:

Companion would be able to emulate key presses from a remote, or send direct channel control information, as well as query the set top box for current and upcoming program information and share info such as station ID and title data as variables.

Enough info is available in the attached document to get started. I can pull the title data from the following:

http://192.168.1.174:8080/tv/getTuned?clientAddr=0

which returns: { "callsign": "KPIX", "duration": 1800, "isOffAir": false, "isPclocked": 3, "isPpv": false, "isRecording": false, "isVod": false, "major": 5, "minor": 65535, "offset": 802, "programId": "9990831", "rating": "No Rating", "startTime": 1706749200, "stationId": 2725706, "status": { "code": 200, "commandResult": 0, "msg": "OK.", "query": "/tv/getTuned?clientAddr=0" }, "title": "CBS News Bay Area: Evening Edition 5pm" }

I just know I don't know how to further implement this. Thanks to those who do.

Direct links or attachments to the ethernet control protocol or API:

DTV-MD-0359-DIRECTV_SHEF_Command_Set-V1.3.C.pdf