weewx skipping report cycles

64 views
Skip to first unread message

Philipp

unread,
Jan 10, 2021, 1:08:39 PM1/10/21
to weewx-user
Hi everyone,

I have had my weewx instance running for 3-4 months without any problems. I'm using weewx-sdr to receive the data from my weather station and weewx then generates the reports.
I have kept my Raspberry Pi 4B with Debian up to date, which also means that I have updated to weewx 4.2 and 4.3 respectively.

I have attached my weewx.conf as well as the debug log from /var/log/messages with debug = 1. 
Here's my problem: weewx is supposed to generate a report every 5 minutes but it skips some of the reports - sometimes even more than just once. This creates gaps of up to 20 minutes between the reports.

When running rtl_433 (or `sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -f 868.3M -F json`) I do however get messages from my station in intervals of around 30 secs. Therefore I don't think that my weather station is the reason for the problem. It must be something with weewx not working the way it should.
I also checked if my system is overloaded but that's not the case. System load is around 0.5. And after all I haven't changed anything on the Pi.

Any clues as to what might stop the reports from being generated?

Thanks in advance!
Philipp

Kevin Davis

unread,
Jan 10, 2021, 1:21:09 PM1/10/21
to weewx...@googlegroups.com
Your log didn’t attach, so I don’t know if you’re having the same issue I was running in to last week, but on a Pi, the DEBUG messages end up in /var/log/syslog, not messages.  

On Jan 10, 2021, at 10:08 AM, Philipp <ph.k...@gmail.com> wrote:

Hi everyone,
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/842cd3c5-c811-4112-b532-3378563790d2n%40googlegroups.com.

Philipp

unread,
Jan 10, 2021, 2:11:20 PM1/10/21
to weewx-user
Sorry, forgot the attachments! Here's the syslog and the weewx.conf.

syslog.txt
weewx.conf

bell...@gmail.com

unread,
Jan 11, 2021, 9:24:11 AM1/11/21
to weewx-user

I’m no expert on the SDR driver (I don’t even use it) nor WeeWX expert, but it looks to me like there are gaps where no data is being received. I have filtered the log to show the packets being created by the SDR driver and the reports being run.  
Skipping a lot of detail, every time a packet is created; WeeWX checks if the archive interval has passed (in your case 5 minutes). If it has, the reports are run. So the fact that at times nothing is received by the SDR driver for greater than 5 minutes results in the reporting ‘gaps’ you see.

Here is the filtered log. If you go to the end, you will see some large gaps.
Jan 10 17:48:11 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': 0.2, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297288, 'usUnits': 17}

Jan 10 17:50:47 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': 0.1, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297444, 'usUnits': 17}

Jan 10 17:50:49 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 17:51:11 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': 0.2, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297468, 'usUnits': 17}

Jan 10 17:52:23 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': 0.0, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297540, 'usUnits': 17}

Jan 10 17:52:59 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.1, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297576, 'usUnits': 17}

Jan 10 17:54:23 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': 0.0, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297660, 'usUnits': 17}

Jan 10 17:54:59 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': 0.0, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297696, 'usUnits': 17}

Jan 10 17:56:59 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.1, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297816, 'usUnits': 17}

Jan 10 17:57:01 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 17:57:23 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.1, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297840, 'usUnits': 17}

Jan 10 17:58:59 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.1, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610297936, 'usUnits': 17}

Jan 10 18:00:35 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': 0.0, 'outHumidity': 97.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610298032, 'usUnits': 17}

Jan 10 18:00:37 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:09:35 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.3, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610298572, 'usUnits': 17}

Jan 10 18:09:36 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:10:59 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.3, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610298656, 'usUnits': 17}

Jan 10 18:11:00 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:11:23 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.2, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610298680, 'usUnits': 17}

Jan 10 18:11:47 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.3, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610298704, 'usUnits': 17}

Jan 10 18:15:47 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.4, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610298944, 'usUnits': 17}

Jan 10 18:15:48 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:19:23 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.5, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610299160, 'usUnits': 17}

Jan 10 18:19:35 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.5, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610299172, 'usUnits': 17}

Jan 10 18:21:35 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.5, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610299292, 'usUnits': 17}

Jan 10 18:21:36 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:31:35 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.7, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610299892, 'usUnits': 17}

Jan 10 18:31:36 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:38:11 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.8, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610300288, 'usUnits': 17}

Jan 10 18:38:12 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:42:35 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.9, 'outHumidity': 98.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610300552, 'usUnits': 17}

Jan 10 18:42:37 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:59:11 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -1.0, 'outHumidity': 99.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610301548, 'usUnits': 17}

Jan 10 18:59:12 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Jan 10 18:59:23 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -1.0, 'outHumidity': 99.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610301560, 'usUnits': 17}

Jan 10 19:13:47 raspberrypi weewx[508] DEBUG user.sdr: packet={'outTemp': -0.8, 'outHumidity': 99.0, 'windDir': 22.5, 'rain_total': 0.0, 'windGust': 0.0, 'dateTime': 1610302424, 'usUnits': 17}

Jan 10 19:13:49 raspberrypi weewx[508] DEBUG weewx.reportengine: Running reports for latest time in the database.

Reply all
Reply to author
Forward
0 new messages