Link to dzVents documentation

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Locked
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Link to dzVents documentation

Post by dannybloe »

Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Eoreh
Posts: 65
Joined: Tuesday 13 October 2015 13:50
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland
Contact:

Re: Link to dzVents documentation

Post 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
}
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Link to dzVents documentation

Post by dannybloe »

Please use a new thread for this question.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Locked

Who is online

Users browsing this forum: Google [Bot] and 0 guests