This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Where to save persistent values ?
#1
Hello, sorry if this has already been answered, but I cannot find a solution.
I'm logging KNX telegrams in my InfluxDB, expanding the example script I found in the knowledge base.
I added a queue where I temporarily save telegrams if the InfluxDB is temporarily unavailable, so I will not miss any recording. 
When the InfluxDB comes back available again I flush the queue saving all the values in the database,
I want the script to be fail safe, I don't want to miss recordings if a power failure occurs to the logic-machine/wiser.
I thought of using storage.get and storage.put to make the queue persistent, but I read that the storage is written every 30 minutes, so, in case of a power failure, I will loose recording.
Have you got any suggestions to not miss any values ? 
Thanks a lot for your help
Antonio
Reply


Messages In This Thread
Where to save persistent values ? - by antlomb - Yesterday, 10:11

Forum Jump: