domoticz property  [Solved]

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

Moderator: leecollings

Post Reply
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

domoticz property

Post 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
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: domoticz property

Post by emme »

why don't set up a user variable with the system/environment name and add it to each notification message?
The most dangerous phrase in any language is:
"We always done this way"
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz property

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: domoticz property

Post by pvklink »

ok, thanks all!
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz property

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
papoo
Posts: 126
Joined: Friday 22 January 2016 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10
Location: France
Contact:

Re: domoticz property  [Solved]

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz property

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
papoo
Posts: 126
Joined: Friday 22 January 2016 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10
Location: France
Contact:

Re: domoticz property

Post by papoo »

Cool
You are the boss
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: domoticz property

Post by pvklink »

:D works like a charm
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz property

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz property

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
papoo
Posts: 126
Joined: Friday 22 January 2016 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10
Location: France
Contact:

Re: domoticz property

Post by papoo »

Great
Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest