Weewx /Airlink extension

60 views
Skip to first unread message

Jean-Luc Kapetanovic

unread,
Apr 7, 2024, 3:11:55 AM4/7/24
to weewx-user
I am running the last version of weewx & belchertown skins. I added recently the airlink extension to get the air quality observations. All the system components works fine except I found too much errors in the log file regarding the fetch of the data on the airlink device. It look like the [airlink] extension is pooling intensively the airlink data. Is it possible to decrease the pooling frequency to the airlink device as it look like the pooling is too high (every seconds in the log file). 

Apr 07 08:57:35 weewx weewxd[1104]: ERROR user.airlink: Could not get concentrations from any source.

Apr 07 08:57:35 weewx weewxd[1104]: INFO user.airlink: collect_data: Attempt to fetch from: 192.168.30.14 failed: HTTPConnectionPool(host='192.168.30.14', port=80): Max retries exceeded with url: /v1/current_condition>

A

Jean-Luc Kapetanovic

unread,
Apr 7, 2024, 4:28:41 AM4/7/24
to weewx-user
my mistake: the pooling is 60 second in weewx engine but the retry waiting delay, timeout may be too short. 
I added a wait before retry = 15 seconds, added timeout to 4s and max_tries = 2s. 
restarted weewx service and check the log file. 
So far , no ERRORS in the log file. 
Let's close this for now.

[AirLink]

    [[Sensor1]]

        enable = True

        hostname = 192.168.30.14

        port = 80

        # too much retry on pooling - added the 3 variables below to decrease the pooling on the airlink device 

        # How long to wait for a response from the station before giving up (in

        # seconds; must be greater than 2)

        timeout = 4

        # How long to wait before trying again (in seconds)

        wait_before_retry = 15

        # How many times to try before giving up:

        max_tries = 2


no  errors in the log file. 

jlkape@weewx:/etc/weewx $ sudo journalctl -u weewx --since "10 minutes ago" | grep AirLink

Apr 07 10:12:22 weewx weewxd[272549]: INFO weewx.cheetahgenerator: Generated 1 files for report AirLinkReport in 0.02 seconds

Apr 07 10:12:22 weewx weewxd[272549]: INFO weewx.imagegenerator: Generated 2 images for report AirLinkReport in 0.29 seconds

Apr 07 10:13:22 weewx weewxd[272549]: INFO weewx.cheetahgenerator: Generated 1 files for report AirLinkReport in 0.02 seconds

Apr 07 10:13:22 weewx weewxd[272549]: INFO weewx.imagegenerator: Generated 2 images for report AirLinkReport in 0.29 seconds

Apr 07 10:14:22 weewx weewxd[272549]: INFO weewx.cheetahgenerator: Generated 1 files for report AirLinkReport in 0.02 seconds

Apr 07 10:14:22 weewx weewxd[272549]: INFO weewx.imagegenerator: Generated 2 images for report AirLinkReport in 0.29 seconds

Apr 07 10:15:22 weewx weewxd[272549]: INFO weewx.cheetahgenerator: Generated 1 files for report AirLinkReport in 0.02 seconds

Apr 07 10:15:22 weewx weewxd[272549]: INFO weewx.imagegenerator: Generated 2 images for report AirLinkReport in 0.38 seconds

Apr 07 10:16:22 weewx weewxd[272549]: INFO weewx.cheetahgenerator: Generated 1 files for report AirLinkReport in 0.02 seconds

Apr 07 10:16:22 weewx weewxd[272549]: INFO weewx.imagegenerator: Generated 2 images for report AirLinkReport in 0.29 seconds



Reply all
Reply to author
Forward
0 new messages