Problem making a new script
Posted: Sunday 23 July 2017 18:12
I was trying to add a new script, and keep getting an error.
I even copied exactly an existing working script, get this error in the log
2017-07-23 09:05:00.434 Error: EventSystem: Lua script SprinklerTmr_Front did not return a commandArray
I only get the error for the new script, all my old scripts, which are formatted the same, don't give this error.
If I change to this format
Then it works fine.
But I don't know how I am supposed to script within this format?
EDIT: Version 2.1.0
Randy
I even copied exactly an existing working script, get this error in the log
2017-07-23 09:05:00.434 Error: EventSystem: Lua script SprinklerTmr_Front did not return a commandArray
I only get the error for the new script, all my old scripts, which are formatted the same, don't give this error.
If I change to this format
Code: Select all
commandArray = {}
print ("All based event fired");
return commandArrayBut I don't know how I am supposed to script within this format?
EDIT: Version 2.1.0
Randy