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
51 stars 8 forks source link

Distinguish Between "Rain Over Last 24 Hours" and "Rain Since Midnight" #18

Closed leoherzog closed 1 year ago

leoherzog commented 1 year ago

Update every sender and receiver to distinguish between these two values

aolfish commented 1 year ago

CWOP has input values showing : (rain 1hr), (rain 24hr) & (rain mn). My weather reports only showed values under the (rain 1hr) column.

leoherzog commented 1 year ago

Added support to cwop.rest to distinguish the two.

https://github.com/leoherzog/cwop.rest/commit/06f74498af4cc5819ac5c95ee537845c494d21a8

https://web.archive.org/web/20230716040809/http://www.wxqa.com/faq.html item number 7

leoherzog commented 1 year ago

Done!

aolfish commented 1 year ago

Finally got a smidge of rain today. Only 0.06 in. My CWOP weather reports on findu.com only showing rain in 1hr column. Nothing (0.00) in the 24hr and MN columns. Using the V2.5.0

leoherzog commented 1 year ago

@aolfish What is your data source?

aolfish commented 1 year ago

Sorry ... Acurite

leoherzog commented 1 year ago

Sure. If you uncomment the console.log(JSON.stringify(acuriteConditions)); line in the refreshFromMyAcurite_() function, you'll start to see what data I get from them in the ☰▶ Execution Log on the left. There's a "Rainfall" one that I can grab for the precipitation rate, but MyAcurite doesn't give me any stats on hourly rainfall or totals over 24 hours/since midnight. Unless there's another "get historical data" API endpoint that I don't know of, I think we're out of luck. It's tough to develop for this API specifically since it's an undocumented, internal API that could change or go away at any time. Official, Acurite offers no API for MyAcurite.