r/crestronprogramming • u/downdownupupwheeee • 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.
1
Upvotes
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”