domoticz property [Solved]
Moderator: leecollings
-
pvklink
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
domoticz property
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
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
Jablotron connection, Ikea
- 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
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"
"We always done this way"
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: domoticz property
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.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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
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
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
Jablotron connection, Ikea
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: domoticz property
In V4.10420 (dzVents 2.4.13) I introduced the possibility to use this setting directly in dzVents. Use domoticz.settings.locationpvklink 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
- 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]
thankswaaren 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
there is a way to add latitude and longitude? number of weather scripts use this information
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: domoticz property
Yes, I have a PR in preparation for this. Probably in a beta later this week.papoo wrote: Thursday 07 February 2019 13:44thankswaaren 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
there is a way to add latitude and longitude? number of weather scripts use this information
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
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
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
Jablotron connection, Ikea
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: domoticz property
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: domoticz property
Available in dzVents >= 2.4.14 (domoticz >= V4.10444)papoo wrote: Thursday 07 February 2019 13:44 there is a way to add latitude and longitude? number of weather scripts use this information
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 1 guest