Page 1 of 1
Wind direction calibration
Posted: Thursday 03 January 2019 10:45
by NeoRanga84
Is there any way to invert the wind direction. N to S etc.
Re: Wind direction calibration
Posted: Tuesday 29 January 2019 19:25
by erem
You could update the direction using dsVents.
here is an example i use for update of windgust info from a source that does not provide that info
return {
on = {
devices = {
'Buitenstation Wind KNMI' -- KNMI data, no wind gust info
}
},
data = {
windGust = { history = true, maxItems = 10, maxMinutes = 100 } -- declare list
},
execute = function(domoticz, device)
-- store current windspeed in data table for later retieval of Max windspeed
domoticz.data.windGust.add(device.speed)
-- update winddevice with current values, adding the gust info.
local windDevice = domoticz.devices("Buitenstation Wind KNMI")
windDevice.updateWind(windDevice.direction,
windDevice.directionString,
windDevice.speed,
domoticz.data.windGust.maxSince('01:40:00'),
windDevice.temperature,
windDevice.chill).silent()
-- domoticz.log('windGust Max is ' .. tostring(domoticz.data.windGust.maxSince('01:40:00') .. 'm/s'), domoticz.LOG_INFO)
domoticz.log('Device ' .. device.name .. ' was updated with wind gust information', domoticz.LOG_INFO)
end
}
you can adapt this to update the Direction and directionString info
regards,
Rob