leoherzog / WundergroundStationForwarder

🌦️ Google Apps Script code to send your weather station data to Wunderground, Windy, PWSWeather, Weathercloud, OpenWeatherMap, WindGuru, Met (UK) WOW, and/or CWOP
53 stars 8 forks source link

Difference between rain: Windy from WU #32

Open jeffomoreira opened 1 week ago

jeffomoreira commented 1 week ago

Hey Leo. (re-sending the message)

I know there may be a few discrepancies on sending and converting rain data from WU to Windy.

Today we had a considerable amount of rain here. Wu reports (24h): precip1

While Windy is showing: Windy1

Roughly half of the numbers from WU (the smaller letters, 24h, since Windy reports rain differently I guess).

I am just reporting in hope of, maybe, helping to calibrate/adjust the data reported/calculated and sent to Windy.

Thanks. Jeffo.

leoherzog commented 1 week ago

Interesting.

Well, Wunderground may be receiving rainfall rate data as frequently as every 2.5 seconds with their RapidFire system. As I mentioned before, Apps Script can only ask Wunderground for new data as frequently as every minute (without getting into complicated multiple-trigger systems with locking, etc etc). The hack for calculating rain accumulations over the last hour for services that don't provide them (like Wunderground) is to take the history of current rates (as received every minute) over the last hour and total them.

Once you have a full hour of minutely rain rates as they were during those moments, you can add them up and get an approximate total over the hour. So, if your weather station is reporting to Wunderground every 2.5 seconds, and you get a sudden 30 second downburst that starts and stops, Wunderground will record that, but if Apps Script doesn't happen to pull for another 30 seconds and ask for the current rain rate at the right time, it will miss that.

I guess that's what happened here? If this is true, then the opposite could also happen; We could ask Wunderground for the current rate right during the middle of a really short burst, and we might assume that that lasted longer than it did.

Keep an eye on the discrepancy over the next few rainstorms and report back if you do or do not see the rate on Windy be reported as more than Wunderground. That will help confirm these suspicions. If this is indeed what's happening, over longer periods and multiple rain events, these discrepancies should theoretically average out.

jeffomoreira commented 1 week ago

Hey.

I got your point and it makes sense. I have a hard time with my abstraction logic capability these days, but I understand that the number in WU may be being "diluted" over time, on Windy.

Another thing I might have noticed is that the accumulated rain may have being reset in the middle of the day, on Windy. In that case Windy should only reset at 00h/Midnight...isn't it?. May be another think to check out? The pictures below bring some sense to it: near 10AM you see "24h acc: 8.1mm"and then after 1PM (13:38) "24h acc: 7.3mm". The accumulated values, over the day, should never reduce, only increase, right?

See the pictures: SameDay near 10AM

Same Day After 1PM

Hope that helps. Thanks.

leoherzog commented 6 days ago

As I look at your graphs, I see what I expect to see. I think that's how all other stations also behave?

Here's mine: https://www.windy.com/station/pws-f069ecca

jeffomoreira commented 6 days ago

Yes, they are looking good, rain is being displayed but it wasn't clear for me that the Wunderground 24h accumulated rain was, in the example, 15.4mm and the 24 acc in Windy was only 7. That was my concern.

Friday, 11th, 15.4mm WU: https://www.wunderground.com/dashboard/pws/ISOJOS39/graph/2024-10-11/2024-10-11/daily

Friday, 11th,7mm, Windy: https://www.windy.com/station/pws-f052cfed?-26.623,-49.197,8\

To me it is no big deal since what matters most is what is going from WU to MADIS/NOAA (which is correct), but I was curious about why Windy shows it differently, half of what WU sends.

Em qua., 16 de out. de 2024 às 11:16, Leo @.***> escreveu:

As I look at your graphs, I see what I expect to see. I think that's how all other stations also behave?

Here's mine: https://www.windy.com/station/pws-f069ecca

— Reply to this email directly, view it on GitHub https://github.com/leoherzog/WundergroundStationForwarder/issues/32#issuecomment-2416977249, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEPUKMCYETTM2MGI4K77MTZ3ZYKHAVCNFSM6AAAAABP535AN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJWHE3TOMRUHE . You are receiving this because you authored the thread.Message ID: @.***>