Weewx Belchertown Skin und Sonnenscheindauer

wenn es um andere Software geht
Benutzeravatar
moppedhausi
Beiträge: 828
Registriert: 01 Jan 2007 11:37
Wohnort: Willich / Niederrhein
Hat sich bedankt: 50 mal
Danksagung erhalten: 4 mal
Kontaktdaten:

Weewx Belchertown Skin und Sonnenscheindauer

Beitrag von moppedhausi »

Guten Tag Werner,

hab auf Deine belchertown.py Erweiterung vom 17.2.2024 aktualisiert und in der graphs.conf folgendes eingetragen:

Code: Alles auswählen

[[sunShine]]
    title = Solarstrahlung und Dauer
    [[[radiation]]]
       name = Solarstrahlung
       zIndex = 1
       color = "#ffc83f"
    [[[maxSolarRad]]]
        name = Theor. Max Solarstrahlung
        type = area
        color = "#f7f2b4"
        yAxis_label = "W/m2"
   [[[sunshine_time]]]
        name = Sonnenschein
        color = "#ea078b"
        yAxis_label = "Solarstrahlung W/m2"
   [[[sunshineDur]]]
         yAxis = 1
         yAxis_min = 0
         yAxis_softMax = 14
         type = column
         observation_type = sunshineDur / 60
         color = red
         yAxis_label = "Sonnenscheindauer in min"
         name = Sonnenscheindauer
         zIndex = 2

Darauf bekam ich folgende Error Meldung:

Code: Alles auswählen

Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  Error trying to use database binding wx_binding to graph observation sunshineDur. Error was: unsupported>
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 109, in get_series
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      return xtype.get_series(obs_type, timespan, db_manager, aggregate_type,
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 203, in get_series
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      for stamp in weeutil.weeutil.intervalgen(startstamp, stopstamp, aggregate_interval):
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/weeutil.py", line 921, in intervalgen
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      delta = datetime.timedelta(seconds=interval)
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  TypeError: unsupported type for timedelta seconds component: NoneType
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/etc/weewx/bin/user/belchertown.py", line 3727, in get_observation_data
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      row_converted = self.converter.convert(row_tuple)
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****                                      ^^^^^^^^^^^^^^^^^
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 114, in get_series
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      return xtype.get_series(obs_type, timespan, db_manager, aggregate_type,
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 203, in get_series
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      for stamp in weeutil.weeutil.intervalgen(startstamp, stopstamp, aggregate_interval):
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/weeutil.py", line 921, in intervalgen
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      delta = datetime.timedelta(seconds=interval)
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  TypeError: unsupported type for timedelta seconds component: NoneType
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 248, in run
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      obj.start()
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 465, in start
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      self.run()
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/etc/weewx/bin/user/belchertown.py", line 2756, in run
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****      # Set default colors, unless the user has specified
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****    File "/etc/weewx/bin/user/belchertown.py", line 3735, in get_observation_data
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  Warning: Error trying to use database binding wx_binding to graph observation sunshineDur. Error was: un>
Nov 25 16:40:58 raspberrypi weewxd[349206]: ERROR weewx.reportengine:         ****  Generator terminated
Wo habe ich was übersehen?
https://www.wetter-willich.de/wetter/weewx/belchertown/
Gruss Wilfried
Benutzeravatar
Werner
Site Admin
Beiträge: 5884
Registriert: 04 Dez 2001 01:00
Wohnort: Lackenhäuser
Danksagung erhalten: 112 mal
Kontaktdaten:

Re: Weewx Belchertown Skin und Sonnenscheindauer

Beitrag von Werner »

@Wilfried

Du brauchst in der weewx.conf diesen Eintrag

Code: Alles auswählen

 [[Defaults]]
   [[[Units]]]
      [[[[Groups]]]]
          group_deltatime = hour
oder in der belchertown skin.conf

Code: Alles auswählen

[Units]
    # This section is for managing the selection and formatting of units.

    [[Groups]]
        group_deltatime    = hour
Diese Benutzer haben sich bei Werner für den Beitrag bedankt:
moppedhausi
Antworten