AirLink + Highcharts + Belchertown integration

132 views
Skip to first unread message

Lorin Tremblay

unread,
Aug 21, 2023, 6:35:02 PM8/21/23
to weewx-user
As anyone integrate their Davis AirLink to the belchertown skin with the highchart util?

I would be interested in doing so, but I would need some help on where to start.

vince

unread,
Aug 21, 2023, 10:29:53 PM8/21/23
to weewx-user
Do a google search for "weewx airlink" and add/configure/enable that extension so your AirLink data gets saved to a database.  Then adding a graph is done the same as adding any other graph in Belchertown.

Werner Krenn

unread,
Aug 22, 2023, 8:17:28 AM8/22/23
to weewx-user
In graphs.conf :

    [[co2_temp]]
        title = Temperatur
        [[[outTemp]]]
            zIndex = 1
            name = Aussen-Temperatur
            #color = #f20e3c
        [[[co2_Temp]]]
            name = Co2-Temperatur
            color = #f20e3c
            yAxis_label = "Temperatur (°C)"

    [[pm25]]
        title = Luftqualität
        [[[pm1_0]]]
            color = "#7cb5ec"
        [[[pm2_5]]]
            zIndex = 1
            color = "#0e25f2"
        [[[pm10_0]]]
           yAxis_label = "PM (µg/m³)"
            color = purple

Example for this (Weatherlink Live and Airlink)

Lorin Tremblay

unread,
Aug 22, 2023, 3:39:33 PM8/22/23
to weewx-user
your code generator this error....

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  Error trying to use database binding wx_binding to graph observation co2_Temp. Error was: co2_Temp.

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  Traceback (most recent call last):

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 3727, in get_observation_data

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****      (time_start_vt, time_stop_vt, obs_vt) = weewx.xtypes.get_series(

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  weewx.UnknownType: co2_Temp

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  Traceback (most recent call last):

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****      obj.start()

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 385, in start

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****      self.run()

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 2756, in run

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****      series_data = self.get_observation_data(

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 3735, in get_observation_data

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****      raise Warning(

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  Warning: Error trying to use database binding wx_binding to graph observation co2_Temp. Error was: co2_Temp.

Aug 22 14:10:57 WeeWx-APRS weewx[4133] ERROR weewx.reportengine:         ****  Generator terminated

Werner Krenn

unread,
Aug 23, 2023, 4:14:44 AM8/23/23
to weewx-user
I'm sorry,  I use a modified airlink.py with this new observations:

    dew_point     : float
    wet_bulb      : float
    heat_index    : float
    co2_Temp      : float
    co2_Hum       : float
    pm_2p5_last_1_hour : float
    pm_2p5_last_3_hours : float
    pm_2p5_last_24_hours : float
    pm_10_last_1_hour : float
    pm_10_last_3_hours : float
    pm_10_last_24_hours : float
    pct_pm_data_last_1_hour   : float
    pct_pm_data_last_3_hours  : float
    pct_pm_data_last_24_hours : float

Simple rename co2_Temp to temp  or remove
the Chart  [[co2_temp]]
Reply all
Reply to author
Forward
0 new messages