Min Temp wrong in PWS dashboard

Hi all
For some reason my weather site has been working great until I noticed a small error about 3 days ago.
The min temp for the year showing in the small temp block was -2.8c on 18th Jan, then suddenly it has changed to -17.8 on july 6th, Not to sure what has happened.
WD is showing the correct temp in the yearly figures PWS not, any idea how to change it to the correct again.
see screenshots


Screenshot 2023-07-08 141047

The -17.8 Celsius results form an “partly empty” upload from your ecowitt station. Probably after installing the latest firmware.
Your website uses Ecowitt custom upload, not WeatherDisplay.
Ecowitt custom upload uses all values in US units: F → temp
-17.8 °C equals to 0°C

You can always change the history by running
your-weather-site/PWS_hist_update.php?pw=12345
Use your easyweather password for the 12345

Succes,
Wim

Fantastic Wim, I knew it was somewhere but couldn’t remember

Thanks.

:nauseated_face:

Sorry @ ALL

These zero / missing values should not have been a problem for a long time.

Line 95 in . . /pwsWD/ecowitt/index.php now reads

   elseif ($filter_value == false)

but should be with 3 =

   elseif ($filter_value === false)

Then the zero value is considered an empty upload and that single upload is skipped.

For one reason or another (stupidity) I used “equal” and not “identical” for testing and forgot to correct it.

== Operator:
This operator is used to check the given values are equal or not.
If yes, it returns true, otherwise it returns false.
=== Operator: This operator is used to check the given values and its data type are equal or not. If yes, then it returns true, otherwise it returns false.

I will update the script and put it in the updates next week.


@ ALL users of ecowitt custom upload.
If you want to check another multiple fields , f.i. outside temp and pressure change line 4 see example on line 7,

$always_exists = array(‘tempf’,‘baromabsin’)

The upload is rejected
if either ‘tempf’ or ‘baromabsin’ is missing from the custom upload
or if either ‘tempf’ or ‘baromabsin’ contents is exactly zero.
If the value is 0.1 or -0.1 the values are used.

Wim

Hi Wm
its only a typo so we can all live with i until he next update, have a good weekend and enjoy.

Steve

Hi Wim
Have amended the line and all working fine.
Cant wait for the new PWS dashboard to b released.

Thanks Steve

2 posts were split to a new topic: Min temp worng in upload file