From 950d6f2a39d6d541fdbe22b5074b4e36efe80d04 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Thu, 19 Mar 2020 16:17:54 -0700 Subject: [PATCH] No record augmentation for software-generated records. It was already done when they were generated. --- bin/weewx/engine.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/weewx/engine.py b/bin/weewx/engine.py index 76d5fe86..73fbb590 100644 --- a/bin/weewx/engine.py +++ b/bin/weewx/engine.py @@ -598,10 +598,13 @@ class StdArchive(StdService): """Called when a new archive record has arrived. Put it in the archive database.""" - # If requested, extract any extra information we can out of the - # accumulator and put it in the record. - if self.record_augmentation and self.old_accumulator \ - and event.record['dateTime'] == self.old_accumulator.timespan.stop: + # If requested, extract any extra information we can out of the accumulator and put it in + # the record. Not necessary in the case of software record generation because it has + # already been done. + if self.record_augmentation \ + and self.old_accumulator \ + and event.record['dateTime'] == self.old_accumulator.timespan.stop \ + and event.origin != 'software': self.old_accumulator.augmentRecord(event.record) dbmanager = self.engine.db_binder.get_manager(self.data_binding)