Link to dzVents documentation

Easy to use, 100% Lua-based event scripting framework.
Locked
dannybloe
Posts: 1481
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Link to dzVents documentation

Post by dannybloe » Thursday 03 August 2017 10:00

Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Eoreh
Posts: 74
Joined: Tuesday 13 October 2015 13:50
Target OS: Raspberry Pi
Domoticz version: beta
Location: Poland
Contact:

Re: Link to dzVents documentation

Post by Eoreh » Sunday 28 January 2018 9:57

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: 1481
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Link to dzVents documentation

Post by dannybloe » Sunday 28 January 2018 15:12

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: No registered users and 1 guest