calculated lux not working anymore

Moderator: leecollings

Post Reply
tiga
Posts: 159
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

calculated lux not working anymore

Post 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??
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: calculated lux not working anymore

Post 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:
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest