I have also tried blocky but no luck aswell
Code: Select all
commandArray = {}
if (tonumber(devicechanged['wu_temp']) > 10.5 ) then
commandArray[1]={['SendEmail']='Subject# #[email protected]'}
end
return commandArraythis is my log:
Code: Select all
2016-08-01 01:38:49.304 EventSystem: Script event triggered: C:\Program Files (x86)\Domoticz\scripts\lua\script_device_sensorWU.lua
2016-08-01 01:38:49.307 Error: EventSystem: in script3: [string "commandArray = {}..."]:3: attempt to compare number with nil
2016-08-01 01:38:49.082 (Weather Underground) Temp + Humidity + Baro (TEMP_HUM_BARO)
2016-08-01 01:38:49.475 Error: EventSystem: in script3: [string "commandArray = {}..."]:3: attempt to compare number with nil
2016-08-01 01:38:49.392 (Weather Underground) Wind (WIND)
2016-08-01 01:38:49.653 Error: EventSystem: in script3: [string "commandArray = {}..."]:3: attempt to compare number with nil
2016-08-01 01:38:49.558 (Weather Underground) UV (UV)
2016-08-01 01:38:49.819 Error: EventSystem: in script3: [string "commandArray = {}..."]:3: attempt to compare number with nil
2016-08-01 01:38:49.736 (Weather Underground) Rain (RAIN)
2016-08-01 01:38:49.902 (Weather Underground) General/Visibility (Unknown)