1390411243976 1390411274699 17 lightson 129 xmlhttp = new XMLHttpRequest(); xmlhttp.open('PUT', 'http://192.168.1.19/api//lights/1/state',true); xmlhttp.send('{"on": true}'); wait(10); xmlhttp.open('PUT', 'http://192.168.1.19/api//lights/2/state',true); xmlhttp.send('{"on": true}'); wait(10); xmlhttp.open('PUT', 'http://192.168.1.19/api//lights/3/state',true); xmlhttp.send('{"on": true}'); wait(10); xmlhttp.open('PUT', 'http://192.168.1.19/api//lights/4/state',true); xmlhttp.send('{"on": true}'); wait(10);