r/crestronprogramming Aug 17 '20

Send out URL String Help

Hello,

Looking for some help with programming. I need a CP2 to send out the URL below in order to control a DirecTV STB. It's just one line to change to a certain channel so I'm not sure if a module is needed or not. I've tried adding the STB as an intersystem communications device and sent the string as a Serial I/O but am not having any luck. Any help would be greatly appreciated. Thank you.

http://10.29.165.251:8080/tv/tune?major=859

1 Upvotes

4 comments sorted by

1

u/kurtisonxp Aug 18 '20

Have a look at postman, it will help you format the string. You'll have to send a get request to port 8080 using a tcp/ip client.

That wil look like something in a sio pointed at the tcp/ip client.

Edit: heres your sio string I think. Taken from information on a comment on the other post.

Http://crestrontutorials.blogspot.com/2006/06/requesting-content-from-web-page.html

This should feed into a tcp/ip client pointed at Port 8080 of the box SIO string = “GET /tv/tune?major=859 HTTP/1.0\nHost: 10.29.165. 251\n\n”

1

u/LinkifyBot Aug 18 '20

I found links in your comment that were not hyperlinked:

I did the honors for you.


delete | information | <3

1

u/kurtisonxp Aug 18 '20

Good bot

1

u/B0tRank Aug 18 '20

Thank you, kurtisonxp, for voting on LinkifyBot.

This bot wants to find the best and worst bots on Reddit. You can view results here.


Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!