WeeWx database differs from system log

58 views
Skip to first unread message

Jonathan Ryshpan

unread,
Nov 10, 2021, 3:07:14 PM11/10/21
to weewx...@googlegroups.com
I'm trying to set up weewx on a new system.  (weewx is also new to me.)  The system log shows records being added to the database every half hour, but the database (weewx.sdb) seems to show records being added every 5 minutes.  Is one of these wrong?  Or does weewx add a number or records (6 exactly) to the database every half hours?  I'm perplexed.

Here's an extract from the system log (emphasis added):

$ journalctl --since today | grep 'weewx.*Added record.*database'
Nov 10 00:00:16  OaklandWeather.localdomain python3[1902]: weewx[1902] INFO weewx.manager: Added record 2021-11-10 00:00:00 PST (1636531200) to database 'weewx.sdb'
Nov 10 00:30:16  OaklandWeather.localdomain python3[1902]: weewx[1902] INFO weewx.manager: Added record 2021-11-10 00:30:00 PST (1636533000) to database 'weewx.sdb'
Nov 10 01:00:16  OaklandWeather.localdomain python3[1902]: weewx[1902] INFO weewx.manager: Added record 2021-11-10 01:00:00 PST (1636534800) to database 'weewx.sdb'
Nov 10 01:30:16  OaklandWeather.localdomain python3[1902]: weewx[1902] INFO weewx.manager: Added record 2021-11-10 01:30:00 PST (1636536600) to database 'weewx.sdb'
Nov 10 02:00:16  OaklandWeather.localdomain python3[1902]: weewx[1902] INFO weewx.manager: Added record 2021-11-10 02:00:00 PST (1636538400) to database 'weewx.sdb'

But here is an extract from the database (weewx.sdb) converted to a spreadsheet, covering the same period:

-- 
Sincerely Jonathan Ryshpan <jon...@pacbell.net>

	They know that it is human nature to take up
	causes whereby a man may oppress his neighbor,
	no matter how unjustly. ... Hence they have had
	no trouble in finding men who would preach the
	damnability and heresy of the new doctrine from
	the very pulpit...  -- Galileo Galilei, 1615

Tom Keffer

unread,
Nov 10, 2021, 3:24:08 PM11/10/21
to weewx-user
The times in the log are a month later than the times you are showing from the database. I'll bet if you looked later in the database, you would see that the records are arriving every 30 minutes.

Which did you intend? 5 or 30 minutes.

--
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/0289f0eea330723c6ca0b963cc2a65bf141aebde.camel%40pacbell.net.

gjr80

unread,
Nov 10, 2021, 3:25:20 PM11/10/21
to weewx-user
Hi,

Rather than a filtered log extract, how about restarting WeeWX, letting it run for at least half an hour and then post an (entire) log extract covering all of the WeeWX startup through until the half hour elapsed. Much better to see a full log extract that shows everything that is going on. The WeeWX startup part of the log will show us key WeeWX config info.

Gary

Tom Keffer

unread,
Nov 10, 2021, 4:09:55 PM11/10/21
to weewx-user
If you follow Gary's advice, make sure you set debug=1 in weewx.conf before restarting weewx.

--
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.

Jonathan Ryshpan

unread,
Nov 11, 2021, 3:10:36 PM11/11/21
to weewx...@googlegroups.com
On Wed, 2021-11-10 at 12:23 -0800, Tom Keffer wrote:
The times in the log are a month later than the times you are showing from the database. I'll bet if you looked later in the database, you would see that the records are arriving every 30 minutes.
You are correct; the database shows records arriving every 30 minutes.


Which did you intend? 5 or 30 minutes.
I intend every 5 minutes, and am considering every minute.  Any advice?

Thanks for your help.

-- 
Sincerely Jonathan Ryshpan <jon...@pacbell.net>

	"Never try to teach a pig to sing.
	It wastes time and annoys the pig."

gjr80

unread,
Nov 11, 2021, 3:18:56 PM11/11/21
to weewx-user
On Friday, 12 November 2021 at 06:10:36 UTC+10 jonatha...@gmail.com wrote:


Which did you intend? 5 or 30 minutes.
I intend every 5 minutes, and am considering every minute.  Any advice?

Yes, if you go down to a minute make sure you monitor your logs to ensure you are not overloading WeeWX. If your report cycle is taking longer than a minute to complete at best you will have some report cycles being skipped (will be noted in the log), at worst strange things may start happening.

Gary

Reply all
Reply to author
Forward
0 new messages