On September 24, 2008 at 14:47, MVis said...
try
socket.write("GET /web/powerstate?newstate=0 HTTP/1.0\r\n\r\n")
Yes! That works. Thank you very much.
For anyone that needs a workaround for discrete power on/off IR codes for a dreambox you can use the IR power toggle to power on and the following prontoscript to place the receiver in standby.
var socket = new TCPSocket(false);
socket.onConnect = function()
{
socket.write("GET /web/powerstate?newstate=0 HTTP/1.0\r\n\r\n")
socket.close();
};
socket.onClose = function()
{
};
socket.onIOError = function(e)
{
label = "Error: " + e;
};
socket.connect('dreambox_IP',80,3000);
Thank you once again to MVis.
Cheers.