OK, as far as I can tell cmon 0.16 is doing what it should and it should 
work fine with a RPi/Stretch. Clearly though something is not working 
correctly. Cmon is mildly complex with not a lot of debug output so in the 
absence of Matthew's input could you try making a change to the cmon code. 
First up make a copy of cmon.py just in case:

$ sudo usr/share/weewx/user/cmon.py usr/share/weewx/user/cmon_orig.py

Then edit usr/share/weewx/user/cmon.py and around line 711 change:

    def save_data(self, record):
        """save data to database"""
        self.dbm.addRecord(record)

to:

    def save_data(self, record):
        """save data to database"""
        loginf("cmon archive record=%s" % (record,))
        self.dbm.addRecord(record)

Save cmon.py and restart WeeWX. Cmon will now log the archive record it is 
about to save. Next time cmon causes a crash post the log and we should be 
able to marry up the value in the stack trace with a field in the cmon 
archive record.

Gary

On Tuesday, 7 May 2019 16:50:13 UTC+10, Redanman wrote:
>
> My system configuration is :
>
> Weewx version 3.9.1 running on a Raspberry Pi Zero
> Aercus Weathersleuth weather station with Weewx using Interceptor driver 
> over local network
> PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
> NAME="Raspbian GNU/Linux"
> VERSION_ID="9"
> VERSION="9 (stretch)"
> ID=raspbian
> ID_LIKE=debian
> Kernel = 4.14.62+ #1134 Tue Aug 14 16:58:07 BST 2018 armv6l GNU/Linux
> cmon version = 0.16
>
> Hope that helps.
> Mike
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" 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-user/878be265-1d20-4959-b499-c590b769ed52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to