[mythtv-users] DirecTV HTTP Server
Steve Harrington
steve at the-harringtons.org
Tue Oct 26 00:59:40 UTC 2010
On Sun, Oct 24, 2010 at 9:43 PM, Steve Harrington
<steve at the-harringtons.org> wrote:
>
> Ran a port scan this morning of all my devices and noticed on my DirecTV H23 boxes there's now some web commands that can be run on port 8080.
>
> To access, put in a web browser http://directv_receiver_ip:8080/info/getOptions
>
> To change a channel, put in http://directv_receiver_ip:8080/tv/tune?major=chan_num
> The functions return the data in JSON format.
>
> I'm probably going to write a wrapper program to change channels using this instead of my serial port if it proves reliable and DirecTV doesn't take it away. I think this is fantastic.
>
> Hope others find this neat.
> Steve
Attached is my first crack at a script. I'm pretty green at perl so
this is quite a hack, but it works. The script takes the following
arguments:
Always list the IP address of the receiver first.
Next, type "tune" to change the channel, or "getTuned" to display the
JSON for the current listing
If you chose "tune", now enter the channel number
I found that on my Ubuntu installation, I had to install the JSON
library using CPAN. I followed these instructions:
sudo cpan
install JSON
exit
Let me know what you think.
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: directv_http.pl
Type: application/x-perl
Size: 1319 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20101025/a5c61a4d/attachment.bin>
More information about the mythtv-users
mailing list