Post by papa on Mar 3, 2018 15:05:47 GMT
I am aware of the official OpenHAB docs on http binding, esp about item configuration & am trying to model an item on that.
In my motion.conf, webcontrol passworth authorization is OFF. In a computer’s browser in the same local network, this turns on output_pictures in the Motion Software:
I've tried these versions of the item:
As a result, in the openhab logs, no errors show for the item.
When I click the User Interface switch to the on position, the logs show:
But the output_pictures setting in the Pi’s Motion software does not change to on.
Can someone see what I need to get this to work?
In my motion.conf, webcontrol passworth authorization is OFF. In a computer’s browser in the same local network, this turns on output_pictures in the Motion Software:
http://192.168.1.104:8080/0/config/set?output_pictures=on
& …=off turns it off.
I've tried these versions of the item:
Switch GarageCamOutput { http=">[ON:POST:http://192.168.1.104:8080/0/config/set?output_pictures=on] >[OFF:POST:http://192.168.1.104:8080/0/config/set?output_pictures=off]" }
Switch GarageCamOutput { http=">[ON:POST:http://192.168.1.104:8080/0/config/set?output_pictures=on&type=text] >[OFF:POST:http://192.168.1.104:8080/0/config/set?output_pictures=off&type=text]" }
Switch GarageCamOutput { http=">[ON:POST:http://192.168.1.104:8080/0/config/set?output_pictures=on&type=text/plain] >[OFF:POST:http://192.168.1.104:8080/0/config/set?output_pictures=off&type=text/plain]" }
Switch GarageCamOutput { http=">[ON:POST:http://192.168.1.104:8080/0/config/set?output_pictures=on&type=html] >[OFF:POST:http://192.168.1.104:8080/0/config/set?output_pictures=off&type=html]" }
Switch GarageCamOutput { http=">[ON:POST:http://192.168.1.104:8080/0/config/set?output_pictures=on&type=text/html] >[OFF:POST:http://192.168.1.104:8080/0/config/set?output_pictures=off&type=text/html]" }
As a result, in the openhab logs, no errors show for the item.
When I click the User Interface switch to the on position, the logs show:
Item 'GarageCamOutput' received command ON
GarageCamOutput changed from OFF to ON
But the output_pictures setting in the Pi’s Motion software does not change to on.
Can someone see what I need to get this to work?