Jump to content

Purple Air on PG2


maxnorth

Recommended Posts

Posted

I've been running the Purple Air node server on my RPi for the last year or so, flawlessly.  PG version 2.2.1. About a week ago, it stopped connecting, with no change in config on my end. ("Connection issue: <Response [500]").  My understanding is that this is an issue on the Purple Air server end. If so, are others having the problem? (I've tried it with multiple sensors)

If not a Purple Air server issue, is there something else going on, with PG2 being deprecated?  I don't even see Purple Air listed as a PG2 node server anymore. 

Posted

Looks like Purple Air has discontinued the API that was being used by this node server.  From a recent forum post:

Quote

After a few years of grace period, we are now redirecting these two URLs (www.purpleair.com/json and www.purpleair.com/data.json ) to a server that will not respond.

Please contact us if you have any questions or need any help getting going on our new API, at https://api.purpleair.com .

That was dated May 26th which is roughly the same time mine stopped working.

Posted

Both the PG2 and PG3 node servers will need to be re-written to utilize the new API before they will work. Since PG2 is deprecated it's unlikely that will be fixed. At some point Bob may work on fixing the PG3 version, but he is doing about fifty different things at once, so it might take a bit of time.

Posted

Both versions use the same (now removed) api so neither should be working.   I've contacted Purple Air to try and get the information needed to use the new API, I'm waiting to hear back.  

Based on what I've read in the API documents, it may be a lot more difficult to use with PG2 and even for PG3 will require the main code for the node server to be re-written.    I won't know more until they actually respond.

  • Like 1
Posted

@maxnorth, there's an alternative solution to getting local air quality data into your ISY via a PG3 node server that doesn't rely on a cloud based API, for what it's worth.  The setup will cost you much more than the $5.00 license for the PG3 Purple Air, so it may be of no interest, but it's been working well here (actually, I bought this setup for the soil moisture sensors, and added this sensor later when I was choking on wildfire smoke).  I've found that I prefer a local measurement over one from across town, or even down the block -- there's too much variability in air quality.

The PG3 node server is ST-EcoWitt, and it takes two hardware devices to make it work:

https://www.ecowitt.com/shop/goodsDetail/107

https://www.ecowitt.com/shop/goodsDetail/58

The sensor is solar powered, so the only times I've ever had to recharge the batteries is when it's been buried in the snow for a couple of weeks.  I've found that the RF signal strength for all the EcoWitt devices to be very good (I have devices scattered all over the 1/2 acre).

Attached is a screenshot of what the data looks like in the ISY:

 

Screen Shot 2022-06-09 at 6.56.12 AM.png

  • Like 1
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.6k
×
×
  • Create New...