Skip to content

Temperature Humidity Sensor with Rasbperry Pi SenseHat

License

Notifications You must be signed in to change notification settings

francoparodi/THPHat_pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THPHat_pi

Simple flask webapp dashboard running on Raspberry Pi and SenseHat shield.

Home

Shows temperature, humidity, barometric pressure and relative Plotly graph with autorefresh.

Get sensor values every "n" seconds (due to Settings section).

Settings

Values are sending (websocket) to client according to delta value from previous one (minimum delta value to trigger is specified in Setting section).

A Stats section shows a table with all stored data (due to Settings section).

Stats

Demo

Getting Started

Prerequisites

SenseHat hardware connected to Raspberry Pi or, if not, a "demo mode" starts automatically.

Installing

From project root create virtual environment, activate it and install requirements:

~/THPHat_pi$ python3 -m venv venv
~/THPHat_pi$ source venv/bin/activate
~/THPHat_pi$ pip install -r requirements.txt
~/THPHat_pi$ python3 init-db.py

Running

as app

export FLASK_APP=flaskr
flask run

as wsgi server

gunicorn --worker-class eventlet -w 1 -b localhost:8080 wsgi

Deployment

As seen above, as any wsgi app.

Authors

Franco Parodi [email protected]

License

This project is licensed under the MIT License.

About

Temperature Humidity Sensor with Rasbperry Pi SenseHat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published