Page 1 of 1

My Davis AirLink *IS* Working

Posted: Thu 29 Oct 2020 10:21 am
by The Dalek Hunter
In another post I asked for help getting my Davis Airlink working.
As it was not showing up anywhere on the admin page or on the published website I thought was doing something wrong.

However looking at my logs I discovered it was being found so I decided to write an htm file with appropriate web tags and upload it via the additional web files setting.

Success!!

Now I am not a programmer and all my coding is done via "copy and paste" so no comments on how bad the page is - it was just to prove it works!

I assume at somer stage AQI will be added to the Cumulus page.

My website https://longsutton-weather.co.uk
And the cobbled together AQI is at https://longsutton-weather.co.uk/aqi.htm

Re: My Davis AirLink *IS* Working

Posted: Thu 29 Oct 2020 11:13 am
by freddie
Good job, well done!

Re: My Davis AirLink *IS* Working

Posted: Thu 29 Oct 2020 12:52 pm
by mcrossley
Well done. I'm on my phone at the mo, but the beteljuice has also put an AQI page together - you'll have to search the forum for it.

Re: My Davis AirLink *IS* Working

Posted: Fri 30 Oct 2020 6:42 pm
by PaulMy
Thanks Dalek,
I've borrowed... test at http://komokaweather.com/cumulusmxwll/airlink.htm
and in the process have learned another lesson.

I wasn't sure if the AirLink was actually working as air quality is mostly all 0.0 and it wouldn't work in weatherlink.com Embed preview, so called Davis support again.
Excellent service... first thing they asked after I explained my issue is "do I have it set as Indoor?" and I answered "yes". They said with Indoor setting it is not Shared (visible) on weatherlink.com. I changed the AirLink setting to Outdoor and now it does appear. I don't quite get the temperature and humidity displayed in the embeddable link https://www.weatherlink.com/embeddableP ... 23/airLink It appears to be the indoor temp and humidity, and possibly showing that as the AirLink is actually inside, but then where does the 1.1°C Feels like come from?

I also had to change the settings in CumulusMX from Indoor to Outdoor so CMX matched the webtags used in the test script.

Now to search for the betelhuice's script...

Enjoy,
Paul

Re: My Davis AirLink *IS* Working

Posted: Fri 30 Oct 2020 6:52 pm
by Mapantz
PaulMy wrote: Fri 30 Oct 2020 6:42 pm I don't quite get the temperature and humidity displayed in the embeddable link https://www.weatherlink.com/embeddableP ... 23/airLink It appears to be the indoor temp and humidity, and possibly showing that as the AirLink is actually inside, but then where does the 1.1°C Feels like come from?

Paul
AirLink has a temperature/humidity sensor built in to it. Your readings, however, look odd.

Have you got your AirLink indoors or outdoors?

Here's mine btw: https://www.weatherlink.com/embeddableP ... 54/airLink

My AirLink is outdoors.

Re: My Davis AirLink *IS* Working

Posted: Fri 30 Oct 2020 7:32 pm
by PaulMy
Thanks Mapantz,
The AirLink was inside while I was setting it up and learning about it. I now moved it outside and the temp/hum are changing rapidly downwards as it is close to freezing here now - and actually getting a bit of a snowsquall right now www.komokaweather.com/pictures/sebec/image.jpg

Will be watching that AirLink link for Feels like and see where it goes. WL.com doesn't provide feels like so can't check with that but my CumulusMXwll shows 0.5°C feels like.

Enjoy,
Paul

Re: My Davis AirLink *IS* Working

Posted: Sat 31 Oct 2020 8:32 am
by The Dalek Hunter
I have now managed to edit the indexT.htm file so that there is now a link to my Air Quality from the main age - I added it to the now::gauges::today etc line

Seems to work!!

https://longsutton-weather.co.uk

Re: My Davis AirLink *IS* Working

Posted: Sat 31 Oct 2020 11:38 am
by beteljuice
Interesting ... Davis say you have UK Air Quality of 1.4 - There is no such thing !
Yes the UK index has 10 bands, but they are neither linear nor exponential.

Here are the DEFRA definitions of the bands.

As used by this

Re: My Davis AirLink *IS* Working

Posted: Sat 31 Oct 2020 12:06 pm
by The Dalek Hunter
I am new to all this so please bear with me :)

Here is the actual readout from the AirLink form WeatherLink

https://www.weatherlink.com/embeddableP ... 34/summary

And this is where I took my 1-10 from

https://uk-air.defra.gov.uk/air-pollution/daqi

Is my AQI page wrong?

Thanks

Re: My Davis AirLink *IS* Working

Posted: Sat 31 Oct 2020 2:40 pm
by beteljuice
Hmm again .....

The WeatherLink data does indeed give an average AQI value rather than the average density (which is what the sensor json file reports)
Davis :groan:

On the assumption they have the correct 'trigger' values I would suggest rounding down the figure reported. ;)

Re: My Davis AirLink *IS* Working

Posted: Fri 06 Nov 2020 1:09 am
by Phil23
Mine's Only sort of working.....

I can see it on Weatherlink, but not in MX.

A little unclear on the settings.
I configured it as standalone outdoor & added what I though correct in the extra sensor settings under settings, but nothing shows up in the data.

Thought MX may need a restart, but that resulted in a crash,

Diags here...

API data missing? I entered that under the Airlink settings.

Phil.

Code: Select all

2020-11-06 11:50:11.715  ========================== Cumulus MX starting ==========================
2020-11-06 11:50:11.715 Command line: "C:\CumulusMX\CumulusMX.exe"  -debug 
2020-11-06 11:50:11.715 Cumulus MX v.3.9.1 build 3096
2020-11-06 11:50:11.731 Platform: Win32NT
2020-11-06 11:50:11.731 OS version: Microsoft Windows NT 6.2.9200.0
2020-11-06 11:50:11.762 Current culture: English (Australia)
2020-11-06 11:50:11.777 Directory separator=[\] Decimal separator=[.] List separator=[,]
2020-11-06 11:50:11.777 Date separator=[/] Time separator=[:]
2020-11-06 11:50:11.777 Standard time zone name:   AUS Eastern Standard Time
2020-11-06 11:50:11.777 Daylight saving time name: AUS Eastern Summer Time
2020-11-06 11:50:11.777 Daylight saving time? True
2020-11-06 11:50:11.777 6/11/2020 11:50:11 AM
2020-11-06 11:50:11.824 Reading Cumulus.ini file
2020-11-06 11:50:11.824 ASM=10 AST=00:10:00
2020-11-06 11:50:11.824 Cumulus start date: 29/09/2016
2020-11-06 11:50:11.840 Data path = data\
2020-11-06 11:50:11.996 Creating backup folder backup\20201106115011\
2020-11-06 11:50:12.027 Created backup folder backup\20201106115011\
2020-11-06 11:50:12.027 Debug logging is enabled
2020-11-06 11:50:12.027 Data logging is enabled
2020-11-06 11:50:12.027 FTP logging is disabled
2020-11-06 11:50:12.027 Spike logging is disabled
2020-11-06 11:50:12.027 Logging interval = 10 mins
2020-11-06 11:50:12.027 Real time interval = 5 secs
2020-11-06 11:50:12.027 NoSensorCheck = 0
2020-11-06 11:50:12.090 Calculating sunrise and sunset times
2020-11-06 11:50:12.090 Sunrise: 05:57:24
2020-11-06 11:50:12.090 Sunset : 19:21:37
2020-11-06 11:50:12.090 Tomorrow sunrise: 05:56:43
2020-11-06 11:50:12.090 Tomorrow sunset : 19:22:26
2020-11-06 11:50:12.090 Tomorrow length diff: 90
2020-11-06 11:50:12.121 Generating new Moon image
2020-11-06 11:50:12.137 Station type: Davis Vantage Pro2
2020-11-06 11:50:12.137 WindUnit=km/h RainUnit=mm TempUnit=°C PressureUnit=hPa
2020-11-06 11:50:12.137 YTDRain=542.800 Year=2016
2020-11-06 11:50:12.137 RainDayThreshold=-1.000
2020-11-06 11:50:12.137 Offsets and Multipliers:
2020-11-06 11:50:12.137 PO=0.000 TO=0.000 HO=0 WDO=0 ITO=0.000 SO=0.000 UVO=0.000
2020-11-06 11:50:12.152 PM=1.000 WSM=1.000 WGM=1.000 TM=1.000 TM2=0.000 HM=1.015 HM2=0.000 RM=1.000 SM=1.000 UVM=1.000
2020-11-06 11:50:12.152 Spike removal:
2020-11-06 11:50:12.152 TD=20.000 GD=10.000 WD=10.000 HD=999.000 PD=999.000 MR=999.000 MH=999.000
2020-11-06 11:50:12.152 Limits:
2020-11-06 11:50:12.152 TH=60.0 TL=-60.0 DH=40.0 PH=1090.00 PL=870.00 GH=90.000
2020-11-06 11:50:12.152 Cumulus Starting
2020-11-06 11:50:12.152 Lock: Cumulus waiting for the lock
2020-11-06 11:50:12.152 Lock: Cumulus has lock
2020-11-06 11:50:12.152 Creating extra sensors
2020-11-06 11:50:12.168 Last update time from today.ini: 6/11/2020 11:40:00 AM
2020-11-06 11:50:12.168 Read today file: Date = 6/11/2020, LastUpdateTime = 6/11/2020 11:40:00 AM, Month = 11
2020-11-06 11:50:12.168 ReadTodayfile: set notraininit false
2020-11-06 11:50:12.184 C:\CumulusMX\data\alltime.ini
2020-11-06 11:50:12.184 Alltime.ini file read
2020-11-06 11:50:12.199 MonthlyAlltime.ini file read
2020-11-06 11:50:12.199 Month.ini file read
2020-11-06 11:50:12.199 Year.ini file read
2020-11-06 11:50:12.215 Finding raintoday from logfile data\Nov20log.txt
2020-11-06 11:50:12.215 Expecting listsep=, decimal=.
2020-11-06 11:50:12.231 Midnight rain found in the following entry:
2020-11-06 11:50:12.231 06/11/20,00:00,12.0,55,3.2,8.0,16.1,230,0.0,0.0,1014.90,626.0,23.6,40,11.3,12.0,12.0,0.0,0,5.82,1044.55,9.0,0,0.0,212,0.0,0.0,11.1,10.7
2020-11-06 11:50:12.231 Midnight rain found, setting midnight rain count = 626
2020-11-06 11:50:12.231 Checking rain counter = 626
2020-11-06 11:50:12.231 Rain counter set to = 626
2020-11-06 11:50:12.231 Getting rain totals, rain season start = 1
2020-11-06 11:50:12.231 Today = 06/11/20
2020-11-06 11:50:12.277 Rainthismonth from dayfile.txt: 0
2020-11-06 11:50:12.277 Rainthisyear from dayfile.txt: 626.6
2020-11-06 11:50:12.277 Extra Sensor = Davis AirLink (Outdoor) - standalone=True
2020-11-06 11:50:12.309 Attempting to find AirLink via zero-config...
2020-11-06 11:50:12.371 This Cumulus MX instance is running the latest version
2020-11-06 11:50:12.512 ZeroConf Service: + 'airlink-1001B0' on Ethernet
2020-11-06 11:50:12.512 	Host: airlink-1001B0 (192.168.59.236)
2020-11-06 11:50:12.512 AirLink found, reporting its IP address as: 192.168.59.236
2020-11-06 11:50:13.324 GetAvailableSensors: WeatherLink API data is missing in the configuration, aborting!
2020-11-06 11:50:13.340 AirLinkHealth: Get WL.com Historic Data
!!! Unhandled Exception !!!
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at CumulusMX.DavisAirLink.GetWlHistoricHealth()
   at CumulusMX.DavisAirLink..ctor(Cumulus cumulus, Boolean Indoor)
   at CumulusMX.Cumulus..ctor(Int32 HTTPport, Boolean DebugEnabled, String startParms)
   at CumulusMX.Program.RunAsAConsole(Int32 port, Boolean debug)
   at CumulusMX.Program.Main(String[] args)

Re: My Davis AirLink *IS* Working

Posted: Fri 06 Nov 2020 1:21 am
by Mapantz
You don't need to fill in any API info if you don't have a subscription.

Re: My Davis AirLink *IS* Working

Posted: Fri 06 Nov 2020 2:30 am
by Phil23
Mapantz wrote: Fri 06 Nov 2020 1:21 am You don't need to fill in any API info...
So Am I correct in thinking all I need to do is :-

Enable Outdoor AirLink,
Enter it's Local IP,
Enter the Station ID; which I presume is shown on WeatherLink as Device ID, (and also appears to be the AirLinks MAC address)?

Thanks

Phil.

Edit:- Working Now! Visible under Extra Sensors.

Now need to get something up on my site.

Cheers.