Page 1 of 1

domoticz property

Posted: Wednesday 06 February 2019 10:27
by pvklink
Is it possible to get the domoticz setting: settings/location/name into a dzvents variable?

I like to use this description for my events. I manage more than one domoticz enviroments that uses the same scripts with notifications.
I cant see which notification comes from which domitcz server. So my solution is the use the settings/location/name

Re: domoticz property

Posted: Wednesday 06 February 2019 10:40
by emme
why don't set up a user variable with the system/environment name and add it to each notification message?

Re: domoticz property

Posted: Wednesday 06 February 2019 18:19
by waaren
pvklink wrote: Wednesday 06 February 2019 10:27 Is it possible to get the domoticz setting: settings/location/name into a dzvents variable?

I like to use this description for my events. I manage more than one domoticz enviroments that uses the same scripts with notifications.
I cant see which notification comes from which domitcz server. So my solution is the use the settings/location/name
Is possible but not with a simple command. Much easier to add a var to global_data.lua so you can access it from every dzVents script.

Re: domoticz property

Posted: Wednesday 06 February 2019 19:52
by pvklink
ok, thanks all!

Re: domoticz property

Posted: Thursday 07 February 2019 13:30
by waaren
pvklink wrote: Wednesday 06 February 2019 10:27 Is it possible to get the domoticz setting: settings/location/name into a dzVents variable?

I like to use this description for my events. I manage more than one domoticz environment that uses the same scripts with notifications.
I cant see which notification comes from which domoticz server. So my solution is the use the settings/location/name
In V4.10420 (dzVents 2.4.13) I introduced the possibility to use this setting directly in dzVents. Use domoticz.settings.location

Re: domoticz property  [Solved]

Posted: Thursday 07 February 2019 13:44
by papoo
waaren wrote: Thursday 07 February 2019 13:30
In V4.10420 (dzVents 2.4.13) I introduced the possibility to use this setting directly in dzVents. Use domoticz.settings.location
thanks

there is a way to add latitude and longitude? number of weather scripts use this information

Re: domoticz property

Posted: Thursday 07 February 2019 18:39
by waaren
papoo wrote: Thursday 07 February 2019 13:44
waaren wrote: Thursday 07 February 2019 13:30
In V4.10420 (dzVents 2.4.13) I introduced the possibility to use this setting directly in dzVents. Use domoticz.settings.location
thanks

there is a way to add latitude and longitude? number of weather scripts use this information
Yes, I have a PR in preparation for this. Probably in a beta later this week.

Re: domoticz property

Posted: Thursday 07 February 2019 18:56
by papoo
Cool
You are the boss

Re: domoticz property

Posted: Friday 08 February 2019 19:02
by pvklink
:D works like a charm

Re: domoticz property

Posted: Tuesday 19 February 2019 7:36
by waaren
pvklink wrote: Friday 08 February 2019 19:02 :D works like a charm
Breaking change in latest Beta (dzVents >= 2.4.14)
location name is now under domoticz.settings.location.name

Re: domoticz property

Posted: Tuesday 19 February 2019 16:54
by waaren
papoo wrote: Thursday 07 February 2019 13:44 there is a way to add latitude and longitude? number of weather scripts use this information
Available in dzVents >= 2.4.14 (domoticz >= V4.10444)
using domoticz.settings.location.latitude and domoticz.settings.location.longitude

Re: domoticz property

Posted: Tuesday 19 February 2019 17:21
by papoo
Great
Thanks