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

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

Moderator: leecollings

Post Reply
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

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

Post by waaren »

Is it possible to get the result from a domoticz.openURL(some http::// json type call) into a variable ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

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

Post by dannybloe »

Yes but you have to wait for dzVents 2.4. Almost finished.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
elmortero
Posts: 248
Joined: Sunday 29 November 2015 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9639
Location: Spain
Contact:

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

Post by elmortero »

dannybloe wrote: Sunday 14 January 2018 8: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: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

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

Post by waaren »

@dannybloe, can't wait :D

@elmortero, Thx for the link. I already use (kind of) this method in bash but prefer pure dzVents / domoticz
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
acaonweb
Posts: 92
Joined: Thursday 23 March 2017 14:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by acaonweb »

dannybloe wrote: Sunday 14 January 2018 8: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: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

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

Post by dannybloe »

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

Who is online

Users browsing this forum: Bing [Bot] and 1 guest