Weather Station Hardware > Air Quality Sensors

Heads-up: PurpleAir JSON query now requires an API key... grrrrr.

<< < (2/6) > >>

92merc:
For the PHP script, I had the two sensorida and sensoridb.  Do I use the a value for Weather Display sensor number?

I got a read key, so I'm part way there I think.

saratogaWX:
I've reworked the purpleair-inc.php script to use the new API.  Seems to be working on my page now.

They were fairly fast in providing an API key, but stunningly, the process was via email...  The FAQ on their site needs to be changed now that the old method is turned off.

waiukuweather:
re WD, it should still be graphing OK
what shows in file

airqualityapi.txt

also though WD can get data via local IP (if your purple air sensor is connected to your LAN)
in the file airquality.txt
is there the data
pm2.5_aqi":
and if so, is that giving the correct aqi value

92merc:
In the old script, there was sensorida and sensoridb.  Are these the same for the new script?  Or where do I find it?

saratogaWX:
Yes, the sensorids haven't changed with the new API.  Mine was 4299,4300 and remains that for the new API.

The API returns stats, stats_a, stats_b now so you only have to query the primary (a) sensor to get the (b) sensor data too.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version