Pirate-Weather / pirateweather

Code and documentation for the Pirate Weather API
Apache License 2.0
643 stars 29 forks source link

Precipitation Today #211

Open jazzyisj opened 1 year ago

jazzyisj commented 1 year ago

Precipitation accumulation is available as forecast sensors for hourly/daily, but there is no real time entity provided for precipitation today. Because the forecast sensors do not have a state_class, they cannot be used for statistics.

Possible to add an entity for precipitation today with the appropriate state_class so it can be utilized by statistics?

Also, there IS an entity for precipitation intensity, but it has not been assigned a state_class.

alexander0042 commented 10 months ago

This should be pretty quick! Clarification question though- when you're asking about "precipitation today", do you mean the total precipitation that fell today? Or the remaining precipitation for today? Or something else?

jazzyisj commented 10 months ago

I am referring to the precipitation that has actually accumulated for the current day. I think precipitation in last 24 hours would probably be even more useful, but I believe precipitation accumulation is only given for the current day by most weather providers? I know my Weatherflow station resets the precipitation at midnight and Environment Canada only provides the total precipitation for the previous day. Looks like accuweather does provide last 24 hours though (as well as last hour, last 3 hours etc). I'm not sure where the data for pirateweather is coming from.

https://developer.accuweather.com/accuweather-current-conditions-api/apis/get/currentconditions/v1/%7BlocationKey%7D

Either way I think it would be a welcome addition to PirateWeather. Thanks for looking into it!

jhemak commented 4 months ago

+1 for this