Page 1 of 1
Link to dzVents documentation
Posted: Thursday 03 August 2017 10:00
by dannybloe
Re: Link to dzVents documentation
Posted: Sunday 28 January 2018 8:57
by Eoreh
In 2.4.x is change to openURL. in example iś
Code: Select all
on = {
timer = {'every 5 seconds'},
httpResponses = { 'trigger' }
},
but we dont have such a timer. Is this a valid example ?
- Spoiler: show
-
Of course you can combine the script that issues the request and handles the response in one script:
Code: Select all
return {
on = {
timer = {'every 5 seconds'},
httpResponses = { 'trigger' }
},
execute = function(domoticz, item)
if (item.isTimer) then
domoticz.openURL({
url = '...',
callback = 'trigger'
})
end
if (item.isHTTPResponse) then
if (item.ok) then
...
end
end
end
}
Re: Link to dzVents documentation
Posted: Sunday 28 January 2018 14:12
by dannybloe
Please use a new thread for this question.