An air quality monitoring service with a Raspberry Pi and a SDS011 sensor.
Find a file
Richard Akerman 75b5109cf3
Update index.html (#17)
Remove hard-coded URL (hard-coded IP address).
Fixes an issue where the web server crashes shortly after launch.
2023-09-30 21:31:16 -04:00
scripts init 2021-07-01 00:39:22 -04:00
src Update index.html (#17) 2023-09-30 21:31:16 -04:00
.gitignore init 2021-07-01 00:39:22 -04:00
docker-compose.yaml init 2021-07-01 00:39:22 -04:00
Dockerfile init 2021-07-01 00:39:22 -04:00
Makefile init 2021-07-01 00:39:22 -04:00
README.md init 2021-07-01 00:39:22 -04:00

Raspberry Pi Air Quality Monitor

A simple air quality monitoring service for the Raspberry Pi.

Installation

Clone the repository and run the following:

make install

Running

To run, use the run command:

make run

Architecture

This project uses python, flask, docker-compose and redis to create a simple web server to display the latest historical values from the sensor.

Example Data

Some example data you can get from the sensor includes the following:

{
    "device_id": 13358,
    "pm10": 10.8,
    "pm2.5": 4.8,
    "timestamp": "2021-06-16 22:12:13.887717"
}

The sensor reads two particulate matter (PM) values.

PM10 is a measure of particles less than 10 micrometers, whereas PM 2.5 is a measurement of finer particles, less than 2.5 micrometers.

Different particles are from different sources, and can be hazardous to different parts of the respiratory system.