Set globalData initial value from user variable?
Posted: Saturday 13 April 2019 22:40
Is it possible to do something like this in global_data.lua:
I tried this but it doesn't seem to work.
What's the best way to initialise globalData values from user variables?
I'd prefer not to have to put the values directly in global_data.lua as (a) they could be sensitive - like passwords and (b) it's easier to update and edit user variables through the GUI.
Thanks
Code: Select all
globalvariablename = { initial = domoticz.variables('user_variable_name').value }What's the best way to initialise globalData values from user variables?
I'd prefer not to have to put the values directly in global_data.lua as (a) they could be sensitive - like passwords and (b) it's easier to update and edit user variables through the GUI.
Thanks