Bash command app for Domoticz data recovery

Hello

I just tested the jq utility (in the Debian/Ubuntu repositories. https://pkgs.org/search/?q=jq) to retrieve a temperature value in Domoticz.
With the command:

curl -s "http://192.168.0.106:8080/json.htm?type=devices&rid=22" | jq -r .result[].Temp

18.3
The request to the API returns the desired value.
How to integrate (is it possible?) a bash command call to have a device on the dashboard?
Thanks for your feedback

Hello @kazuke!

You can create a bash script to publish this value in MQTT, and receive these values in Gladys via MQTT :slight_smile:

I found this on the internet for example:

Thanks PG
I’ll check it out