Extension to read purpleAir data via json?

71 views
Skip to first unread message

loonsailor

unread,
Sep 23, 2020, 3:03:21 PM9/23/20
to weewx-user
I'd like to add air quality to my weewx data.  There is a purple air sensor very near to me, but it's not mine and I don't have lan access to it.  It does report to purpleair.com, and I can read the data from there in json format.  I thought I remembered seeing that somebody had done an extension to read from purple air.com, instead of accessing the sensor directly, but I can't find it now.  Does it exist, or was I imagining it?

vince

unread,
Sep 23, 2020, 4:06:40 PM9/23/20
to weewx-user
On Wednesday, September 23, 2020 at 12:03:21 PM UTC-7, loonsailor wrote:
I'd like to add air quality to my weewx data.  There is a purple air sensor very near to me, but it's not mine and I don't have lan access to it.  It does report to purpleair.com, and I can read the data from there in json format.  I thought I remembered seeing that somebody had done an extension to read from purple air.com, instead of accessing the sensor directly, but I can't find it now.  Does it exist, or was I imagining it?

I have an extension at https://github.com/vinceskahan/weewx-purpleair that you can probably tweak a little to do this.


loonsailor

unread,
Sep 24, 2020, 2:21:05 PM9/24/20
to weewx-user
Thanks, Vince.  I had a look at the extension and it was very helpful.  I've written a python program to get and parse the json for the station, but haven't turned it into a weewx extension, and don't know if / when I will.  I used to be a professional coder, but that was some decades ago.  The coding isn't a barrier for me - I haven't done much Python, but that's not such a biggie - but GitHub is totally new and mysterious!
Reply all
Reply to author
Forward
0 new messages