I'd like to receive some help with the following. I have made a Lua script for making a virtual device that tells me how much rain has fallen in my neighbourhood [1]. I believe this virtual device is functioning OK, please see file 2.png.
I made a Blocky script (please see 1.png) that tries to see how much rain has fallen and to see if the time is 21:17 PM. The first 'line' of the Blocky script gives errors. When I replace the equation with something else, Blocky gives no errors.
The error I see in syslog is:
Code: Select all
May 30 21:17:00 elmo domoticz: EventSystem: Lua script error (Blockly), Name: sproeiinstallatie_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare nil with number
[1] https://www.domoticz.com/wiki/Virtual_weather_devices
Domoticz v3.9546.