Caught unrecoverable exception in generator ImageGenerator

36 views
Skip to first unread message

Joachim Puttkammer

unread,
Sep 10, 2019, 4:49:40 PM9/10/19
to weewx-user
Hello,

I receive the following error message ( tail -f /var/log/weewx.log / Raspberry )

reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
        ****  math domain error
        ****  Traceback (most recent call last):
        ****    File "/usr/share/weewx/weewx/reportengine.py", line 204, in run
        ****      obj.start()
        ****    File "/usr/share/weewx/weewx/reportengine.py", line 300, in start
        ****      self.run()
        ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 33, in run
        ****      self.genImages(self.gen_ts)
        ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 256, in genImages
        ****      image = plot.render()
        ****    File "/usr/share/weewx/weeplot/genplot.py", line 213, in render
        ****      self._calcYScaling()
        ****    File "/usr/share/weewx/weeplot/genplot.py", line 518, in _calcYScaling
        ****      self.yscale = weeplot.utilities.scale(ymin, ymax, self.yscale, nsteps=self.y_nticks)
        ****    File "/usr/share/weewx/weeplot/utilities.py", line 113, in scale
        ****      mag = math.floor(math.log10(steps))
        ****  ValueError: math domain error
        ****  Generator terminated

and I have no idea how to fix it.

Joachim

gjr80

unread,
Sep 10, 2019, 5:27:12 PM9/10/19
to weewx-user
Hi,

Would help to see more of the log in the lead up to the error (so we know which skin caused the error). Can you also post the [StdReport] section of weewx.conf (you can use wee_debug (http://weewx.com/docs/utilities.htm#wee_debug_utility) for this if you want) but make sure you check for any sensitive info before posting. Would also like to see the skin.conf for the offending skin but we don’t know which skin it is at the moment (unless of course you have only one).

Gary

Joachim Puttkammer

unread,
Sep 11, 2019, 4:19:36 AM9/11/19
to weewx-user
Hi Gary,
thank you for helping.
I found the bug in the skin.conf and changed

        [[[dayuv]]]
            yscale = None, 10.0, 0.5
            [[[[UV]]]]
to
        [[[dayuv]]]
            yscale = 0, None, 0.5
            [[[[UV]]]]

Joachim
Reply all
Reply to author
Forward
0 new messages