Weather Station Hardware > Air Quality Sensors

Make your own Purpleair

<< < (3/9) > >>

blacklistedcard:
Should get my unit today.  They are back in stock. Is everyone just using the hackair scripts/code?

blacklistedcard:
I got my parts.  Let's see if I can get it up and running.

azchrisf:
Should be pretty straightforward. Good luck and let us know how it goes!

Sent from my Pixel using Tapatalk

blacklistedcard:
I got it working.   I had to change the Wemos  example to get it running with the Adafruit ESP8266.  I still have to figure why my DHT22 sensor is not working, but itís running live right now. 

blacklistedcard:
I got everything going with HackAir.   The Adafruit HUZZAH ESP8266, Adafruit DHT22 and the Plantower PMS5003 with the breakout board.
I like the Android application.....

Here is the output form the serial monitor....

*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Connection result:
*WM: 0
*WM: SET AP STA
*WM:
*WM: Configuring access point...
*WM: Adafruit-HUZZAH-ESP8266
*WM: AP IP address:
*WM: 192.168.4.1
*WM: HTTP server started
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Scan done
*WM: MY-NETWORK
*WM: -59
*WM: HP-Print-31-Deskjet 2540 series
*WM: -90
*WM: BELL900
*WM: -90
*WM: Sent config page
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: WiFi save
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Connection result:
*WM: 3
The Adafruit HUZZAH ESP8266 Air Quality Sensor is connected to the 2.4ghz wireless network!!!
The Adafruit HUZZAH ESP8266 Air Quality Sensor local IP address is: 192.168.1.249
The Adafruit DHT22 sensor humidity reading is: 16.40%
The Adafruit HUZZAH ESP8266 Air Quality Sensor has connected to the HackAir server successfully!!!
{"reading":{"PM2.5_AirPollutantValue":"2.00","PM10_AirPollutantValue":"2.00"},"battery":"6.90","tamper":"0","error":"0"}
HTTP/1.1 201 Created
Server: nginx/1.13.0
Date: Sun, 25 Mar 2018 22:54:38 GMT
Content-Type: application/json
Content-Length: 1190
Connection: close
Vary: Authorization
X-Powered-By: PHP/5.6.30
Cache-Control: private, must-revalidate
ETag: "03c55ce4c668e93389d5b739907b65f30d67d994"
Strict-Transport-Security: max-age=31536000

{"code":201,"status":"success","count":2,"resources":[{"pollutant_q":{"name":"PM2.5_AirPollutantValue","value":"2.00","unit":"mg"},"pollutant_i":{"name":"PM2.5_AirPollutantIndex","index":"perfect"},"city":"","loc":{"type":"Point","coordinates":[-XX.184753894806,XX.761821406998]},"datetime":{"$date":{"$numberLong":"1522018478000"}},"date_str":"2018-03-25T22:54:38.000Z","source_type":"sensors_arduino","source_info":{"user":{"id":1189,"username":"ME"},"sensor":{"id":467,"battery":6,"tamper":0,"error":0}},"updated_at":"2018-03-25 22:54:38","created_at":"2018-03-25 22:54:38","_id":"5ab828ae2f702f036a4ebfca"},{"pollutant_q":{"name":"PM10_AirPollutantValue","value":"2.00","unit":"mg"},"pollutant_i":{"name":"PM10_AirPollutantIndex","index":"perfect"},"city":"","loc":{"type":"Point","coordinates":[-XX.184753894806,XX.761821406998]},"datetime":{"$date":{"$numberLong":"1522018478000"}},"date_str":"2018-03-25T22:54:38.000Z","source_type":"sensors_arduino","source_info":{"user":{"id":1189,"username":"ME"},"sensor":{"id":467,"battery":6,"tamper":0,"error":0}},"updated_at":"2018-03-25 22:54:38","created_at":"2018-03-25 22:54:38","_id":"5ab828ae2f702f036a4ebfcb"}],"message":null}
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 57425
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 67425
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 77426
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 87426
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 97426
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 107426
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 117426
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 127426
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 137426
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 147427
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 157427
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 167427
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 177427
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 187427
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 197427
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 207427
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 217428
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 227428
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 237428
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 247428
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 257428
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 267428
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 277428
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 287431
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 297431
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 307431
The Adafruit DHT22 sensor humidity reading is: 16.50%
The Adafruit HUZZAH ESP8266 Air Quality Sensor has connected to the HackAir server successfully!!!
{"reading":{"PM2.5_AirPollutantValue":"2.00","PM10_AirPollutantValue":"2.00"},"battery":"6.94","tamper":"0","error":"0"}
HTTP/1.1 201 Created
Server: nginx/1.13.0
Date: Sun, 25 Mar 2018 22:59:02 GMT
Content-Type: application/json
Content-Length: 1190
Connection: close
Vary: Authorization
X-Powered-By: PHP/5.6.30
Cache-Control: private, must-revalidate
ETag: "b52165342ca7e2d51d8e44e567e2121031fd80ce"
Strict-Transport-Security: max-age=31536000

{"code":201,"status":"success","count":2,"resources":[{"pollutant_q":{"name":"PM2.5_AirPollutantValue","value":"2.00","unit":"mg"},"pollutant_i":{"name":"PM2.5_AirPollutantIndex","index":"perfect"},"city":"","loc":{"type":"Point","coordinates":[-XX.184753894806,XX.761821406998]},"datetime":{"$date":{"$numberLong":"1522018742000"}},"date_str":"2018-03-25T22:59:02.000Z","source_type":"sensors_arduino","source_info":{"user":{"id":1189,"username":"ME"},"sensor":{"id":467,"battery":6,"tamper":0,"error":0}},"updated_at":"2018-03-25 22:59:02","created_at":"2018-03-25 22:59:02","_id":"5ab829b62f702f7f696d0f8c"},{"pollutant_q":{"name":"PM10_AirPollutantValue","value":"2.00","unit":"mg"},"pollutant_i":{"name":"PM10_AirPollutantIndex","index":"perfect"},"city":"","loc":{"type":"Point","coordinates":[-XX.184753894806,XX.761821406998]},"datetime":{"$date":{"$numberLong":"1522018742000"}},"date_str":"2018-03-25T22:59:02.000Z","source_type":"sensors_arduino","source_info":{"user":{"id":1189,"username":"ME"},"sensor":{"id":467,"battery":6,"tamper":0,"error":0}},"updated_at":"2018-03-25 22:59:02","created_at":"2018-03-25 22:59:02","_id":"5ab829b62f702f7f696d0f8d"}],"message":null}
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 321293
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 331293
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 341294
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 351294
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 361294
The Plantower PMS5003 and Adafruit DHT22 sensors are turned off and sleeping: 371294




Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version