WernerKr / Ecowitt-or-DAVIS-stations-and-Season-skin

modified Weewx Seasons skin and Ecowitt stations/devices support with all available sensors (and DAVIS Weatherlink Live, VantagePro, AirLink too)
0 stars 2 forks source link

Difference between Interceptor and GW1000 driver #1

Open jult opened 1 year ago

jult commented 1 year ago

I don't see this documented, what exactly does the Interceptor mean or do, as it seems related to the ecowitt sensors?

WernerKr commented 1 year ago

Ecowitt stations, e.g. HP2560 do not have API support. The data can only be obtained here via the "Customized" function. And that's what the Interceptor driver is for. The GW1000 driver only works with the gateways (GW1000, GW1100, GW2000, WS1900), which also provide the "Customized" option. Above the GW1000 driver, additional values are recorded which are not made available via the interceptor driver, e.g. signal, rain gain

jult commented 1 year ago

Sorry, your answer does not make it any more clear. You installed info in weewx.conf, but it's totally unclear as to which I need to uncomment, and why. stationtype=GW1000 or stationtype=Interceptor, as I prefer to use your combined config, do I just uncomment both?

You write "Above the GW1000 driver", do you mean, in addition to?

WernerKr commented 1 year ago

do you mean, in addition to YES On a Ecowitt Gateway like GW2000 you can use both drivers: The Interceptor driver

[Station]
station_type = Interceptor

The GW1000 driver as data service

[Engine]
    [[Services]]
        data_services = user.gw1000.Gw1000Service

The result can you see here: https://www.pc-wetterstation.de/wetter/weewx4/

jult commented 1 year ago
weewx[816] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Seasons/index.html.tmpl failed with exception '<class 'FileNotFoundError'>'
2023-08-07T18:25:17.416576+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
2023-08-07T18:25:17.416609+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: **** Reason: [Errno 2] No such file or directory: '/etc/weewx/skins/Seasons/airlink.inc'
2023-08-07T18:25:17.417253+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2023-08-07T18:25:17.417289+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
2023-08-07T18:25:17.417313+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
2023-08-07T18:25:17.417335+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-08-07T18:25:17.417356+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Seasons_index_html_tmpl.py", line 503, in respond
2023-08-07T18:25:17.417382+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1685, in _handleCheetahInclude
2023-08-07T18:25:17.417404+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****      nestedTemplateClass = compiler.compile(source=source,
2023-08-07T18:25:17.417442+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-08-07T18:25:17.417473+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 738, in compile
2023-08-07T18:25:17.417502+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****      fileHash += str(os.path.getmtime(file))
2023-08-07T18:25:17.417531+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****                      ^^^^^^^^^^^^^^^^^^^^^^
2023-08-07T18:25:17.417570+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****    File "<frozen genericpath>", line 55, in getmtime
2023-08-07T18:25:17.417599+02:00 greeny weewx[816] ERROR weewx.cheetahgenerator: ****  FileNotFoundError: [Errno 2] No such file or directory: '/etc/weewx/skins/Seasons/airlink.inc'
2023-08-07T18:25:17.672841+02:00 greeny weewx[816] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 0.55 seconds
2023-08-07T18:25:18.151371+02:00 greeny weewx[816] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
2023-08-07T18:25:18.151433+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****  'radiation' or 'energy_integral'
2023-08-07T18:25:18.151762+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
2023-08-07T18:25:18.151806+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
2023-08-07T18:25:18.151832+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****      obj.start()
2023-08-07T18:25:18.151854+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
2023-08-07T18:25:18.151878+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****      self.run()
2023-08-07T18:25:18.151901+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
2023-08-07T18:25:18.151922+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****      self.gen_images(self.gen_ts)
2023-08-07T18:25:18.151944+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 107, in gen_images
2023-08-07T18:25:18.151965+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****      plot = self.gen_plot(plotgen_ts,
2023-08-07T18:25:18.151988+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****             ^^^^^^^^^^^^^^^^^^^^^^^^^
2023-08-07T18:25:18.152010+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 243, in gen_plot
2023-08-07T18:25:18.152030+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****      start_vec_t, stop_vec_t, data_vec_t = weewx.xtypes.get_series(
2023-08-07T18:25:18.152055+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****                                            ^^^^^^^^^^^^^^^^^^^^^^^^
2023-08-07T18:25:18.152076+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
2023-08-07T18:25:18.152095+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
2023-08-07T18:25:18.152115+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****  weewx.UnknownType: 'radiation' or 'energy_integral'
2023-08-07T18:25:18.152135+02:00 greeny weewx[816] ERROR weewx.reportengine:         ****  Generator terminated
WernerKr commented 1 year ago

weewx.UnknownType: 'radiation' or 'energy_integral' Remove this sensors from the skin.conf file or ... You hadn't such set in your weewx.conf

[StdCalibrate]
    [[Corrections]]
        radiation = luminosity/126.7 if luminosity is not None else None

energy_integral needs radiation and the extention GTS:

xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx.wxxtypes.StdDelta, **user.GTS.GTSService**