Problem with weewx-airlink

151 views
Skip to first unread message

anc...@gmail.com

unread,
May 25, 2022, 11:24:05 AM5/25/22
to weewx-user
Hi guys,
I just installed for the first time a Davis Airlink and I want to integrate it in WeeWX with which my Davis VP2 already works. I followed the instructions on the weewx-airlink page, but for some reason it is not working . Here is some log:

May 25 16:11:01 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:01 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:03 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:05 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:07 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: last_report_time must be time since boot: 85441 seconds.  Record: {'data': {'did': '001D0A100829', 'name': 'IIS Ceccano', 'ts': 85441, 'conditions': [{'lsid': 522424, 'data_structure_type': 6, 'temp': 92.0, 'hum': 26.5, 'dew_point': 52.7, 'wet_bulb': 60.0, 'heat_index': 89.8, 'pm_1_last': 4, 'pm_2p5_last': 5, 'pm_10_last': 5, 'pm_1': None, 'pm_2p5': None, 'pm_2p5_last_1_hour': None, 'pm_2p5_last_3_hours': None, 'pm_2p5_last_24_hours': None, 'pm_2p5_nowcast': None, 'pm_10': None, 'pm_10_last_1_hour': None, 'pm_10_last_3_hours': None, 'pm_10_last_24_hours': None, 'pm_10_nowcast': None, 'last_report_time': 85441, 'pct_pm_data_last_1_hour': None, 'pct_pm_data_last_3_hours': None, 'pct_pm_data_nowcast': None, 'pct_pm_data_last_24_hours': None}]}, 'error': None}
May 25 16:11:07 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:07 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:09 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:11 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:12 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: last_report_time must be time since boot: 85446 seconds.  Record: {'data': {'did': '001D0A100829', 'name': 'IIS Ceccano', 'ts': 85446, 'conditions': [{'lsid': 522424, 'data_structure_type': 6, 'temp': 92.1, 'hum': 26.7, 'dew_point': 53.0, 'wet_bulb': 60.3, 'heat_index': 89.9, 'pm_1_last': 4, 'pm_2p5_last': 4, 'pm_10_last': 4, 'pm_1': None, 'pm_2p5': None, 'pm_2p5_last_1_hour': None, 'pm_2p5_last_3_hours': None, 'pm_2p5_last_24_hours': None, 'pm_2p5_nowcast': None, 'pm_10': None, 'pm_10_last_1_hour': None, 'pm_10_last_3_hours': None, 'pm_10_last_24_hours': None, 'pm_10_nowcast': None, 'last_report_time': 85446, 'pct_pm_data_last_1_hour': None, 'pct_pm_data_last_3_hours': None, 'pct_pm_data_nowcast': None, 'pct_pm_data_last_24_hours': None}]}, 'error': None}
May 25 16:11:12 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:13 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:15 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:16 StazioneMeteoiisCeccano weewx[32034] INFO weewx.manager: Added record 2022-05-25 16:11:00 CEST (1653487860) to database 'weewx.sdb'
May 25 16:11:16 StazioneMeteoiisCeccano weewx[32034] INFO weewx.manager: Added record 2022-05-25 16:11:00 CEST (1653487860) to daily summary in 'weewx.sdb'
May 25 16:11:16 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:17 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:19 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: collect_data: Attempt to fetch from: 192.168.0.196 failed: HTTPConnectionPool(host='192.168.0.196', port=80): Max retries exceeded with url: /v1/current_conditions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xb4c62350>, 'Connection to 192.168.0.196 timed out. (connect timeout=2)')).
May 25 16:11:19 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:19 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:21 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:23 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:25 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:26 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: last_report_time must be time since boot: 85460 seconds.  Record: {'data': {'did': '001D0A100829', 'name': 'IIS Ceccano', 'ts': 85460, 'conditions': [{'lsid': 522424, 'data_structure_type': 6, 'temp': 92.2, 'hum': 26.8, 'dew_point': 53.2, 'wet_bulb': 60.4, 'heat_index': 90.1, 'pm_1_last': 4, 'pm_2p5_last': 7, 'pm_10_last': 7, 'pm_1': None, 'pm_2p5': None, 'pm_2p5_last_1_hour': None, 'pm_2p5_last_3_hours': None, 'pm_2p5_last_24_hours': None, 'pm_2p5_nowcast': None, 'pm_10': None, 'pm_10_last_1_hour': None, 'pm_10_last_3_hours': None, 'pm_10_last_24_hours': None, 'pm_10_nowcast': None, 'last_report_time': 85460, 'pct_pm_data_last_1_hour': None, 'pct_pm_data_last_3_hours': None, 'pct_pm_data_nowcast': None, 'pct_pm_data_last_24_hours': None}]}, 'error': None}
May 25 16:11:26 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:27 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:29 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:31 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:32 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: last_report_time must be time since boot: 85466 seconds.  Record: {'data': {'did': '001D0A100829', 'name': 'IIS Ceccano', 'ts': 85466, 'conditions': [{'lsid': 522424, 'data_structure_type': 6, 'temp': 92.0, 'hum': 26.8, 'dew_point': 53.1, 'wet_bulb': 60.3, 'heat_index': 89.8, 'pm_1_last': 5, 'pm_2p5_last': 8, 'pm_10_last': 10, 'pm_1': None, 'pm_2p5': None, 'pm_2p5_last_1_hour': None, 'pm_2p5_last_3_hours': None, 'pm_2p5_last_24_hours': None, 'pm_2p5_nowcast': None, 'pm_10': None, 'pm_10_last_1_hour': None, 'pm_10_last_3_hours': None, 'pm_10_last_24_hours': None, 'pm_10_nowcast': None, 'last_report_time': 85466, 'pct_pm_data_last_1_hour': None, 'pct_pm_data_last_3_hours': None, 'pct_pm_data_nowcast': None, 'pct_pm_data_last_24_hours': None}]}, 'error': None}
May 25 16:11:32 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:33 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:35 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:36 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: get_scalar called where record does not contain pm2_5.  This is unexpected.
May 25 16:11:36 StazioneMeteoiisCeccano weewx[32034] INFO weewx.cheetahgenerator: Generated 16 files for report StandardReport in 18.41 seconds
May 25 16:11:37 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:39 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: collect_data: Attempt to fetch from: 192.168.0.196 failed: HTTPConnectionPool(host='192.168.0.196', port=80): Max retries exceeded with url: /v1/current_conditions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xb3d97710>, 'Connection to 192.168.0.196 timed out. (connect timeout=2)')).
May 25 16:11:39 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:39 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:41 StazioneMeteoiisCeccano weewx[32034] INFO weewx.imagegenerator: Generated 15 images for report StandardReport in 5.33 seconds
May 25 16:11:41 StazioneMeteoiisCeccano weewx[32034] INFO weewx.reportengine: Copied 14 files to /home/weewx/public_html
May 25 16:11:41 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:42 StazioneMeteoiisCeccano /weewxd: historygenerator.py: No bootstrap specific labels found
May 25 16:11:42 StazioneMeteoiisCeccano /weewxd: historygenerator.py: Generated 8 tables in 0.34 seconds
May 25 16:11:43 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:45 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:46 StazioneMeteoiisCeccano weewx[32034] INFO user.airlink: collect_data: Attempt to fetch from: 192.168.0.196 failed: HTTPConnectionPool(host='192.168.0.196', port=80): Max retries exceeded with url: /v1/current_conditions (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xb3cb5910>, 'Connection to 192.168.0.196 timed out. (connect timeout=2)')).
May 25 16:11:46 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Could not get concentrations from any source.
May 25 16:11:47 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:49 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.
May 25 16:11:51 StazioneMeteoiisCeccano weewx[32034] ERROR user.airlink: Found no concentrations to insert.


As you can see, it seems to get some data packets with the values inside to be different each time, but in practice it does not put anything inside the database (I checked that the columns pm1_0, pm2_5 etc. are present with only null values). It is also curious that the Airlink is not working on Weatherlink.com, but somehow it is connected to the network because I can find it with a net scanner, and it seems that WeeWX can see it in some way with these packets you can see within the log.

Can anybody help me? Thank you!
Andrea

Doug Jenkins

unread,
May 25, 2022, 11:33:13 AM5/25/22
to weewx...@googlegroups.com
My guess since you do not see the device in weatherlink.com is that it is not reporting correctly on the network. 


1.  First see if you can open your web browser to the api of the airlink device.

for example: http://xxx.xxx.xxx.xxx/v1/current_conditions
You should see JSON data returned.

2. Also check the APi Documentation from Davis (Introduction | AirLink Local API (weatherlink.github.io) about how the device works on a network. From their documentation, AirLink devices advertise their presence on the local network using DNS Service Discovery over multicast DNS (mDNS). These technologies are also known as Zeroconf or Bonjour or Avahi.

I have a weewx-airlink device and I followed this guide using the driver with success. Please let me know if you have any questions.



if not, 

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c78cce53-57c1-41aa-a9da-acbe15c6b274n%40googlegroups.com.

John Kline

unread,
May 25, 2022, 1:30:40 PM5/25/22
to weewx...@googlegroups.com
You’re getting this because the timestamp is bad:
'ts': 85460

The specific message: user.airlink: last_report_time must be time since boot: 85441 seconds.
is worded that way because I found airlink was reporting time since reboot (rather than time since epoch).  I observed this behavior until the airlink started reporting concentrations.  I specifically check for pm1 to determine this state.  In the case below, pm_1 is missing ('pm_1': None).

I wouldn’t try to get this running in weewx until you have good data.  In a browser, go to:
http://<airlink-url-or-ip-address>/v1/current_conditions

You need a good timestamp to show up here (e.g., right now, "ts": 1653499667) and good concentrations (rather than None); e.g., "pm_1": 5.16

Since it’s finding no valid concentrations, you are seeing the message “Could not get concentrations from any source.”

John

On May 25, 2022, at 8:24 AM, anc...@gmail.com <anc...@gmail.com> wrote:

Hi guys,
--

anc...@gmail.com

unread,
May 30, 2022, 7:09:38 AM5/30/22
to weewx-user
Hi,
that page gives me
curl http://192.168.0.196/v1/current_conditions
{ "data": { "did": "001D0A100829", "name": "IIS Ceccano", "ts": 506449, "conditions": [{ "lsid": 522424, "data_structure_type": 6, "temp": 86.1, "hum": 43.5, "dew_point": 61.3, "wet_bulb": 66.5, "heat_index": 86.5, "pm_1_last": 2, "pm_2p5_last": 3, "pm_10_last": 3, "pm_1": null, "pm_2p5": null, "pm_2p5_last_1_hour": null, "pm_2p5_last_3_hours": null, "pm_2p5_last_24_hours": null, "pm_2p5_nowcast": null, "pm_10": null, "pm_10_last_1_hour": null, "pm_10_last_3_hours": null, "pm_10_last_24_hours": null, "pm_10_nowcast": null, "last_report_time": 506449, "pct_pm_data_last_1_hour": null, "pct_pm_data_last_3_hours": null, "pct_pm_data_nowcast": null, "pct_pm_data_last_24_hours": null }] }, "error": null }

So it seems it has not neither good timestamp neither good concentrations. How can I fix this?

John Kline

unread,
May 30, 2022, 8:58:56 AM5/30/22
to weewx...@googlegroups.com
Well, first, the subject of this thread is not accurate.  The problem is not with weewx-airlink.

I had a look at Davis’ Airlink manual and this case isn’t covered.  I suggest you contact Davis Technical Support:
Monday - Friday, 7:00 a.m. - 5:30 p.m. Pacific Time.

On May 30, 2022, at 4:09 AM, anc...@gmail.com <anc...@gmail.com> wrote:

Hi,

anc...@gmail.com

unread,
May 30, 2022, 9:05:42 AM5/30/22
to weewx-user
Yes, when I started the thread I thought that the problem was within weewx-airlink, but now it is enough clear that it is the device having troubles. I think that the problem may be that it is connected to the network, but not to the internet, so it can't get the time and send data do Weatherlink.
Reply all
Reply to author
Forward
0 new messages