Page 1 of 1

How to add a value in a HTTP string ? (openURL)

Posted: Wednesday 05 December 2018 22:22
by HFman
I am using domoticz.openURL to send data to an ESP module.
This works fine.

Example : domoticz.openURL('http://192.168.1.185/control?cmd=PWM,2,200')

The last 200 i need to change depending on temperature.
How can i make a varaiable from this one ?
Tried serveral ways... but not succesfull so far....

Re: How to add a value in a HTTP string ? (openURL)

Posted: Wednesday 05 December 2018 22:34
by HFman
Solved.. yesterday evening didn't find it.. now i found it :

domoticz.openURL(
{ url = "http://192.168.1.185/control?cmd=PWM,2," .. FAN,
method = "GET",
callback = "getLog" ,
})