GithubHelp home page GithubHelp logo

mroelandts / rpi-temperature-watcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cwalk/pi-temp

0.0 0.0 0.0 437 KB

Web server using a Raspberry Pi and BME280 sensor to graph the humidity and temperature over time.

Python 4.25% HTML 6.66% CSS 7.51% JavaScript 80.73% Shell 0.85%

rpi-temperature-watcher's Introduction

RPI temperature watcher

Introduction

Web server using a Raspberry Pi and BME280 sensor to graph the humidity and temperature over time. The data can be accessed over a web browser.

Setup

sudo raspi-config
# enable I2S

Run full setup

./setup.sh

Summary

The temp_app.py is the flask application that creates the webpages. This flask app will be loaded by the fastcgi plugin of lighttpd.

The database will be filled by a cronjob that triggers the python script append_db.py every x minutes (5min).

The webserver has 3 views, The home page, history page and settings page.

Home page

In the current view, the current temperature and humidity taken from the sensor is displayed on the web page. This page updates every 10 seconds, and has a link to the historic view.

History page

The history view has a couple features. The first is a to and from date input, which uses a date time picker plugin. Combined with a submit button, this allows you to view the temperature and humidity data within any date time range easily. The next feature are four radio buttons, to easily see the last 3, 6, 12, and 24 hours of data. There is also a link to go abck to the home page.

The main view are 2 tables combined with Google Charts graphs. The tables both scroll, and the charts display data across the time selected. The times are displayed in your own time zone, as it is determined from your browser.

Settings page

Edit the settings of the application.

Usage

Manual test webserver

source venv/bin/activate
python3 temp_app.py

Manual messurement to db

./cron_trigger.sh

Take a peak at the db db

venv/bin/python get_data.py

TODO

  • Send data through http calls and not static pages that need to be reloaded
  • Improve home page with gauges for temperatures
  • Improve the settings page to control more settings (cron frequency, ...)
  • Improve pages for viewing on mobile
  • More options to view the data
  • Be able to export the data

Info

Circuit Diagram

Circuit Diagram

rpi-temperature-watcher's People

Contributors

cwalk avatar walkc120 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.