Page 1 of 1

temphumbaro prediction wrong

Posted: Wednesday 22 June 2022 11:25
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?

Re: temphumbaro prediction wrong

Posted: Wednesday 22 June 2022 14:37
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.... :)

Re: temphumbaro prediction wrong

Posted: Wednesday 22 June 2022 15:56
by willemd
Thanks, so i will just ignore that value then.
Good to know the code is published and available for reading anyway.

Re: temphumbaro prediction wrong

Posted: Wednesday 22 June 2022 17:09
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 :-)