Giter VIP home page Giter VIP logo

Comments (3)

golles avatar golles commented on June 11, 2024

Hi @Mrten I'm not quite sure what you mean that is wrong with the times in the forecast. My assumption is that you would expect to see dates with a time of midnight, the start of the day.

Maybe you haven't noticed that the times are in UTC, the last part +00:00 from 2023-09-22T22:00:00+00:00 is the timezone. Home Assistant expects this to be like this, see the docs.

Weather cards, at least the built-in ones, should be able to deal with this, as long as you have the time zone configured correctly in the general settings of Home Assistant.

If this isn't what you mean, then let me know.

I can imagine you want to use these timestamps in perhaps a template or so. In that case, the built-in helpers should be able to deal with this as well. But the list is also in a guaranteed order, the first item is today, the second item is tomorrow, etc.

(oh and is it possible that the links and 'my systeminfo buttons' in the Issue:Bug Report form open in a new window?)

Sadly Github doesn't support this

from ha-knmi.

Mrten avatar Mrten commented on June 11, 2024

OMG UTC that's it, apologies.
I'm using the forecast (or rather, i used to use the forecast attribute) for today as [0] in a template sensor for an ESPhome display so it didn't really matter then.

(I'm really happy that the integration does provide the data for today, by the way)
Apologies again!

from ha-knmi.

golles avatar golles commented on June 11, 2024

No worries!

from ha-knmi.

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.