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....
How to add a value in a HTTP string ? (openURL)
Moderator: leecollings
-
HFman
- Posts: 82
- Joined: Thursday 02 March 2017 20:28
- Target OS: Linux
- Domoticz version: V4.1174
- Location: Netherlands
- Contact:
How to add a value in a HTTP string ? (openURL)
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
-
HFman
- Posts: 82
- Joined: Thursday 02 March 2017 20:28
- Target OS: Linux
- Domoticz version: V4.1174
- Location: Netherlands
- Contact:
Re: How to add a value in a HTTP string ? (openURL)
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" ,
})
domoticz.openURL(
{ url = "http://192.168.1.185/control?cmd=PWM,2," .. FAN,
method = "GET",
callback = "getLog" ,
})
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
Who is online
Users browsing this forum: No registered users and 1 guest