decompil3d / lovelace-hourly-weather

Hourly weather card for Home Assistant. Visualize upcoming weather conditions as a colored horizontal bar.
MIT License
297 stars 31 forks source link

UV Index #436

Open nikordaris opened 1 year ago

nikordaris commented 1 year ago

Is your feature request related to a problem? Please describe. As a parent, I'm constantly checking the UV Index in the summer to assess the sunscreen situation for protecting the kids.

Describe the solution you'd like UV Index should be treated just like Temperature and Rain/Snow and shown alongside these to help people prepare for the outside environment. So an icon indicating low, moderate, high and extreme UV conditions. And visualizing that hourly to know when the UV will be high so you can plan your day when the UV is low.

decompil3d commented 1 year ago

I love this idea. Do you have an integration that provides uv forecasts? Openweathermap does not offer that data. If there are weather integrations that offer the data in their forecasts, I'd be happy to add option to display it.

nikordaris commented 1 year ago

I'm not sure if there is a public API but AccuWeather shows UV Index by hour

nikordaris commented 1 year ago

DailyForecasts.AirAndPollen seems to be the thing that holds UV values. https://developer.accuweather.com/accuweather-forecast-api/apis/get/forecasts/v1/daily/1day/%7BlocationKey%7D

I'm not sure what is free vs premium access through the API though.

jazzyisj commented 1 year ago

https://www.home-assistant.io/integrations/openuv/ - I think it only offers forecast for the day though.

decompil3d commented 1 year ago

Unfortunately, OpenUV doesn't provide forecast data. Just current data. I had opened a HA architecture discussion for giving a more generic forecast entity so we could have things like uv and aqi forecasts. Feel free to comment here: https://github.com/home-assistant/architecture/discussions/879