Giter Site home page Giter Site logo

Comments (2)

briis avatar briis commented on August 24, 2024

Hi Simon

I noticed there that one is stored as ISO time/date and the other is epoch - not sure if there a reason for this

Honestly, this is by chance. I was working on one thing first where I used one format, and then the other format a few days later. When I found out, I didn't bother to change it.

The overall issue with these storage files, is that what we get from the station are just the raw data, so if I wanted to simulate the APP somehow, I needed a place to store some values between updates, at the same time, I did not really want to create a whole database system underneath, as Home Assistant would take care of the historic data. So the whole approach is not perfect, but it works somehow.
And when you first run the system, I need some initial values - and when it comes to math with dates, most systems are very sensitive, so just storing nothing, gave issues, thats why I used the 1970 date.

The lightning_strike_time topic has the name "Last Lightning Today". I think "Today" can be removed from this. The sensor table doesn't say this is reset every day at midnight.

I already changed the name in the latest release to Last Lightning Strike

from hass-weatherflow2mqtt.

simonranson avatar simonranson commented on August 24, 2024

Thanks for the explanation on the time formats.

I've installed the latest build and all looks good with Last Lightning Strike, so this one can be closed too.

Cheers
Simon

from hass-weatherflow2mqtt.

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.