Author Topic: personal air pollution sensor  (Read 3010 times)

0 Members and 1 Guest are viewing this topic.

Online azchrisf

  • Cobra Weather Dominator Operator
  • Contributor
  • ***
  • Posts: 129
    • Copperwood WX
Re: personal air pollution sensor
« Reply #50 on: December 29, 2017, 01:14:08 PM »
Is it possible to get any data from the unit itself?

Enter the IP of the unit on your network, it has a webpage.

Online Toxic

  • Senior Contributor
  • ****
  • Posts: 162
  • #conligwx
    • conligwx.org
Re: personal air pollution sensor
« Reply #51 on: December 29, 2017, 01:24:08 PM »
Just curious I don't own one as yet. Are you able to SSH into it?
Regards Simon


Offline R_o_B

  • WxElement panel
  • Member
  • *****
  • Posts: 35
    • Tzouhalem-Maple Bay Weather
Re: personal air pollution sensor
« Reply #52 on: December 30, 2017, 05:31:08 AM »
Is it possible to get any data from the unit itself?
Yes it is possible - as long as you know the IP address of the sensor. Unfortunately, locally, only the data from one channel is available (I have not found a way to access the second channel locally, even after writing many unanswered messages to Adrionics Llc for assistance).

For example, if the PurpleAir sensor local IP address is '192.168.1.15', then, (using PHP) a cURL download or a 'file_get_contents' at 'http://192.168.1.15/json' will produce a JSON file (that JSON file should be saved to disk). The data from that JSON file can then be extracted using the 'json_decode()' function - the data will be in an array.

The values in the array are 'particulate matter' numbers - the useful numbers are those found at 'pm2_5_atm' (2.5 ug/m3) and at 'pm10_0_atm' (10.0 ug/m3).

Then, those numbers have to be processed in order to calculate the air quality index. More information on how the air quality index is calculated can be found on the Wikipedia Air quality index page.
R_o_B
---
eMail: weather@tzweather.org

Online Toxic

  • Senior Contributor
  • ****
  • Posts: 162
  • #conligwx
    • conligwx.org
Re: personal air pollution sensor
« Reply #53 on: December 30, 2017, 05:54:53 AM »
Is it possible to get any data from the unit itself?
Yes it is possible - as long as you know the IP address of the sensor. Unfortunately, locally, only the data from one channel is available (I have not found a way to access the second channel locally, even after writing many unanswered messages to Adrionics Llc for assistance).

For example, if the PurpleAir sensor local IP address is '192.168.1.15', then, (using PHP) a cURL download or a 'file_get_contents' at 'http://192.168.1.15/json' will produce a JSON file (that JSON file should be saved to disk). The data from that JSON file can then be extracted using the 'json_decode()' function - the data will be in an array.

The values in the array are 'particulate matter' numbers - the useful numbers are those found at 'pm2_5_atm' (2.5 ug/m3) and at 'pm10_0_atm' (10.0 ug/m3).

Then, those numbers have to be processed in order to calculate the air quality index. More information on how the air quality index is calculated can be found on the Wikipedia Air quality index page.
Thanks for the info

Sent from my ONEPLUS A3003 using Tapatalk

Regards Simon


Online azchrisf

  • Cobra Weather Dominator Operator
  • Contributor
  • ***
  • Posts: 129
    • Copperwood WX
Re: personal air pollution sensor
« Reply #54 on: December 30, 2017, 11:09:54 AM »
I finished the script. I've moved it to it's own thread here:
https://www.wxforum.net/index.php?topic=33482.0

Offline mmorris

  • Forecaster
  • *****
  • Posts: 731
  • Hope your day is full of sunshine
    • Weather and Racin
Re: personal air pollution sensor
« Reply #55 on: January 11, 2018, 07:04:08 AM »
Unbelievable I'm still waiting to receive my PurpleAir any one else waiting?
>>Miles<<  By from Portage Lakes, OH.
Been using VWS since 1996 Ver# 14.01P43
Wireless Vantage Pro2Plus Serial Data Logger, Anemo Tran Kit
Win XP, Firefox, WXSIM, Cumulus, NexStorm, Yawcam, VVP, BadBlue Web server, Quake Catcher Net
Follow me on twitter
Vietnam era Veteran USAF bb loader
Quadruple Bypass survivor

Online azchrisf

  • Cobra Weather Dominator Operator
  • Contributor
  • ***
  • Posts: 129
    • Copperwood WX
Re: personal air pollution sensor
« Reply #56 on: January 11, 2018, 07:20:55 AM »
Yes me too, I emailed them and they are still blaming power supplies.

Online Toxic

  • Senior Contributor
  • ****
  • Posts: 162
  • #conligwx
    • conligwx.org
Re: personal air pollution sensor
« Reply #57 on: January 11, 2018, 07:51:07 AM »
Yes me too, I emailed them and they are still blaming power supplies.

I was told 3 days ago the issue was a newer sensor on channel A was not working with older firmware and they had to write new firmware for it. I was told they were close to finishing this and would hopefully ship by the end of the week.
Regards Simon


Online Toxic

  • Senior Contributor
  • ****
  • Posts: 162
  • #conligwx
    • conligwx.org
Re: personal air pollution sensor
« Reply #58 on: January 11, 2018, 02:57:27 PM »
We now have a new forum for Air Quality Sensors!

Thanks Ken!

Sent from my ONEPLUS A5010 using Tapatalk

Regards Simon


Online Toxic

  • Senior Contributor
  • ****
  • Posts: 162
  • #conligwx
    • conligwx.org
Re: personal air pollution sensor
« Reply #59 on: January 12, 2018, 04:05:48 PM »
Unbelievable I'm still waiting to receive my PurpleAir any one else waiting?

Yes me too, I emailed them and they are still blaming power supplies.

just got my Email saying it was shipped today!
Regards Simon