• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

How to keep a history of values on Mirror

Scheduled Pinned Locked Moved General Discussion
machinelearninghistory
6 Posts 3 Posters 1.5k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    A Former User @odaymansour
    last edited by Jul 22, 2018, 1:04 PM

    @odaymansour
    Modify the modules to keep the log of whichever you want into files.

    Communication between modules are usually using notification. See the development guide.

    O 1 Reply Last reply Jul 24, 2018, 8:29 PM Reply Quote 0
    • O Offline
      odaymansour @Guest
      last edited by Jul 24, 2018, 8:29 PM

      @sean Thanks for your input, I appreciate you taking the time.
      However I was wondering if I could do that without explicitly modifying the code in the modules. I thought about that but I was hoping to be able to do something universal that could be applied to any module, not only ones that I can edit myself.

      ? 1 Reply Last reply Jul 24, 2018, 8:48 PM Reply Quote 0
      • ? Offline
        A Former User @odaymansour
        last edited by Jul 24, 2018, 8:48 PM

        @odaymansour
        I can say there isn’t such a magic wand.

        1 Reply Last reply Reply Quote 1
        • V Offline
          Veldrovive Module Developer
          last edited by Jul 24, 2018, 11:02 PM

          The only way I could see not having to modify other modules would be to only use modules that already emit notifications when events happen. Then all you would need to do is create a simple module that receives, saves, and recalls those notifications and looks for changes. You could use something like json-store to make the whole process even easier. If you wanted to get more information, you could do a very simple modification to modules to just spit out more notifications with more data.

          1 Reply Last reply Reply Quote 2
          • O Offline
            odaymansour
            last edited by Jul 26, 2018, 7:10 PM

            Hm, I was hoping there would be a smarter way.

            Thanks for your ideas everyone, I guess I’m going to write some code that gets the state of the mirror and parses it for the relevant information. I will need to handle the various modules I’m interested in and potentially make it so that it’s easy to onboard new modules into it. It could either be an actual module on the mirror (working on writing my own modules now) or a totally separate process that fetches the mirror and parses that.

            Thank you everyone, I’ll work on it for a while and come back here if I ever get anything done :)

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              6/6
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy