This repository contains the firmware and web application source code for building your own home CO2 monitor. You can read the full instructions for assembling this project on Hackster.
You can also see a live version of the web app at https://co2-home-monitor.netlify.app.
The firmware for this project is written for Arduino using PlatformIO. The firmware was written for the Blues Swan, but could be easily adapted for other hosts. If you intend to use this firmware with the Swan, check out the Swan Quickstart for instructions on flashing the firmware to your device.
This project’s web application is written using Next.js. The web application’s README has instructions for how to run the project. Note that you will need to create a local .env file with the following two values for the project to run successfully.
PROJECT_UID: The ProjectUID of your Notehub project.NOTEHUB_API_KEY: A valid Notehub API Session Token.
Your web-app/.env file should look something like this after configured.
PROJECT_UID=app:123-456-789
NOTEHUB_API_KEY=abc123def456ghi789
The suggested Notecard configuration for this project is provided in the config.json file.
See Run a Setup Script for instructions on running the setup script on your Notecards.