moursika Posted February 20, 2011 Share Posted February 20, 2011 Hi.I am new at javascript and I don't know if what I want to do is with javascript.I have a web interface page that allows me to connect through http to a sattelite tv receiver. and what I do trough there is that I am able to change the channels from my computer. Basically what I do is to enter the satelive receiver(dreambox) ip adress and I enter the login and password and I can get a remote control to change channels and do a lot of other stuff.What I would like to do is a simple programme that would allow me to change channels and volume P+, P-, V+, V-, ON/OFF, but on java.my question is how can I know the commands that the web interface is sending to the receiver, so that I can do a programme that can do the same.I don't know if you understand my question:s and even if it is possible.ThanksBest Regards Link to comment Share on other sites More sharing options...
thescientist Posted February 20, 2011 Share Posted February 20, 2011 are you trying to do this is java or javascript. Two big differences. Is there an API available through this satellite service? Link to comment Share on other sites More sharing options...
moursika Posted February 20, 2011 Author Share Posted February 20, 2011 are you trying to do this is java or javascript. Two big differences. Is there an API available through this satellite service?I would like to do it on java. I posted here on java script by mistake:sThis is what I have:http://www.techwatch.co.uk/forums/90951-na...00-v0-10-a.htmlThanks for your quick anwser. Link to comment Share on other sites More sharing options...
boen_robot Posted February 22, 2011 Share Posted February 22, 2011 You can use java.net.HttpUrlConnection to send HTTP requests and receive responses.If there's no documentation on the kind of requests that the web interface takes, you'll have to reverse engineer them yourself by looking at the requests for certain things that you can do. You can use tools like Fiddler2 (see my signature) to see the requests. Once you can see them, you can duplicate them with the JAVA API above.For possible errors, you'll have to try and supply some invalid data, and reverse engineer the response. In your JAVA application, you'll check if the response looks like an error, and act accordingly.Note that if written in this way, your app will be firmware dependant. If the web interface changes (which can happen on a firmware upgrade), your app may start providing commands that would be ignored or in error from the new interface's perspective. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.