Giter VIP home page Giter VIP logo

raspi_gauge's Introduction

raspi_gauge

http access

copy everything under www/ to root folder of your webserver (php has to be enabled), default for raspberry /var/www/html/

there is no security settings to make it easier to read and understand

index.php

start page for browser access loads a gauge and history diagramm (google charts)

api.php

data for it will be loaded as json

data will be read from data access files described below

data access

start python readdata.py

this uses a lib mq.py which is form:

adapted from http://sandboxelectronics.com/?p=165

adapted form https://github.com/tutRPi/Raspberry-Pi-Gas-Sensor-MQ

this will read the start value from ADC and set this as "fresh air" value

this will write data (see file for more details) every 0.5 sec to

smbus_A0.current
smbus_A0.ppb
smbus_A0.ugpm3
smbus_A0.csv

and to the console

MQ-131 Module

since most board do not come with a datasheet/description this is what i used:

data sheet for the heart piece: https://aqicn.org/air/view/sensor/spec/o3.winsen-mq131.pdf

    VCC
     |
    +++
    | | RS
    +++
     |
     +------- AOUTDC
     |
    +++
    | | RL (My board used 1kOhm)
    +++
     O
     |
    GND

Raspberry ADC MQ-131 Module

Raspberry ADS1115 Raspberry

if you have questions or ideas: [email protected]

raspi_gauge's People

Contributors

subbamaggus avatar

Watchers

 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.