Code Monkey home page Code Monkey logo

anavi-phat-sensors-ui's Introduction

Web Interface for ANAVI pHAT & MH-Z19 Sensors

A web interface that displays air quality data captured with ANAVI pHAT sensors and MH-Z19.

Supported sensors:

  • BH1750
  • BMP180
  • HTU21D
  • MH_Z19

Prerequisites

Read the instructions of ANAVI pHAT and MH-Z19 Python module.

Install dependencies:

apt install build-essential wiringpi
sudo apt install python-pip
sudo pip install mh-z19

Put your service-account-key.json for the Firebase in the project root directory. See the documentation for more detail.

How to build

HTU21D:

cd ./sensors/HTU21D
make

BMP180:

cd ./sensors/BMP180
make

BH1750:

cd ./sensors/BH1750
make

How to set up

Configure root's crontab like so:

*/5 * * * * /usr/bin/python -m mh_z19                > /<path-to-project>/data/MH_Z19.json
*/5 * * * * /<path-to-project>/sensors/HTU21D/HTU21D > /<path-to-project>/data/HTU21D.json
*/5 * * * * /<path-to-project>/sensors/BMP180/BMP180 > /<path-to-project>/data/BMP180.json
*/5 * * * * /<path-to-project>/sensors/BH1750/BH1750 > /<path-to-project>/data/BH1750.json

License

C programs for retrieving pHAT sensor data are provided under MIT License by Anavi Technology.

The rest of the scripts are under MIT License by Takuya Matsuyama.

The sound effect is provided by freeSFX.

anavi-phat-sensors-ui's People

Contributors

craftzdog avatar

Stargazers

 avatar

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.