This simple Node app uses the PurpleAir API to display hyper-local air quality information based on PurpleAir IoT sensors located near where you live. You can check check the abundance of sensors near your place by visiting https://www.purpleair.com/map?mylocation.
The best way to start using this app is to clone the project into your local machine's project directory.
cd ~/projects && git clone https://github.com/daveschumaker/local-air.git
cd local-air && npm install
- Rename
config-example.js
toconfig.js
and enter appropriate details. You can find the ID for the PurpleAir sensor closest to your house by visiting the PurpleAir map. - Run project using either
npm run dev
ornpm run build && npm run start
- View the node app's webpage in your browser by visiting
http://localhost:3000
(PORT 3000 is default, you can change this later)
If you're interested in contributing to the codebase, thank you! Pull requests are the best way to propose changes and I welcome your pull requests:
- Fork the repo and create your branch from
master
. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints using the project rules.
- Issue that pull request.
Note that any contributions you make will be under the same MIT License that covers the project.