Skip to content

jimbob666/aqi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPI Air Quality Index (AQI) Project

This is based on the below project by Stephan from Open School Solutions.
https://openschoolsolutions.org/measure-particulate-matter-with-a-raspberry-pi/

Below are some additional features not included in the above project.

1. Remote JSON File
Copies .json files to GitHub page after each run. This allows viewing of the web UI from anywhere as well as a bookmarkable page.

2. Google Doc Support
Each time the script runs it logs the results to a Google sheet. This allows you to chart over time how good or bad the air quality is. Also allows you to add notes to groups or runs like (Ran from person X's house)

3. IFTTT Support
If the AQI reaches a certain threshold it send a WebHook event to IFFF to do things like turn your Nest Fan on or maybe a WebMo plug on to turn on (Or off) a Hepa Filter.

4. Volatile Memory Support (aka Ram disk)
Helps if you are doing things like routinely writing .json file and updating or erasing it, it's a good idea to use tmpfs in RAM.

5. External & Internal IP
If going to run in different locations having the internal or external IP can be useful to help geo locate where the reading was taken or based on a certain IP or location to do something different. For example if running from home then IFTTT will trigger Nest fan where if elsewhere you may not want this.

TIP: If connecting to the RPI and you don't know the IP you can SSH, VNC, or http to it by its host name like below (assuming you are on the same network)
ssh [email protected]. or https://rpizw.local./aqi/index.html




My Parts List
In my case I only had to buy the below 3 items and because I already had lying around a 16gig mem card, USB power cord, USB battery, and for setup only micro HDMI and keyboard/mouse

$5 $10 RPI Zero W
https://www.microcenter.com/product/486575/raspberry-pi-zero-w

$1 USB Female to Micro USB (Needed for the Air sensor USB to plug into the RPI Zero W)
https://www.amazon.com/gp/product/B071GTTW42/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1

$26 Air Sensor (Laser PM Sensor SDS011)
https://www.amazon.com/s?k=Laser+PM+Sensor+SDS011

Optional Parts
$20 IFTT Smart Plug (Like a WeMo annd must support IFTT to trigger turning on something like a hepa filter)
https://www.amazon.com/Wemo-Smart-F7C063-RM2-Certified-Refurbished/dp/B079XWTJNH/ref=sr_1_6?s=lamps-light

$200 Nest Thermostat (Also to trigger the house fan to help clean the air)
https://www.amazon.com/Nest-T3007ES-Thermostat-Temperature-Generation/dp/B0131RG6VK/ref=sr_1_4?s=hi&ie=UTF8

$16 Box Fan (Also to trigger to help clean the air)
https://www.amazon.com/Lasko-3733-20-Fan-Box/dp/B00002ND67/ref=sr_1_6?s=hi&ie=UTF8

$51 Box if 6 Air Filters 20x20x1 MERV 13 (Tape to the box fan)
https://www.amazon.com/gp/product/B01HTL3W02/ref=oh_aui_search_detailpage?ie=UTF8&psc=1


Images
RPI Zero + Air Sensor Setup (Optional standard USB battery)

Google Sheet Chart Example

WeMo Smart Plug

Optional Hepa Box Fan