Hi John
The log is all clear and you can have a look at the demo page at  
http://sheringhamweather.ddns.net/airlink/index.html 
Thanks
Phil 

On Monday, September 28, 2020 at 11:05:17 PM UTC+1 [email protected] 
wrote:

> Thanks John Appreciate all your hard work
> Will let you know but it will be sometime tomorrow
> Cheers Phil
>
> On Monday, September 28, 2020 at 9:45:47 PM UTC+1 [email protected] 
> wrote:
>
>> [Apologies if this is received more than once.  I seem to be having an 
>> issue between the iPadOS mail client and gmail.]
>> 
>> OK, pull again and give it a try.  I now convert the old structure to the 
>> new.
>>
>> I’ve added a test with the data you provided, but that doesn’t take the 
>> exact path; so your feedback on whether it works would be appreciated.
>>
>> 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
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/7bb84d3a-b391-437a-acdb-315c84b40f5an%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> -- 
>> 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
>>  
>> <https://groups.google.com/d/msgid/weewx-user/d7c04d2d-b86b-4ad7-ab07-76023a98f42bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>

-- 
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/31538793-c0d0-4a0e-afbd-c6e83504dd1fn%40googlegroups.com.

Reply via email to