OK, I found the solution, my devices are updated correctly. Thnx for getting me on track. The first line of the timer event must be: commandArray={} The last line of the code must be: return commandArray This is not self-evident for starters in Domoticz / Events coding in the absent of a starting ...
I modified the code according to your remarks (see new code below) but I keep getting: 2019-05-09 09:18:01.357 Error: EventSystem: in Weather: [string " local domo_ip = "192.168.178.5:8080..."]:15: attempt to get length of global 'commandArray' (a nil value) And btw: maybe there is an uodate to the ...
I have the code below in a timer event (name is Weather) which belongs to weatherstation (but is not in de linked thread). I reduced the code such that all comment and some unwanted code is taken out but I still get the following errors: 2019-05-09 08:19:00.444 Error: EventSystem: in Weather ...