Rest URL APIΒΆ

Allumer : curl -X PUT -d ‘{“on”:true}’ “http://10.0.0.10:8000/api/newdeveloper/lights/1/state” Eteindre : curl -X PUT -d ‘{“on”:false}’ “http://10.0.0.10:8000/api/newdeveloper/lights/1/state” Bright : curl -X PUT -d ‘{“bri”:‘128’}’ “http://10.0.0.10:8000/api/newdeveloper/lights/1/state” Statut : ON/OFF : curl -X GET -s “http://10.0.0.10:8000/api/newdeveloper/lights/1|cut -d, -f1 |cut -d{ -f3 |cut -d: -f2

Reachable : curl -X GET -s “http://10.0.0.10:8000/api/newdeveloper/lights/1|cut -d, -f11 |cut -d: -f2 |sed ‘s/}//’ Name : curl -X GET -s “http://10.0.0.10:8000/api/newdeveloper/lights/1|cut -d, -f13 |cut -d: -f2 |sed ‘s/}//’ Model : curl -X GET -s “http://10.0.0.10:8000/api/newdeveloper/lights/1|cut -d, -f14 |cut -d: -f2 |sed ‘s/}//’