jaydeethree / Home-Assistant-weatherdotcom

Home Assistant custom component/integration for Weather.com
GNU General Public License v3.0
46 stars 7 forks source link

UV index and a few other conditons in the forecast #27

Closed wigster closed 8 months ago

wigster commented 8 months ago

Hi,

In 1.1.5 you filled out all the possible fields in the current conditions weather entity.

Would it be possible for you to do the same for the forecasts? The TWC forecast API seems to provide data for all the possible HA forecast attributes. The missing ones are:

The only comment/complication is that the pressure in the forecast is only at sea level, while in the current conditions you pick up the pressureAltimeter key which is actually observed at ground level. If you wanted to get technical, this is a simple conversion for any realistic situation, which is given by the formula for P from here

The problem then would be getting the elevation of the location, but in principle it is possible from somewhere like open-elevation

Anyway, thanks for creating this. The richness of the data has really made many things possible that until now I've been kludging from multiple sources.

jaydeethree commented 8 months ago

Thanks for the detailed issue report! I think I'll have time to add all of this next week.

jaydeethree commented 8 months ago

This was completed in https://github.com/jaydeethree/Home-Assistant-weatherdotcom/commit/6e40e184f050f23075b348f60af8f2c04ac0c60b and is available in version 1.1.6.

Some notes: