Giter VIP home page Giter VIP logo

raspberry-dht-22-dashboard's Introduction

Raspberry Pi DHT-22 Dashboard

The idea for this project was to log the dht sensor output data over time. I have succsessfully integrated the dht-22 sensor via Homebridge into Homekit, but there wasn't any abillity to log the sensor data over the course of time.

Which tools & equipement did I use

  • Raspberry Pi Zero WH plus DHT-22 sensor: This combination logs the temperature and humidity data every 5 minutes. In addition the cpu temperature of both Raspberrys is also stored in the database. The record intervall can be adjusted in klima_logger.py. The data is going to be stored in a sqlite file.

  • Raspberry Pi 4B: This Raspi runs the local flask-server and pulls the database from the Raspi Zero. I tried to run the flask-server on the Raspi Zero but that was way too slow (due to the lack of RAM).

  • The connection between the Raspi Zero and Raspi 4B is handled via SSH through the package paramiko.

  • The interactive charts are created with pygal.

How to start

  1. Transfer and start the script klima_logger.py to the Raspi Zero
  2. Transfer the app data to another Raspi with enough RAM
  3. Adjust the script config.py with your local settings
  4. Run pip install -r requirements.txt
  5. Run main.py
  6. Open 127.0.0.1:8000/dashboard

raspberry-dht-22-dashboard's People

Contributors

marwonn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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