PS: I just ran a quick test of set & clear block from some javascript
JSON code. After I restarted squeezecenter, the code produced the
desired results:
Code:
--------------------
function SrvrPowerCtrlTest () {
alert('SrvrPowerCtrlTest!');
server = new objServer ();
var srvHttp = new ActiveXObject ('Msxml2.XMLHTTP');
srvHttp.onreadystatechange = function() {
alert('readyState == ' + srvHttp.readyState);
};
srvHttp.open ('POST', server.url () + '/jsonrpc.js', true,
server.username, server.password);
srvHttp.setRequestHeader ('X-Requested-With', 'XMLHttpRequest');
srvHttp.setRequestHeader ('Content-type',
'application/x-www-form-urlencoded');
srvHttp.send
('{"id":1,"method":"slim.request","params":["",["srvrpowerctrl", "clearblock",
"blip", "viacli"]]}');
alert('SrvrPowerCtrlTest done!');
}
--------------------
So, again, I think there is a bug in SrvrPowerCtrl someplace that's
corrupting the logging and, eventually corrupting the cli too. See if
your code works after a squeezecenter restart.
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins