Page 1 of 1

Strange error in blocky

Posted: Sunday 03 May 2020 0:12
by tjabas
I get an error message in the log with this blocky:
sol.PNG
sol.PNG (29.84 KiB) Viewed 388 times
2020-05-03 00:06:08.915 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with nil
2020-05-03 00:06:08.915 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare nil with number
2020-05-03 00:06:10.177 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with nil
2020-05-03 00:06:10.177 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare nil with number


This is an hotwater heater that should start heating when the solar production is over 3000watts, and it should stop heating when the solar production is less than 2500watts

any sugestions?

Re: Strange error in blocky

Posted: Sunday 03 May 2020 6:53
by wouterlet
Are you sure the value of 'Production 12,5 kw' is a number?