V5 version A29 broke one of my images

36 views
Skip to first unread message

pa...@pauland.net

unread,
May 3, 2023, 7:48:19 AM5/3/23
to weewx-development
Had been producing an image that showd the difference between Davis outTemp and Ecowitt out temp (extraTemp7).The image definition is hacky, belive it is from a forum post. Was working prior to V5 A29, but now broken.
Any ideas how to refactor the image request definition?
        [[[daytempdiff]]]
           [[[[diff]]]]
           data_type = outTemp-
           label = Vantage - GW1000
            [[[[baseline]]]]
                data_type = 0.0
                label = ' '
                color = "#ff0000"
                width = 1
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****  outTemp-extraTemp7
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****    File "/home/panders/.local/lib/python3.9/site-packages/weewx/reportengine.py", line 196, in run
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****      obj.start()
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****    File "/home/panders/.local/lib/python3.9/site-packages/weewx/reportengine.py", line 384, in start
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****      self.run()
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****    File "/home/panders/.local/lib/python3.9/site-packages/weewx/imagegenerator.py", line 37, in run
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****      self.gen_images(self.gen_ts)
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****    File "/home/panders/.local/lib/python3.9/site-packages/weewx/imagegenerator.py", line 102, in gen_images
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****      plot = self.gen_plot(plotgen_ts,
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****    File "/home/panders/.local/lib/python3.9/site-packages/weewx/imagegenerator.py", line 239, in gen_plot
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****      start_vec_t, stop_vec_t, data_vec_t = weewx.xtypes.get_series(
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****    File "/home/panders/.local/lib/python3.9/site-packages/weewx/xtypes.py", line 116, in get_series
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****  weewx.UnknownType: outTemp-extraTemp7
May 03 07:10:51 rpi3dev weewxd[63000]: weewx[63000] ERROR weewx.reportengine:         ****  Generator terminated

Thanks Paul


daytempdiff.webp

pa...@pauland.net

unread,
May 3, 2023, 7:54:27 AM5/3/23
to weewx-development
Sorry image request didn't copy correctly. This is what is used.

        [[[daytempdiff]]]
           [[[[diff]]]]
           data_type = outTemp-extraTemp7

           label = Vantage - GW1000
            [[[[baseline]]]]
                data_type = 0.0
                label = ' '
                color = "#ff0000"
                width = 1

Tom Keffer

unread,
May 3, 2023, 8:02:44 AM5/3/23
to pa...@pauland.net, weewx-development
It appears that in my attempt to allow plots of derived xtypes, I broke being able to plot an arbitrary SQL expression. 

Thanks for finding this!

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/52bab0e7-629b-4f86-9c62-ac365f6d98a3n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages