I see. You have old firmware where data_structure_type is 5. It’s 6 in the current firmware.
I have a check for 6 as that is the firmware that includes the names I am looking for. I’ll add support for data_structure_type of 5 tonight (I’m working at my day job at present). I’ll reply on this thread when I’ve uploaded the change. It’s simply a matter of looking for different names on a few fields in the json. Cheers, John > On Sep 28, 2020, at 12:16 PM, [email protected] <[email protected]> > wrote: > > No hadn't done that and now looks a little more promising but now I get > Sep 28 20:08:41 raspberrypi weewx-weewx[4553] INFO user.airlink: airlink > reading not sane: {'data': {'did': '001D0A1000AF', 'name': 'LusherClose > Sheringham', 'ts': 1601320120, 'conditions': [{'lsid': 349639, > 'data_structure_type': 5, 'temp': 59.0, 'hum': 69.3, 'dew_point': 48.9, > 'wet_bulb': 52.6, 'heat_index': 58.1, 'pm_1_last': 0, 'pm_2p5_last': 0, > 'pm_10_last': 1, 'pm_1': 0.61, 'pm_2p5': 0.61, 'pm_2p5_last_1_hour': 1.07, > 'pm_2p5_last_3_hours': 1.25, 'pm_2p5_last_24_hours': 1.25, 'pm_2p5_nowcast': > 1.2, 'pm_10p0': 3.3, 'pm_10p0_last_1_hour': 1.9, 'pm_10p0_last_3_hours': > 2.52, 'pm_10p0_last_24_hours': 2.52, 'pm_10p0_nowcast': 2.27, > 'last_report_time': 1601320120, 'pct_pm_data_last_1_hour': 100, > 'pct_pm_data_last_3_hours': 95, 'pct_pm_data_nowcast': 23, > 'pct_pm_data_last_24_hours': 11}]}, 'error': None} > Sep 28 20:08:41 raspberrypi weewx-weewx[4553] ERROR user.airlink: Could not > get concentrations from any source. > Sep 28 20:08:41 raspberrypi weewx-weewx[4553] ERROR user.airlink: Found no > fresh concentrations to insert. > Sep 28 20:08:43 raspberrypi weewx-weewx[4553] ERROR user.airlink: Found no > fresh concentrations to insert. > Sep 28 20:08:45 raspberrypi weewx-weewx[4553] ERROR user.airlink: Found no > fresh concentrations to insert. > Sep 28 20:08:46 raspberrypi weewx-weewx[4553] INFO user.airlink: Expected > data_structure_type of 6, found 5 > Phil > >> On Monday, September 28, 2020 at 7:45:35 PM UTC+1 [email protected] wrote: >> Did you edit weewx.conf and specify the correct host (which could be an IP >> address)? >> >> [AirLink] >> [[Sensor1]] >> enable = True >> hostname = airlink <<<< This needs to be a resolvable name or IP >> address >> port = 80 >> timeout = 2 >> >>>> On Sep 28, 2020, at 11:31 AM, [email protected] <[email protected]> >>>> wrote: >>>> >>> Ive loaded John's weewx-airlink-master.zip but get the following >> >>> Sep 28 13:02:57 raspberrypi weewx-weewx[25663] ERROR user.airlink: Could >>> not get concentrations from any source. >>> Sep 28 13:02:58 raspberrypi weewx-weewx[25663] ERROR user.airlink: Found no >>> fresh concentrations to insert. >>> Sep 28 13:03:00 raspberrypi weewx-weewx[25663] ERROR user.airlink: Found no >>> fresh concentrations to insert. >>> Sep 28 13:03:02 raspberrypi weewx-weewx[25663] ERROR user.airlink: Found no >>> fresh concentrations to insert. >>> Sep 28 13:03:02 raspberrypi weewx-weewx[25663] INFO user.airlink: >>> collect_data: Attempt to fetch from: airlink failed: >>> HTTPConnectionPool(host='airlink', port=80): Max retries exceeded with url: >>> /v1/current_conditions (Caused by >>> NewConnectionError('<urllib3.connection.HTTPConnection object at >>> 0xb1edef90>: Failed to establish a new connection: [Errno -2] Name or >>> service not known')). >>> The AirLink seems to be working OK on the Davis WeatherLink app >>> >>> Is there anything else I should have done >>> Thanks Phil >>>>> On Monday, September 28, 2020 at 4:10:59 AM UTC+1 [email protected] >>>>> wrote: >>>>> yes, john has already done the hard work. it’s just a case of wrapping >>>>> the AQI part differently (called from WXCalculate rather than ‘airlink’ >>>>> PMx.x collector) and positioning it as a process_service not data_service >>>>> - that’s what i meant by “pinching his code" >>>>> >>>>>>> On 28 Sep 2020, at 10:56 am, John Kline <[email protected]> wrote: >>>>>>> >>>>>>> Oh. So you already have a way to calculate AQI from the PM data? >>>>>> >>>>>> Yep. It’s there. >>>>>> >>>>>>>> On Sep 27, 2020, at 5:48 PM, Tom Keffer <[email protected]> wrote: >>>>>>>> >>>>>>> >>>>>>> Oh. So you already have a way to calculate AQI from the PM data? >>>>>> >>>>> >>>> >>> -- >>> 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 [email protected]. >> >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/7bb84d3a-b391-437a-acdb-315c84b40f5an%40googlegroups.com. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/d7c04d2d-b86b-4ad7-ab07-76023a98f42bn%40googlegroups.com. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/F7CE0749-5124-4385-9BCB-1EC9B1520B69%40johnkline.com.
