Giter Site home page Giter Site logo

Comments (6)

IATkachenko avatar IATkachenko commented on June 3, 2024

@m-larin, hello.

It is not duplicate.
Yandex is providing forecast data for next two times of day: if you check weather in the morning it will be "day" and "evening".
and the integration translates it to timestamps (with datetime), but UI card is not show full datetime.

So, on the screenshot you may see forecasts for today "day" and "evening" and the integration can not affect to a way that UI show data.

In states (developer tools of Home Assistant) it looks like:

forecast: 
- datetime: '2022-12-14T14:56:27.543932'
  wind_bearing: 270
  condition: snowy
  precipitation_probability: 90
  temperature: -4
  templow: -4
  pressure: 739.56
  wind_speed: 5.7
  precipitation: 0.8
- datetime: '2022-12-14T20:56:27.543932'
  wind_bearing: 270
  condition: snowy
  precipitation_probability: 40
  temperature: -4
  templow: -5
  pressure: 744.81
  wind_speed: 4.8
  precipitation: 0.4

The only way to have timestamps -- show more forecast data, but Yandex provides just two intervals.

from ha-yandexweather.

m-larin avatar m-larin commented on June 3, 2024

Then, as a suggestion, it can output time from forecast data, with the possibility of disabling the output of this information through settings.

from ha-yandexweather.

IATkachenko avatar IATkachenko commented on June 3, 2024

The integration could not affect to UI.
We have full forecast timestamp in forecast data (datetime field, see above / dev tools), but UI show only a date.

I may add any field to attributes, but could not affect to data representation.

If you need "disable forecast" option in the integration settings -- I may add it, but I don't think that it will be useful.

from ha-yandexweather.

m-larin avatar m-larin commented on June 3, 2024

I see, thank you.

from ha-yandexweather.

m-larin avatar m-larin commented on June 3, 2024

I have an idea how to get around this. Replace the date output with text. The text should be as follows: if it is morning, then the nearest forecast is displayed with the inscription "Day", the next one is "Evening". If it's day, then the forecast is "Evening" and "Night". If it's evening, then the forecast is "Night" and "Tomorrow morning". If it's night, then in the forecast "Tomorrow morning" and "Tomorrow afternoon". Take the night period from 0 to 6 hours, morning from 6 to 12, etc.

from ha-yandexweather.

IATkachenko avatar IATkachenko commented on June 3, 2024

According to the documentation it should be "UTC Date time in RFC 3339 format.", not just string.
Just because UI will parse it.

from ha-yandexweather.

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.