Hartmut, another question: are you sure the problem is in the following
plot?

        [[[weekrain]]]
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 86400
                label = Rain (mm/Day)

How did you determine this was the problem?

-tk

On Sat, Nov 16, 2019 at 3:35 PM Thomas Keffer <[email protected]> wrote:

> Hartmut, try this version of xtypes.py
>
> -tk
>
> On Sat, Nov 16, 2019 at 8:47 AM Hartmut Schweidler <[email protected]>
> wrote:
>
>> Hallo
>> and now by  my  "StandardReport" an "cumulative"
>> Nov 16 17:40:27 wetter weewx-weewx[18349] INFO weewx.restx: PWSWeather:
>> Published record 2019-11-16 17:40:00 CET (1573922400)
>> Nov 16 17:40:28 wetter weewx-weewx[18349] INFO weewx.restx: WindFinder:
>> Published record 2019-11-16 17:40:00 CET (1573922400)
>> Nov 16 17:40:28 wetter weewx-weewx[18349] INFO weewx.restx: Wunderground-
>> PWS: Published record 2019-11-16 17:40:00 CET (1573922400)
>> Nov 16 17:40:41 wetter weewx-weewx[18349] INFO weewx.cheetahgenerator:
>> Generated 14 files for report StandardReport in 13.73 seconds
>> Nov 16 17:40:43 wetter weewx-weewx[18349] INFO weewx.imagegenerator:
>> Generated 33 images for StandardReport in 1.98 seconds
>> Nov 16 17:40:43 wetter weewx-weewx[18349] INFO weewx.reportengine: Copied
>> 0 files to /home/weewx/public_html
>> Nov 16 17:40:43 wetter weewx-weewx[18349] INFO weewx.cheetahgenerator:
>> Generated 0 files for report AstroReport in 0.03 seconds
>> Nov 16 17:40:43 wetter weewx-weewx[18349] INFO weewx.imagegenerator:
>> Generated 2 images for AstroReport in 0.16 seconds
>> Nov 16 17:40:43 wetter weewx-weewx[18349] INFO weewx.reportengine: Copied
>> 0 files to /home/weewx/public_html
>>
>> but in
>>         [[[weekrain]]]
>>             yscale = None, None, 0.02
>>             plot_type = bar
>>             [[[[rain]]]]
>>                 aggregate_type = sum
>>                 aggregate_interval = 86400
>>                 label = Rain (mm/Day)
>>
>> is error
>>
>> Nov 16 17:41:32 wetter weewx-weewx[18349] INFO weewx.cheetahgenerator:
>> Generated 10 files for report CalendarReport in 23.25 seconds
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>> reportengine: Caught unrecoverable exception in generator
>> 'weewx.imagegenerator.ImageGenerator'
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****  sum
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****  Traceback (most recent call last):
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****    File "/home/weewx/bin/weewx/reportengine.py", line 202, in
>> run
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****      obj.start()
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****    File "/home/weewx/bin/weewx/reportengine.py", line 285, in
>> start
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****      self.run()
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 41, in
>> run
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****      self.genImages(self.gen_ts)
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 180, in
>> genImages
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****      aggregate_interval=aggregate_interval)
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****    File "/home/weewx/bin/weewx/xtypes.py", line 77, in
>> get_series
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****      return xtype.get_series(obs_type, timespan, db_manager,
>> aggregate_type, aggregate_interval)
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****    File "/home/weewx/bin/weewx/xtypes.py", line 126, in
>> get_series
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****      agg_vt = get_aggregate(obs_type, stamp, do_aggregate,
>> db_manager)
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****    File "/home/weewx/bin/weewx/xtypes.py", line 94, in
>> get_aggregate
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****      raise weewx.UnknownAggregation(aggregate_type)
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****  weewx.UnknownAggregation: sum
>> Nov 16 17:41:33 wetter weewx-weewx[18349] ERROR weewx.reportengine:
>>     ****  Generator terminated
>> Nov 16 17:41:33 wetter weewx-weewx[18349] INFO weewx.reportengine: Copied
>> 0 files to /home/weewx/public_html
>> Nov 16 17:41:33 wetter weewx-weewx[18349] INFO weewx.cheetahgenerator:
>> Generated 6 files for report SmartphoneReport in 0.10 seconds
>>
>> otherwise everything is going very well
>>
>> Thanks to all
>> Hartmut
>>
>>
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-development/753bfe5e-7218-452a-a90d-f54fda976de9%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-development/753bfe5e-7218-452a-a90d-f54fda976de9%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEDX%3DvVDrJO3WyEb%2BPRqsSO43qm2%3D-gu_gcROjqhTxEPfg%40mail.gmail.com.

Reply via email to