pkissling / clock-weather-card

A Home Assistant Card indicating today's date/time, along with an iOS inspired weather forecast for the next days with animated icons
Other
453 stars 78 forks source link

min/max temperature for today #42

Closed cptcotton closed 2 years ago

cptcotton commented 2 years ago

The (very beautiful) widget doesn't show the min/max-temperature for the current day. The weather-provider delivers this data as shown in the standard ha-widget.

usernein commented 2 years ago

Which weather provider are you using and with which mode (hourly, daily, onecall_hourly, etc)?

pkissling commented 2 years ago

thanks for reporting the issue. additionally to what @usernein asked i would also ask you to upload a screenshot of the card. for me it's not entirely clear what you mean with "doesn't show the min/max-temperature for the current day."

cptcotton commented 2 years ago

69CDDD32-321C-48B0-BC7B-B14B3A697055 As you can see in the attached Screenshot, the default HA Widget shows the min/max-temperature for today but your very beautifull widget only shows it for the upcoming days. I am using the Home (met.no) intigration but do not know where the mode is defined. I am very new to HA.

pkissling commented 2 years ago

hi @cptcotton, thanks for the explanation. i think it's rather a data / weather provider problem. the problem you have is already described in the FAQ section: https://github.com/pkissling/clock-weather-card#why-dont-i-see-the-current-day-in-my-weather-forecast met.no does not deliver temperature data for the current day (other than the current temp)

temperature: 15.7 # only current temp, nothing else
temperature_unit: °C
humidity: 81
pressure: 1015.2
pressure_unit: hPa
wind_bearing: 228.6
wind_speed: 13.3
wind_speed_unit: km/h
visibility_unit: km
precipitation_unit: mm
forecast: 
- condition: rainy
  datetime: '2022-10-22T10:00:00+00:00' # tomorrow
  wind_bearing: 241.6
  temperature: 15.7
  templow: 10.2
  wind_speed: 13.7
  precipitation: 16.3

with this set of data, the card won't be able to calculate a bar for the current day (as there is no min/max temp). so if you take a look at the screenshot of yours again, you will realize that the first bar shows tomorrows weather.

what confused me is the second card you posted on the screenshot. apparently the second card has hourly forecasts, which makes me believe that the card uses a different weather data supplier (entity). can you confirm?

cptcotton commented 2 years ago

@pkissling, thank you for your friendly help. The yaml to the screenshot is

- type: custom:clock-weather-card
        entity: weather.forecast_h1
        locale: de
      - type: vertical-stack
        cards:
          - show_current: true
            show_forecast: true
            type: weather-forecast
            entity: weather.forecast_h1_hourly
            name: Vorhersage Sillenstede
            theme: Animated Weather Card
          - show_current: false
            show_forecast: true
            type: weather-forecast
            entity: weather.forecast_h1
            theme: Animated Weather Card 

Would it be possible to combine the data of weather.forecast_h14a and weather.forecast_h14a_hourly ?

pkissling commented 2 years ago

hey @cptcotton, your config pretty much explains why the data shown in the two cards is different. considering the faq i'd suggest you to switch to a different weather provider. i personally use OpenWeatherMap, which allows the card to render the forecast for the current day (as a bar).

i understand your request of making the card able to process data from multiple weather providers at the same time.

i only released this card roughly one week ago and my main priority at this point is to make sure that the card works without any issues and to smoothen rough edges here and there in order to make the card usable for a broad user base.

since the request of yours would make the card quiet complicated in terms of how data is being aggregated and also on how the card must be configured, i would keep this in enhancement in mind as a future improvement, but not implement it right away.

hope this is okay for you?

cptcotton commented 2 years ago

Thats ok, thanks for the support. I'll take a look at openwethermap.