Getting setting info to script

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

Moderator: leecollings

Post Reply
User avatar
madpatrick
Posts: 662
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Getting setting info to script

Post by madpatrick »

Hi,

I like to read out the LAT and LAT from the settings menu in to a Dzvents script
Is this possible and how can i do this ?

Code: Select all

local lat = tostring(domoticz.settings.latitude)
local lon = tostring(domoticz.settings.longitude)
SOemthing like this, but that doesn't work
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
User avatar
jvdz
Posts: 2269
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Getting setting info to script

Post by jvdz »

According the docs in the Wiki: domoticz.settings.location.latitude
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
madpatrick
Posts: 662
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Getting setting info to script

Post by madpatrick »

Thanks. I must have overlooked that one
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest