Wind direction calibration

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
NeoRanga84
Posts: 1
Joined: Thursday 03 January 2019 10:33
Target OS: Linux
Domoticz version: 2023.2
Location: Sweden
Contact:

Wind direction calibration

Post by NeoRanga84 »

Is there any way to invert the wind direction. N to S etc.
User avatar
erem
Posts: 230
Joined: Tuesday 27 March 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Amsterdam/netherlands
Contact:

Re: Wind direction calibration

Post 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
Regards,

Rob
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest