otherdevices_temperature issue
Posted: Tuesday 13 March 2018 22:28
After about 2 months I decided to update to the latest beta (v3.9034). Everything works fine except my dzVents weather scripts that contain "otherdevices_temperature" shows the following error:
2018-03-13 22:15:00.548 dzVents: Info: ------ Start external script: weather_wu.lua:, trigger: function
2018-03-13 22:15:00.548 dzVents: Error (2.4.1): An error occured when calling event handler weather_wu
2018-03-13 22:15:00.548 dzVents: Error (2.4.1): /opt/domoticz/scripts/dzVents/scripts/weather_wu.lua:63: attempt to index global 'otherdevices_temperature' (a nil value)
2018-03-13 22:15:00.549 dzVents: Info: ------ Finished weather_wu.lua
Code snippet:
This used to work fine and besides upgrading I did not change the script. otherdevices_humidity and otherdevices_dewpoint don't have this issue.
Anybody else seeing this otherdevices_temperature issue?
2018-03-13 22:15:00.548 dzVents: Info: ------ Start external script: weather_wu.lua:, trigger: function
2018-03-13 22:15:00.548 dzVents: Error (2.4.1): An error occured when calling event handler weather_wu
2018-03-13 22:15:00.548 dzVents: Error (2.4.1): /opt/domoticz/scripts/dzVents/scripts/weather_wu.lua:63: attempt to index global 'otherdevices_temperature' (a nil value)
2018-03-13 22:15:00.549 dzVents: Info: ------ Finished weather_wu.lua
Code snippet:
Code: Select all
execute = function(domoticz)
local function CelciusToFarenheit(C)
return (C * (9/5)) + 32
end
Outside_Temp_Hum = 'Temperatuur Tuin'
WU_URL = WU_URL .. "&tempf=" .. string.format("%3.1f", CelciusToFarenheit(otherdevices_temperature[Outside_Temp_Hum]))
WU_URL = WU_URL .. "&humidity=" .. otherdevices_humidity[Outside_Temp_Hum]
WU_URL = WU_URL .. "&dewptf=" .. string.format("%3.1f", CelciusToFarenheit(otherdevices_dewpoint[Outside_Temp_Hum]))
Anybody else seeing this otherdevices_temperature issue?