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)Moderator: leecollings
Code: Select all
local lat = tostring(domoticz.settings.latitude)
local lon = tostring(domoticz.settings.longitude)Code: Select all
return {
on = {
devices = {
'MyDummy'
}
},
logging = {
level = domoticz.LOG_DEBUG,
marker = 'test_template',
},
execute = function(domoticz, device)
domoticz.log('Device ' .. device.name .. ' was changed', domoticz.LOG_INFO)
domoticz.log('latitude: ' .. domoticz.settings.location.longitude, domoticz.LOG_INFO)
end
}
Code: Select all
2025-08-23 08:17:36.520 dzVents: test_template: ------ Start internal script: Script #1: Device: "MyDummy (Dummy)", Index: 10640
2025-08-23 08:17:36.520 dzVents: test_template: Device MyDummy was changed
2025-08-23 08:17:36.521 dzVents: test_template: latitude: 5.1368
2025-08-23 08:17:36.521 dzVents: test_template: ------ Finished Script #1
Users browsing this forum: No registered users and 1 guest