I wanted to monitor with domoticz the temperature of a modem on a RBM11 routerboard.
I detect the temperature of the modem with a script that is saved every minute in the variable temp2.
with the command via browser http://10.100.0.202:8080/json.htm?usern ... &svalue=30
where 10...is the home automation server idx=27 the virtual sensor on domoticz and svalue=30 the temperature entered manually.
With this command from the browser everything works.
However, if I try via mikrotik script nothing works
/tool fetch http-method=post http-header-field="Content-Type: application/json" http-data="{username=xxx&password=xxx&type=command¶m=udevice&idx=27&nvalue=0&svalue=$temp2}" url="http://10.100.0.202:8080"
what is the correct line to write?
There are no instructions in the mikrotik manual.