Giter Site home page Giter Site logo

co2-monitor's Introduction

CO2 Monitor

The goal of this project is a program that takes data from CO2 meter and plots it in real time to a graph

How does it look like?

This project works with this device:

Device

UI example:

Screenshot

Installation

Keep in mind that this project depends on CO2mon binary, so the most reliable method of installation implies building CO2mon on your machine and putting resulting binary to ./src/server/modules/co2-sensor-data-stream/lib/.

Good news is that this repo already has bundled binary in it, so all you need is to do following steps:

  • brew install hidapi (this is a part of installation process of CO2mon)
  • git clone https://github.com/antipin/co2-monitor.git
  • cd ./co2-monitor
  • npm install
  • npm run build-server
  • npm run build-client
  • npm run start (or, if you need sudo NODE_ENV=production sudo node ./dist/server/bin/app.js)
  • http://localhost:8001

If there are any errors concerning lack of some library, I guess you should build CO2mon by yourself and replace bundled binary with builded one.

RaspberryPi

If you have issues on RaspberryPi, try to run app with sudo by: NODE_ENV=production sudo node ./dist/server/bin/app.js command.

Troubleshooting

Syntax error: "(" unexpected error

If yo see the following error

co2-sensor-data-stream.ERROR: /home/pi/co2-monitor/dist/server/modules/co2-sensor-data-stream/lib/co2mond: 1: /home/pi/co2-monitor/dist/server/modules/co2-sensor-data-stream/lib/co2mond: Syntax error: "(" unexpected

try to run app with sudo:

NODE_ENV=production sudo node ./dist/server/bin/app.js

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.