Yesterday, 10:11
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
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