Giter VIP home page Giter VIP logo

goairmon's Introduction

goairmon

A web interface for a CO2 monitor on a raspberry pi using an SGP-30 eCO2/TVOC sensor.

Screenshot

Sensor Setup

  • Enable I2C via raspi-config
  • Run sudo i2c-detect, if you see 0x58 is available, the SGP-30 should be connected
  • If the sensor is showing remote I/O errors, you can try slowing the baudrate via the boot config
  • If the i2c address happens to be something other than 0x58, change the value in /usr/local/goairmon/.env

Install

  1. Unzip the arm6, arm7, or amd64 tar from the dist directory to a temporary folder on the pi.
  2. CD to the directory and run cmd/adduser -username={username} -password={password} to add a user.
  3. You can change any values in the .env file and run the server via ./goairmon.
  4. Run sudo ./install.sh to copy everything to /usr/local/goairmon and install goairmon.service.
  5. Confirm the service started with sudo systemctl status goairmon
  6. Open localhost:80 in the browser to view the web interface.

Build From Source

Build mage file arm6 to output to the dist directory.

Uninstall

Run sudo /usr/local/goairmon/uninstall.sh

Adding/Removing Users

  1. Before adding or removing users, stop the service sudo systemctl stop goairmon
  2. cd to /usr/local/goairmon
  3. Run sudo cmd/adduser -username={username} -password={mypassword} to add a user
  4. Run sudo cmd/rmuser -username={username} to remove a user
  5. Start the service again sudo systemctl start goairmon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.