Author Topic: Purple Air Sensor ID for Saratoga Wx Script?  (Read 1708 times)

0 Members and 1 Guest are viewing this topic.

Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 180
    • Willowsford Farm Weather
Purple Air Sensor ID for Saratoga Wx Script?
« on: June 15, 2023, 07:35:30 AM »
Wondering where to find the sensor ID for my PurpleAir Flex Air Quality Monitor for Ken's purpleair-inc.php script.

My sensor is set up and is displayed on the PurpleAir map (https://map.purpleair.com/1/mAQI/a10/p604800/cC0#10.62/38.9495/-77.5567).

I created a set of PurpleAir API keys here: https://develop.purpleair.com. (Previous topics indicated that you needed to email PurpleAir to get API keys, but you now get them directly).

After getting my API keys, I entered the read key into Ken's purpleair-inc.php script. However, I don't know where to find my sensor ID. Can anyone advise me on how to find it?

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #1 on: June 15, 2023, 09:03:15 AM »
Actually click on your station on the map.  Look at the URL link.  You will see a "select" statement in the link.  That 6 digit number should be your SensorID.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #2 on: June 15, 2023, 12:58:28 PM »
Looks like 183111 is your ID, if I clicked on the right station.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 180
    • Willowsford Farm Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #3 on: June 15, 2023, 04:31:22 PM »
Thanks and yes, you clicked the correct station.

I would've expected that PurpleAir would have included the station id in their registration verification email they sent me. I would not have figured out that it was embedded in the URL.

Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 180
    • Willowsford Farm Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #4 on: June 15, 2023, 04:44:43 PM »
Unfortunately, https://novawx.dscloud.me/wxpurpleair.php is still returning "No data from Purpleair - check Sensor ID/API key" even though I entered the sensor ID and API key in the purpleair-inc.php file. I must be doing something wrong. I'll have to play with it over the weekend.

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #5 on: June 15, 2023, 07:48:50 PM »
Hey Bill,
  I had to go in PurpleAir API and "TOP-OUT" my account.  I still have to go in the PA API and choose which data to call, in order to reduce the data calls.  Will work on that this weekend....

Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 180
    • Willowsford Farm Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #6 on: June 15, 2023, 10:35:16 PM »
Hey Billy,

Thanks for the reply. So, we have to pay for using the API? It shows Points: 1,000,000 for my sensor's API. If I click on TopUp Account, it looks like I would buy 1,000,000 points for $10, but why would I do that if I currently have 1,000,000 points? I don't get it...

Bill

Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 180
    • Willowsford Farm Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #7 on: June 16, 2023, 08:42:18 AM »
Thanks to Billy (@scudwatcher) for providing me with the information needed to "activate" my API keys:

Need to move points from "Organization" to your "Project." On https://develop.purpleair.com/ home, select the "Projects" tab. Next to the project you want to add points to, select the "Update Project" button. Near the top of this pop-up is your organization's total number of points. Below that, you can enter the number of points to give to this project. Once that is updated, you can make API calls with your keys.

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #8 on: June 17, 2023, 07:08:30 AM »
Hey Bill,
  Sorry for the delayed response.  Your Purple Air page looks good!  I added my Davis AIRLINK data to my page at: https://csraweather.org/wxpurpleair.php.  You can also add the VOC data from your flex sensor on your page as well. Glad I can help!  If any of you can afford the Purple Air Flex sensor, notify @92merc, @weatherdoc or myself @scudwatcher to help you get your sensor up and running.  Have a great weekend!
« Last Edit: June 17, 2023, 07:10:38 AM by scudwatcher »

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #9 on: June 17, 2023, 11:40:20 AM »
How were you able to add VOC?
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #10 on: June 17, 2023, 12:09:27 PM »
Dale, my VOC sensor data is a widget I placed on my wxpurpleair.php page.  If you have the PA-II-SD-FLEX sensor, you should be able to get the widget download link from the PURPLE AIR map, by changing to EXPERIMENTAL VOC.  Let me know if this helps!

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #11 on: June 17, 2023, 12:12:53 PM »
Hey Bill @weatherdoc….do you have the PA-II-SD-FLEX PURPLE AIR sensor?  Read my previous message to 92merc about broadcasting your VOC data….email me if you need specific info….

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #12 on: June 17, 2023, 12:29:01 PM »
I have just a PA-II-SD.  No flex.  Looks like I have no VOC sensing.

https://map.purpleair.com/1/mAQI/a10/p604800/cC0?select=145458#9.64/46.7246/-100.7306
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Vasco

  • Forecaster
  • *****
  • Posts: 334
    • PWS
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #13 on: June 17, 2023, 12:30:35 PM »
When I last looked at the Bosch BME680 datasheet I discovered that this chip produces an arbitrary, Bosch-defined IAQ (Indoor Air Quality) for VOCs. See "Suggested action" column below.

Presumably that's why PurpleAir call their results Experimental. . .
Oregon Scientific WMR200 + Weather Display in Windows 10

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #14 on: June 17, 2023, 12:50:09 PM »
Well Vasco, that’s really confusing…lol…My sensor is mounted outdoors in my home-made cotton region instrument shelter….so, to inform my viewers, should I offer a disclaimer to avoid confusion; as in “EXPERIMENTAL IAQ”?  Thanks for the heads-up!

Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 180
    • Willowsford Farm Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #15 on: June 17, 2023, 12:55:05 PM »
Hi Billy - Yes, I have the PA-II-SD-FLEX PURPLE AIR sensor. I haven't downloaded the widget yet.

Offline Vasco

  • Forecaster
  • *****
  • Posts: 334
    • PWS
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #16 on: June 17, 2023, 12:55:47 PM »
so, to inform my viewers, should I offer a disclaimer to avoid confusion; as in “EXPERIMENTAL IAQ”? 

I think you're OK, your widget already says that  :grin:
Oregon Scientific WMR200 + Weather Display in Windows 10

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #17 on: June 17, 2023, 01:26:15 PM »
Thanks, Vasco!  May I post your “suggested action” image to my wxpurpleair.php page for clarification?  Thanks for your help!

Offline Vasco

  • Forecaster
  • *****
  • Posts: 334
    • PWS
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #18 on: June 17, 2023, 01:46:45 PM »
May I post your “suggested action” image to my wxpurpleair.php page for clarification?

I pinched it straight from the datasheet at https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf, so it's not my call  :-)

And I think in "Impact" column, for IAQ 201-250, "Exposition" should read "Exposure".

Basically, they calibrate the thing using 0.5 and 15 ppm VOC and arbitrarily allocate IAQs of 25 and 250, respectively.

It would be good for watching paint dry  :grin:

P.S. I notice that the latest offering from PurpleAir uses a BME688 chip, but I doubt if there's much difference - I haven't checked.
Oregon Scientific WMR200 + Weather Display in Windows 10

Offline Vasco

  • Forecaster
  • *****
  • Posts: 334
    • PWS
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #19 on: June 17, 2023, 02:55:34 PM »
Just a thought. . .

My sensor is mounted outdoors in my home-made cotton region instrument shelter

. . . you're not planning on painting it any time soon, are you  :grin:

Oregon Scientific WMR200 + Weather Display in Windows 10

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Purple Air Sensor ID for Saratoga Wx Script?
« Reply #20 on: June 17, 2023, 03:12:33 PM »
LOL!  No, actually, I painted it with "KILTZ" last year 2022.  Needs to be pressure washed soon.  I might relocate my PA sensor under my porch and compare readings....

 

anything