create virtual hardware at command line
Posted: Sunday 24 February 2019 16:38
When I run this in the browser it works:
but when I run it on the command line in linux with:
The strange thing is that I can make a virtual dummy at the command line with the following command:
whats the difference with my create device vs my add hardware wich works ..
Code: Select all
http://192.168.178.33:8080/json.htm?type=createdevice&idx=9&sensorname=test_gf&sensormappedtype=0xF449
Code: Select all
curl http://192.168.178.33:8080/json.htm?type=createdevice&idx=9&sensorname=test_gf&sensormappedtype=0xF449
it gives:
{
"status" : "ERR"
}
Code: Select all
curl http://192.168.178.33:8080/json.htm?type=command¶m=addhardware&htype=15&name=presence_detection&enabled=true&datatimeout=0