Read the statement by Michael Teeuw here.
How to keep a history of values on Mirror
-
@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. -
@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. -
@odaymansour
I can say there isn’t such a magic wand. -
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.
-
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 :)