Weather Underground’s Next Frontier: Air Quality

I have added some more custom tags (max/min average etc) to the latest .zip update

With the Napa wildfires, I have to say that the Purple Air sensor was a good investment. The air quality around here has really sucked the last several days.

https://www.purpleair.com/map?&zoom=9&lat=37.63535527254023&lng=-122.14039448730466&clustersize=30&inc=317376|317379&orderby=L&latr=0.8417428274285896&lngr=2.197265625

Purpleair sensor installed up here in norway.
Thanks a lot to all people involved and to Brian for integrating this in weather display.

https://www.purpleair.com/map?&zoom=11&lat=62.353017178137534&lng=5.81874351882937&clustersize=30&orderby=L&latr=0.27942960720533705&lngr=1.295013427734375

Aren’t you glad you don’t live here?

https://www.purpleair.com/map?&zoom=12&lat=28.59584382915855&lng=77.19488693515619&clustersize=30&inc=317376|317379&orderby=L&latr=0.11665860240820791&lngr=0.274658203125

I have added more custom tags for use with your purple air sensor now to the latest .zip update
(see the tagslist.txt file)
i,e average monthly values

Could anyone help me find my sensor ID?
Sensor name on PurpleAir map: Pleasant Grove
Location NE Kansas

Thanks!

Just to be sure:

  • Pleasant Grove, Kansas
  • Lat: 38.864466
  • Lon: -95.26798

If those coordinates are right then the PurpleAir sensor ID should 4415

Is there a graph for the purple air (see attached) that I can add to my site? I do not see any files/gifs being created by WD.

https://www.purpleair.com/map?&zoom=15&selected=372331|372333&lat=43.099301700000005&lng=-93.60997041957398&clustersize=30&orderby=L&latr=0.027105227212864236&lngr=0.0823974609375


see in the setup,advanced/misc

Can you direct me to find the PurpleAir sensor ID and the file where the new tags for the PurpleAir is?

Here is my sensor: https://www.purpleair.com/map?&zoom=15&lat=43.0993496&lng=-93.61029459999997&clustersize=30&orderby=L&latr=0.028045270954208945&lngr=0.08166790008544922

Attached is my airquality.txt:


airquality.txt (820 Bytes)

Garner, Iowa “ID”:4874

New tags for testtags.txt are:

//Air Quality
//==========
$purpleair2_5 = '%purpleair2_5%'; 	 //Value of 2.5 micron particle measure from purple air sensor (see in WD under setup, advanced/misc)
$purpleair1_0 = '%purpleair1_0%'; 	 //Value of 1.0 micron particle measure from purple air sensor
$purpleair10_0 = '%purpleair10_0%'; 	 //Value of 10.0 micron particle measure from purple air sensor
$purpleairaqi = '%purpleairaqi%'; 	 //AQI (air quality index) value from purple air sensor
$purpleairaqidescription = '%purpleairaqidescription%  ';	 //AQI description (e.g Good, moderate)
$purpleair60minmean10_0 = '%60minmeanpurpleair10_0%'; 	 //Last 60 minutes average PM 10.0 value
$purpleair60minmean2_5 = '%60minmeanpurpleair2_5%'; 	 //Last 60 minutes average PM 2.5 value
$purpleair24hourmean10_0 = '%24hourmeanpurpleair10_0%'; 	 //Last 24 hours average PM 10.0 value
$purpleair24hourmean2_5 = '%24hourmeanpurpleair2_5%'; 	 //Last 24 hours average PM 2.5 value
$purpleair60minmin10_0 = '%60minminpurpleair10_0%'; 	 //Min value in last 60 minutes PM 10.0 value
$purpleair24hourmin10_0 = '%24hourminpurpleair10_0%'; 	 //Min value in last 24 hours PM 10.0 value
$purpleair60minmin2_5 = '%60minminpurpleair2_5%'; 	 //Min value in last 60 minutes PM 2.5 value
$purpleair24hourmin2_5 = '%24hourminpurpleair2_5%'; 	 //Min value in last 24 hours PM 2.5 value
$purpleair60minmax10_0 = '%60minmaxpurpleair10_0%'; 	 //Max value in last 60 minutes PM 10.0 value
$purpleair24hourmax10_0 = '%24hourmaxpurpleair10_0%'; 	 //Max value in last 24 hours PM 10.0 value
$purpleair60minmax2_5 = '%60minmaxpurpleair2_5%'; 	 //Max value in last 60 minutes PM 2.5 value
$purpleair24hourmax2_5 = '%24hourmaxpurpleair2_5%'; 	 //Max value in last 24 hours PM 2.5 value

New graphic of aqichart.gif (graph) and aqi.gif (gauge) also available.

Just curious… :oops:

I know that Weather Display produces those two data files: ‘airquality.txt’ and ‘airquality2.txt’.

Since March, when I purchased my Purple Air sensor (and before the facility was added/included into Weather Display), I have been extracting the data from my sensor using a PHP script that downloads (directly from the sensor) and processes the information.

What I am wondering is if the two data files produced by Weather Display (those mentioned above) are automatically uploaded and how often - it would really be interesting if the two data files were automatically produced and automatically uploaded at the same location and at the same frequency as the ‘clientraw.txt’ near-real-time data file.

uploaded to your web site?
they aren’t
but you could
via the general ftp upload

Under Setup, Advanced, PurpleAir TAB you can tick “Upload graph and dial images to web every 10 minutes”. Works for me :slight_smile:

The testtags.php additions are processed and uploaded at 5 minutes.

yup, you can get WD to create and upload the graph and gauge
but to get it to upload the ‘airquality.txt’ and ‘airquality2.txt’ you could do that via the general ftp

Thank you Ken and Brian.

I do not care very much for the graph nor the dial images…

I have setup Weather Display to upload both ‘airquality.txt’ and ‘airquality2.txt’ using the general FTP upload - it is unfortunate that those two files cannot be part of the near-real-time uploads such as ‘clientraw.txt’ without the need of an additional separate FTP upload.

instead
its fortunate WD has the flexibility to allow you to upload them

There’s 12 pages to this thread, but I only have a couple questions.

I’m now considering buying one of these sensors. Before I do, I just want to make sure that it works fully with WD, and does it show live data, or does it update every 10 mins or so? I think I’ve also seen a graph that can be produced, but could be wrong.

Thanks

You can check a graph here ( http://www.vremetolmin.si ) somewhere in the middle (the “AQI”). I don’t have the actual sensor but am producing the data from my home-made one. It is a 1-minute update I think.