Page 1 of 1

HOWTO get the value of the Domoticz URL?

Posted: Friday 08 May 2020 12:05
by dlube
Hi
If I follow the DzVent manual I should use the following

Code: Select all

print('Domoticz url '..domoticz.settings.url)
This code produce the error below

Code: Select all

dzVents: Error: (3.0.2) Test: An error occurred when calling event handler Test
dzVents: Error: (3.0.2) Test: ...e/pi/domoticz/scripts/dzVents/generated_scripts/Test.lua:20: attempt to concatenate a nil value (field 'url')
The dump of the table domoticz.settings:

Code: Select all

serverPort: 8080
dzVentsVersion: 3.0.2
Log level: 2
location:
name: Blagnac France
longitude: 1.387347
latitude: 43.630555
Domoticz url: http://127.0.0.1:8080
domoticzVersion: 2020.2
How to get the value of Domoticz url?

Re: HOWTO get the value of the Domoticz URL?  [Solved]

Posted: Friday 08 May 2020 12:52
by waaren
dlube wrote: Friday 08 May 2020 12:05 How to get the value of Domoticz url?
Thx for reporting !
Is indeed a bug and will be solved in next beta. Please use

Code: Select all

print('Domoticz url '..domoticz.settings['Domoticz url'])
until fixed.

Re: HOWTO get the value of the Domoticz URL?

Posted: Friday 08 May 2020 14:42
by dlube
Tank you

Re: HOWTO get the value of the Domoticz URL?

Posted: Friday 08 May 2020 14:56
by waaren
dlube wrote: Friday 08 May 2020 14:42Thank you
Fixed in V 2020.2 build 12018 (dzVents 3.0.5)