Good evening,
Apologies if this has been posted before.
I am running Debian Bookworm, and since my 5.2 upgrade have been unable to
generate monthly and yearly charts. My station is modified, but only
according to the docs, and I have changed the schema import line where
necessary, and overall, everything is working, but it looks like my daily
and weekly graphs are generating, but my monthly and yearly are not. I am
running the old Sofaskin, and am getting the following traceback:
ERROR weewx.reportengine: Caught unrecoverable exception in generator
'weewx.imagegenerator.ImageGenerator'
**** cannot convert float infinity to integer
**** Traceback (most recent call last):
**** File "/usr/share/weewx/weewx/reportengine.py", line 248, in run
**** obj.start()
**** ~~~~~~~~~^^
**** File "/usr/share/weewx/weewx/reportengine.py", line 465, in start
**** self.run()
**** ~~~~~~~~^^
**** File "/usr/share/weewx/weewx/imagegenerator.py", line 37, in run
**** self.gen_images(self.gen_ts)
**** ~~~~~~~~~~~~~~~^^^^^^^^^^^^^
**** File "/usr/share/weewx/weewx/imagegenerator.py", line 107, in
gen_images
**** image = plot.render()
**** File "/usr/share/weewx/weeplot/genplot.py", line 212, in render
**** self._calcYScaling()
**** ~~~~~~~~~~~~~~~~~~^^
**** File "/usr/share/weewx/weeplot/genplot.py", line 566, in
_calcYScaling
**** self.yscale = weeplot.utilities.scale(ymin, ymax, self.yscale,
nsteps=self.y_nticks)
****
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**** File "/usr/share/weewx/weeplot/utilities.py", line 134, in scale
**** mag = math.floor(math.log10(steps))
**** OverflowError: cannot convert float infinity to integer
**** Generator terminated
My top level tags for the different images are:
[[day_images]]
x_label_format = %H:%M
bottom_label_format = %x %X
time_length = 97200 # == 27 hours
[[week_images]]
x_label_format = %d
bottom_label_format = %x %X
time_length = 604800 # == 7 days
aggregate_type = avg
aggregate_interval = 3600
[[month_images]]
x_label_format = %d
bottom_label_format = %x %X
time_length = 2592000 # == 30 days
aggregate_type = avg
aggregate_interval = 10800 # == 3 hours
show_daynight = false
[[year_images]]
x_label_format = %m/%d
bottom_label_format = %x %X
time_length = 31536000 # == 365 days
aggregate_type = avg
aggregate_interval = 86400
show_daynight = false
Let me know if there is anything else that would help to troubleshoot this
issue.
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/weewx-user/7c7d0654-9592-4703-b311-4ec8339f50f0n%40googlegroups.com.