Skip to content

francoparodi/ThermoHome_pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThermoHome Pi

Simple flask webapp Thermostat running on Raspberry Pi

Home thermostat with weekly scheduling.

Home

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

Settings

Demo

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

Getting Started

Prerequisites

DHT22 hardware and Relay (Songle SRD-05DC-SL-C) connected to Raspberry Pi or, if not, a "demo mode" starts automatically.

Schema

Installing

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

~/ThermoHome_pi$ python3 -m venv venv
~/ThermoHome_pi$ source venv/bin/activate
~/ThermoHome_pi$ pip install -r requirements.txt
~/ThermoHome_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

Thermostat control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published