Howto get result from openURL call in LUA (dzVents) variable

Easy to use, 100% Lua-based event scripting framework.
Post Reply
User avatar
waaren
Posts: 603
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Howto get result from openURL call in LUA (dzVents) variable

Post by waaren » Sunday 14 January 2018 0:10

Is it possible to get the result from a domoticz.openURL(some http::// json type call) into a variable ?
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave , dzVents 2.4.n, Amazon echo

dannybloe
Posts: 1433
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Howto get result from openURL call in LUA (dzVents) variable

Post by dannybloe » Sunday 14 January 2018 9:08

Yes but you have to wait for dzVents 2.4. Almost finished.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

elmortero
Posts: 190
Joined: Sunday 29 November 2015 21:46
Target OS: Raspberry Pi
Domoticz version: 2.3852
Location: Spain
Contact:

Re: Howto get result from openURL call in LUA (dzVents) variable

Post by elmortero » Sunday 14 January 2018 10:56

dannybloe wrote:
Sunday 14 January 2018 9:08
Yes but you have to wait for dzVents 2.4. Almost finished.
Until dannybloe releases dzVents this should explain well enough how to do that.
That said: Danny, I can't wait for all the new goodies you will bring us :D

User avatar
waaren
Posts: 603
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Howto get result from openURL call in LUA (dzVents) variable

Post by waaren » Sunday 14 January 2018 15:22

@dannybloe, can't wait :D

@elmortero, Thx for the link. I already use (kind of) this method in bash but prefer pure dzVents / domoticz
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave , dzVents 2.4.n, Amazon echo

acaonweb
Posts: 31
Joined: Thursday 23 March 2017 15:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Howto get result from openURL call in LUA (dzVents) variable

Post by acaonweb » Monday 15 January 2018 14:20

dannybloe wrote:
Sunday 14 January 2018 9:08
Yes but you have to wait for dzVents 2.4. Almost finished.
I can't use dzevents 2.3 in the stable version of domoticz and we'll have 2.4?
Do you know how i could use 2.3 o better into my stable domoticz???

Thanks in advance

Fabrizio

dannybloe
Posts: 1433
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Howto get result from openURL call in LUA (dzVents) variable

Post by dannybloe » Monday 15 January 2018 14:39

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

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests