Upgrading weewx 4.10.2 to 5.3.1

87 views
Skip to first unread message

Gordon Dickens

unread,
Apr 22, 2026, 5:18:03 PM (9 days ago) Apr 22
to weewx-user
OK, I just upgraded my Debian 12 system to Debian 13 and I couldn't get my old weewx verion 4.10.2 to work properly so I decided to upgrade weewx to the latest version, 5.3.1.  The bottom line is that I have it sorta working but not very well.  Basically, I have the archive_interval = 300 in weewx.conf but the Seasons skin charts are updating every 30 minutes instead of every 5 minutes.  How do I fix this so that the charts are generated every 300 seconds as specified in weewx.conf?

Secondly, I am running the Belchertown skin version 1.3 and, while the current data, including temperature, etc. is being displayed correctly with MQTT updating every 2 seconds, all of the charts end about the time that I did the Debian 12 to 13 upgrade. Any recommended fixes?

Any advice will be greatly appreciated.

Thanks,

Gordon

Gordon Dickens

unread,
Apr 22, 2026, 5:32:33 PM (9 days ago) Apr 22
to weewx-user
BTW, the weewx logs do not have any errors but there are two entries that look susicious regarding my weewx problem with the archive interval, both or which are INFO entries. These log entries occured upon starting the weewx service with "systemctl start weewx".

INFO weewx.engine: The archive interval in the configuration file (300) does not match the station hardware interval (1800).
<followed by>
NFO weewx.engine: Using archive interval of 1800 seconds (specified by hardware)

1800 seconds is 30 minutes and so I suspect that this may be part of my problem.

Advice?

Thanks,

Gordon

Vince Skahan

unread,
Apr 22, 2026, 5:52:07 PM (9 days ago) Apr 22
to weewx-user
Sure. Set your console interval to the same value as in your weewx setup.

Follow your station documentation for how to do so. You provided no logs so can’t help more thanthat.

Gordon Dickens

unread,
Apr 22, 2026, 5:55:55 PM (9 days ago) Apr 22
to weewx-user
I think that I just fixed my first problem with the weewx archive interval with:

weectl device --set-interval=5 -y

That sets the interval to 5 minutes in the console hardware so that it matches the weewx archival interval and all of the Seasons skin charts are now be correctly updated.    

While everything appears to now be updating correctly in the Seasons skin for weewx, all of the Belchertown charts data ended about the time that I did the Debian 12 to 13 upgrade even though the current data, including temperature, etc. is being displayed correctly with MQTT updating every 2 seconds.  In other words, the Belchertown charts and reports are not updating anymore.

Does anybody have any suggestions on how to get the Belchertown skin's charts and reports to start updating again? 

Thanks,

Gordon

Vince Skahan

unread,
Apr 22, 2026, 6:18:50 PM (9 days ago) Apr 22
to weewx-user
Again, without seeing debug=1 logs, nope.

Gordon Dickens

unread,
Apr 22, 2026, 6:59:15 PM (9 days ago) Apr 22
to weewx-user
Hi Vince, I set debug to 1 but there are no messages in the log that mention anything about Belchertown during startup or shortly thereafter.  I am attaching the startup section of my latest log to this post.

Please let me know if you have any suggestions.

Thanks!

Gordon.
weewx_log.txt

Vince Skahan

unread,
Apr 22, 2026, 7:02:42 PM (9 days ago) Apr 22
to weewx-user
Your log says debug=0.  You need to restart weewx after changing weewx.conf

And the log is 'far' too short.  We need to see two runs through your archive period.

Gordon Dickens

unread,
Apr 22, 2026, 7:30:08 PM (9 days ago) Apr 22
to weewx-user
I figured it out and now everything appears to be working properly.

Python 3.12+ removed locale.format(). It must be replaced with locale.format_string().

The quick Fix:

Edit /etc/weewx/bin/user/belchertown.py and replace all instances of locale.format( with locale.format_string(.

Or replace all occurrences:
sudo sed -i 's/locale\.format(/locale.format_string(/g' /etc/weewx/bin/user/belchertown.py

Restart the weewx service and I am back in business.

Gordon.

Reply all
Reply to author
Forward
0 new messages