GithubHelp home page GithubHelp logo

Comments (7)

swampylee avatar swampylee commented on June 3, 2024

Yep - even trying to downgrade back to previous version (and clearing cache) doesn't seem to fix it.

from clock-weather-card.

pkissling avatar pkissling commented on June 3, 2024

hi there, what is your weather entity set to? daily or hourly?
image

from clock-weather-card.

zendiik avatar zendiik commented on June 3, 2024

I have hourly
image

from clock-weather-card.

pkissling avatar pkissling commented on June 3, 2024

the error message is "weather entity does not support daily forecasts". can you set the entity to to daily then?

from clock-weather-card.

swampylee avatar swampylee commented on June 3, 2024

If I change to daily in OpenWeatherMap that integration fails. Setting it back to hourly and it's fine (card still doesn't load though)

from clock-weather-card.

pkissling avatar pkissling commented on June 3, 2024

i did some analysis to understand why this issue occurs:

until 2.1.6 clock-weather-card would always try to read first the forecast attribute available in the weather entity (despite the weather provider supporting the new weather.get_forecast and only if forecast was not available, it would use weather.get_forecast to obtain forecasts
image
in order to fix #218 i implemented a change (released with 2.1.6) so that clock-weather-card would rely on supported_features in the weather entity to either subscribe to forecast updates via weather.get_forecast or read it from forecast attribute in the weather entity.

this means that openweathermap is also affected by this change, as it provides the forecast attribute as part of the weather entity, but additionally supports the weather.get_forecast subscription. so since 2.1.6 clock-weather-card will try to subscribe to weather.get_forecast instead of reading it from the forecast attribute.

and here is the catch:
in the free tier of openweathermap you are only able to subscribe to hourly forecasts. but with the default setup of clock-weather-card, you want to display the weather daily. so clock-weather-card will try to subscribe to daily updates, which is not supported by openweathermap. this is why you see the error

to fix the issue i will add some logic to make clock-weather-card fall back to hourly forecast subscription in case daily is not supported. i think this should fix your issue.

from clock-weather-card.

zendiik avatar zendiik commented on June 3, 2024

Thank you

from clock-weather-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.