—hope this helps someone who is just starting out with Lua and Vera 8)
-
Lua array indexing starts with 1 by default
(I assumed it was 0) -
If you’re adding a function that is not tested, to save time tyring to figure out what went wrong, call it this way:
local status, error = pcall(function_to_test())
if status==false then
–send_email(“Error”, error … debug.traceback())
–or luup.log(error … debug.traceback())
end