Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

29th February #931

Open
roe-dl opened this issue Feb 29, 2024 · 1 comment
Open

29th February #931

roe-dl opened this issue Feb 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@roe-dl
Copy link
Contributor

roe-dl commented Feb 29, 2024

Describe the bug

Beginning with 00:00 there are error messages in the log:

Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****  day is out of range for month
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 201, in run
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****      obj.start()
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 394, in start
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****      self.run()
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 2536, in run
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****      span_start, span_stop = archiveSpanSpan(
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/weeutil.py", line 341, in archiveSpanSpan
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****      start_dt = time_dt.replace(year=year, month=month)
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****  ValueError: day is out of range for month
Feb 29 07:45:36 LokalWiki weewx[604942] ERROR weewx.reportengine:         ****  Generator terminated

Some JSON files in the json sub-directory are not cretated any more.

Link to your website (IMPORTANT)

https://www.woellsdorf-wetter.de

Version of the skin you're using

1.3b1

To Reproduce

It simply happens.

Expected behavior

JSON files will be created even for the 29th of February.

Device Information (please complete the following information):

not applicable

Additional context

none

@roe-dl roe-dl added the bug Something isn't working label Feb 29, 2024
@roe-dl
Copy link
Contributor Author

roe-dl commented Feb 29, 2024

According to @bellrichm in weewx/weewx#941 (comment) the option month_delta is deprecated, which is used within the statement that causes the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant