Page 1 of 1

calculated lux not working anymore

Posted: Wednesday 29 March 2017 20:32
by tiga
hello,

i beleive that switching to the summertime coused a problem with the calculation of my virtual lux sensor

Code: Select all

 2017-03-29 18:40:01.117 Error: EventSystem: in virtueel lux: [string "--[[ Virtual Lux sensor and other real-t..."]:150: bad argument #1 to 'gsub' (string expected, got nil)
2017-03-29 18:45:01.131 Error: EventSystem: in virtueel lux: [string "--[[ Virtual Lux sensor and other real-t..."]:150: bad argument #1 to 'gsub' (string expected, got nil)
2017-03-29 18:50:01.128 Error: EventSystem: in virtueel lux: [string "--[[ Virtual Lux sensor and other real-t..."]:150: bad argument #1 to 'gsub' (string expected, got nil)
2017-03-29 18:55:01.015 Error: EventSystem: in virtueel lux: [string "--[[ Virtual Lux sensor and other real-t..."]:150: bad argument #1 to 'gsub' (string expected, got nil)
2017-03-29 19:00:00.998 Error: EventSystem: in virtueel lux: [string "--[[ Virtual Lux sensor and other real-t..."]:150: bad argument #1 to 'gsub' (string expected, got nil)
2017-03-29 19:05:00.848 Error: EventSystem: in virtueel lux: [string "--[[ Virtual Lux sensor and other real-t..."]:150: bad argument #1 to 'gsub' (string expected, got nil) 
it was just working fine but now it is useless.can this be fixed??

Re: calculated lux not working anymore

Posted: Tuesday 04 April 2017 12:10
by emme
....for me it's a string related problem...

the string.gsub you are performing is null... which could be not a problem related to the summertime setting

could you post the code around line 150?

P.S.
does this event concern the internal Event System (not a physical file) and include the UserVariableChanged table? :roll: