Glad to hear it worked out. It's not easy to insert a value of 'Inf' in sqlite either, although slightly easier than in Python. It can be done if you enter a very large number, such as "1.0e+9999", or enter it explicitly as "Inf".
On Tue, Oct 28, 2025 at 11:41 AM Thomas Carlin <[email protected]> wrote: > Hey Tom, > > My reasoning for 1760745600 is that the daily graph generates without > issue, but the weekly fails, so at the time i posted this, that would > include all the data in that chart. > > I set > [[[weekRadiation]]] > aggregate_type = max > > and > [[[monthRadiation]]] > aggregate_type = max > > and still got the same error, so i started adjusting the times of the > weekly chart. I was able to isolate down that the chart succeeded at > 257400, and failed at 342000, again with the same error. This was recorded > at 1761675900, leaving my error between 1761333900 and 1761418500. > > I went ahead and ran a database query, and sure enough, right there in the > middle was an Inf value. I thought I had looked through all that the other > night, but I must have missed it. All my graphs are re-enabled, and > everything is generating like it is supposed to! Now I just need to figure > out how that value got in there to begin with... > > As always, great software, keep up the good work! > > On Tue, Oct 28, 2025 at 8:42 AM Tom Keffer <[email protected]> wrote: > >> - Any particular reason why you think the bad data is located somewhere >> after timestamp 1760745600? >> - Try a different aggregate type besides "avg". That may give you a clue. >> - The specification for [[month_images]] uses an aggregation interval of >> 3 hours, so it will not use the daily summaries when plotting. If there is >> a bad value somewhere, it will be in the archive directory. >> >> The Python value "inf" is not easy to generate. You usually have to >> specify it explicitly. I'm not 100% sure, but I suspect that you have a bad >> value somewhere in your archive directory. >> >> -tk >> >> >> On Mon, Oct 27, 2025 at 10:08 AM Thomas Carlin <[email protected]> >> wrote: >> >>> I did end up tracking down the offending metric and charts, All of them >>> are the same metric, with no extra tags, but it is one that I have added to >>> the system, cpm (radiation counts per minute). The day graph works, but >>> the weekly, monthly and yearly all fail, with the traceback listed above. >>> There are excerpts from the database listed above. >>> >>> [[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 >>> ......... >>> [[[weekRadiation]]] >>> [[[[cpm]]]] >>> >>> On Mon, Oct 27, 2025 at 9:43 AM p q <[email protected]> wrote: >>> >>>> I'm guessing you have a divide by zero in there someplace that's >>>> causing the infinity. Are any of the possible denominators in ymin, ymax, >>>> self.yscale, self.y_nticks zero? I'm guessing it's scale or nticks. >>>> >>>> On Mon, Oct 27, 2025 at 8:34 AM Tom Keffer <[email protected]> wrote: >>>> >>>>> Not obvious to me what is going wrong. >>>>> >>>>> I think you're going to have to isolate exactly which plot is causing >>>>> the problem. Go into Sofaskin's configuration file skin.conf and comment >>>>> out image specifications until you find the culprit. Use "weectl >>>>> report run >>>>> <https://www.weewx.com/docs/5.2/utilities/weectl-report/#run-reports-on-demand>" >>>>> to speed up the process. >>>>> >>>>> On Sun, Oct 26, 2025 at 7:53 PM Thomas Carlin <[email protected]> >>>>> wrote: >>>>> >>>>>> 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 >>>>>> <https://groups.google.com/d/msgid/weewx-user/7c7d0654-9592-4703-b311-4ec8339f50f0n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>>> 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/CAPq0zEA0T-xy053nXfoJJdz%2BDNH6nvb6wGMJcxia5ULWBSQwAw%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEA0T-xy053nXfoJJdz%2BDNH6nvb6wGMJcxia5ULWBSQwAw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> >>>> >>>> -- >>>> Peter Quinn >>>> (415)794-2264 >>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "weewx-user" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/weewx-user/VnBsK41phLc/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To view this discussion visit >>>> https://groups.google.com/d/msgid/weewx-user/CAA1SM22a0K9%2BiXfaMvfn%2BRpZwh5nouivYaNpb4PoLCXSQ-dz5w%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/weewx-user/CAA1SM22a0K9%2BiXfaMvfn%2BRpZwh5nouivYaNpb4PoLCXSQ-dz5w%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> >>> >>> -- >>> Thomas Carlin >>> 970-401-3805 >>> >>> -- >>> 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/CALvrRRca1GohRoRYaWXF_kV4%3DyD6xLPwojcJpkE%3DrHtcr3Bb_A%40mail.gmail.com >>> <https://groups.google.com/d/msgid/weewx-user/CALvrRRca1GohRoRYaWXF_kV4%3DyD6xLPwojcJpkE%3DrHtcr3Bb_A%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "weewx-user" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/weewx-user/VnBsK41phLc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion visit >> https://groups.google.com/d/msgid/weewx-user/CAPq0zECbtr8QYL8pSuaAM4OvcR5%3DQ%2BzKmhWDZ%3D_xefL%3DbwBmkg%40mail.gmail.com >> <https://groups.google.com/d/msgid/weewx-user/CAPq0zECbtr8QYL8pSuaAM4OvcR5%3DQ%2BzKmhWDZ%3D_xefL%3DbwBmkg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Thomas Carlin > 970-401-3805 > > -- > 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/CALvrRRcOswrQb81tJ5LsN4uno2b64pHkHTtLmPsFZCEVaR_HrA%40mail.gmail.com > <https://groups.google.com/d/msgid/weewx-user/CALvrRRcOswrQb81tJ5LsN4uno2b64pHkHTtLmPsFZCEVaR_HrA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEC-6shxboWV7ndZQcuH8yCR8H6KLaDFPBaw84DQmtXdYw%40mail.gmail.com.
