I've modified an existing driver that originally only captured LOOP data
but I have added a 'genArchiveRecords()' method to it that fetches data
from a REST interface. This seems to work fine and it fetches the data.
However, since this modification it no longer fetches the LOOP data. The
driver sees the data and according to some logging it passes it to weewx
just fine, but for some reason weewx seems to be silently ignoring the
data, it is never added to the database with no indication why in the
logfile.
I've been investigating this for some days and I don't understand why it is
happening. I have found out that it is related to the genArchiveRecords()
method: If I have this method like this:
def genArchiveRecords(self, since_ts):
yield from ()
then weewx is ignoring all values returned by genLoopPackets().
However, if I comment out the genArchiveRecords() alltogether, then
suddenly the records returned from weewx by genLoopPackets() are being
inserted in the database as expected.
This does not make any sense to me. Anybody understands what is going on?
The code for this driver can be found
here: https://github.com/jjvdgeer/weatherflow-udp
Thanks,
Jan-Jaap
--
You received this message because you are subscribed to the Google Groups
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-development/8ffecb88-d482-4766-877f-ab9c322049f5n%40googlegroups.com.