temphumbaro prediction wrong

Moderator: leecollings

Post Reply
willemd
Posts: 736
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

temphumbaro prediction wrong

Post by willemd »

The native buienradar hardware installs a TempHumBaro device. Looking at the dashboard this also shows a prediction, which seems to be totally inaccurate.

Today is a bright summer day with good predictions. The temphumbaro shows 18.5 degrees celclius, 63% humidity and a very stable 1014 hPa pressure (dropped 2 hPa over the last 24 hours). Yet, the icon also shows a prediction "cloudy". How is this determined ? Is it interfaced from buienradar API (I doubt it) or is it determined internally by the domoticz system? Can it be configured/corrected in some way?
User avatar
waltervl
Posts: 6683
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: temphumbaro prediction wrong

Post by waltervl »

Seems to be only based on pressure. from https://github.com/domoticz/domoticz/bl ... nradar.cpp
line 404

Code: Select all

if (!root["airpressure"].empty())
	{
		barometric = root["airpressure"].asFloat();
		if (barometric < 1000)
		{
			barometric_forecast = wsbaroforecast_rain;
			if (temp != -999.9F)
			{
				if (temp <= 0)
					barometric_forecast = wsbaroforecast_snow;
			}
		}
		else if (barometric < 1020)
			barometric_forecast = wsbaroforecast_cloudy;
		else if (barometric < 1030)
			barometric_forecast = wsbaroforecast_some_clouds;
		else
			barometric_forecast = wsbaroforecast_sunny;
	}
No possibility to change, only by changing the source code.... :)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
willemd
Posts: 736
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: temphumbaro prediction wrong

Post by willemd »

Thanks, so i will just ignore that value then.
Good to know the code is published and available for reading anyway.
User avatar
waltervl
Posts: 6683
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: temphumbaro prediction wrong

Post by waltervl »

willemd wrote: Wednesday 22 June 2022 15:56 Thanks, so i will just ignore that value then.
Good to know the code is published and available for reading anyway.
It is even better, you are free to contribute and enhance the code for all :-)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest