Strange error in blocky
Posted: Sunday 03 May 2020 0:12
I get an error message in the log with this blocky:
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?
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?