Making the first steps and finding your way is always the hardest of times
Search found 4 matches
- Thursday 09 May 2019 13:43
- Forum: LUA
- Topic: Error in LUA timer-event: "attempt to index global 'time"
- Replies: 5
- Views: 1281
Re: Error in LUA timer-event: "attempt to index global 'time"
Found it. That really helps, thnx.
Making the first steps and finding your way is always the hardest of times
)
Making the first steps and finding your way is always the hardest of times
- Thursday 09 May 2019 10:50
- Forum: LUA
- Topic: Error in LUA timer-event: "attempt to index global 'time"
- Replies: 5
- Views: 1281
Re: Error in LUA timer-event: "attempt to index global 'time"
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 ...
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 ...
- Thursday 09 May 2019 9:23
- Forum: LUA
- Topic: Error in LUA timer-event: "attempt to index global 'time"
- Replies: 5
- Views: 1281
Re: Error in LUA timer-event: "attempt to index global 'time"
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 ...
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 ...
- Thursday 09 May 2019 8:25
- Forum: LUA
- Topic: Error in LUA timer-event: "attempt to index global 'time"
- Replies: 5
- Views: 1281
Error in LUA timer-event: "attempt to index global 'time"
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 ...
2019-05-09 08:19:00.444 Error: EventSystem: in Weather ...