Script send commands van JSON
Code: Select all
pi@raspberrypi:~ $ curl "http://pi:[email protected]:8080/json.htm?type=command¶m=switchlight&idx=10&switchcmd=On"
{
"status" : "OK",
"title" : "SwitchLight"
}
Code: Select all
pi@raspberrypi:~ $ curl "http://pi:[email protected]:8080/json.htm?type=command¶m=switchlight&idx=10&switchcmd=Off"
{
"message" : "WRONG CODE",
"status" : "ERROR",
"title" : "SwitchLight"
}