Re: [weewx-user] Re: ValueError: day is out of range for month

57 views
Skip to first unread message

Tom Keffer

unread,
Dec 31, 2021, 8:35:02 AM12/31/21
to weewx-user
Looks like the Belchertown skin was affected by issue #436. The use of month_delta and year_delta has been deprecated.

On Fri, Dec 31, 2021 at 2:17 AM David Schulz <schulz....@gmail.com> wrote:
This look better.

Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****  day is out of range for month
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 196, in run
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****      obj.start()
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 281, in start
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****      self.run()
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 2557, in run
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****      minstamp, maxstamp = archiveSpanSpan(
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/weeutil.py", line 460, in archiveSpanSpan
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****      start_dt = time_dt.replace(year=year, month=month)
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****  ValueError: day is out of range for month
Dec 31 11:16:20 weather weewx[892924] ERROR weewx.reportengine:         ****  Generator terminated

David Schulz schrieb am Freitag, 31. Dezember 2021 um 11:16:37 UTC+1:
hi,

I have this problem and this is my syslog file:

Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator' Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** day is out of range for month Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** Traceback (most recent call last): Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 196, in run Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** obj.start() Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 281, in start Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** self.run() Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** File "/usr/share/weewx/user/belchertown.py", line 2557, in run Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** minstamp, maxstamp = archiveSpanSpan( Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/weeutil.py", line 460, in archiveSpanSpan Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** start_dt = time_dt.replace(year=year, month=month) Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** ValueError: day is out of range for month Dec 31 10:52:22 weather weewx[892924] ERROR weewx.reportengine: **** Generator terminated

how can i fix this?

time is synced with chrony.

root ➜  ~ date
Fr 31. Dez 11:16:15 CET 2021

--
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/ba969b69-8123-492b-896f-cac21a6e6358n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages