cloudspout / cloudspout-button-panel

Grafana panel to integrate with any kind of HTTP/REST API
MIT License
51 stars 35 forks source link

Parametrisation of openhab2 switch item curl #80

Open Jusufs opened 2 years ago

Jusufs commented 2 years ago

Please how to parametrize in Grafana plugin CloudSpout Button Panel according following openhab2 rest api statement: curl --header 'Content-Type: text/plain' --request POST --data 'ON' 'http://openhabIP:8080/rest/items/BasicSwitch4' or curl -X POST --header "Content-Type: text/plain" --header "Accept: application/json" -d "OFF" "http://openhabIP:8080/rest/items/BasicSwitch4".

Version numbers: Grafana 8.2.5, CloudSpout LLC Button Panel, Raspbian buster,

Running on RPi4 4GB

Thanks.

Jusufs commented 2 years ago

Solution for Openhab2, maybe also OH3 ??? http://openhabIP:8080/classicui/CMD?BasicSwitch4=TOGGLE