Skip to content

Python-based Raspberry Pi thermostat application for home automation

License

Notifications You must be signed in to change notification settings

miquipuig/thermostatProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HEAT-PI-CONTROL

Python-based Raspberry Pi thermostat application for home automation.

Install fonts

Copy the setup/thermoFonts repo to the /usr/share/fonts/¡. You can use the follow command in the setup folder:
$ sudo cp -r thermoFonts/ /usr/share/fonts

And the follow is needed to load in memory without restart:
$ sudo fc-cache -f -v

Install libraries

Install tk libraries:
$ sudo apt-get install python3-tk

Install pip3 with:
$ sudo apt-get install python3-pip

The rest of app dependencies:
$ pip3 install -r requirements.txt

Start application

To start de application in test mode use the follow command on the project path : $ python3 -m heatPicontrol test

Prototipage mockup

drawing

Basic Sketch

drawing

Final installation

drawing

Hardware Components

Picture Component Functionality Price Purchase Link
drawing Tenstar Robot HLK-PM01 Power Suply x 3 7€ Link Amazon.es
drawing DHT 22 AM2302 Temperature Sensor 2.33€ - 9.50€ Link Amazon.es
drawing CESFONJERSPDT Interruptor Rockers Switch x 10 5.99€ Link Amazon.es
drawing Raspberry Pi 3 Model B Mother Board 32.54€ - 37.44€ Link Amazon.es
drawing KY-040 Rotary Encoder x 3 0.46€ - 5.99€ Link Amazon.es, Link aliexpress.com
drawing KY-019 5V Relay x 3 1.20€ - 6.49€ Link Amazon.es
drawing 3.5 inch 320*480 TFT Screen 16,92 - 19€ Link Amazon.es, Link aliexpress.com
drawing Resistor 10.00k Resistor for Temperature Sensor N/A N/A
drawing RIBBA White Frame 1,50€ Link ikea.es

Versioning

version 0.2.1 (Structured version) includes:

  • Logs
  • Well structured Python project
  • GNU liscense
  • Homogenic Canvas and code simplicity
  • Basic Readme.md
  • New package load
  • Package structured global variables

version 0.1.0 (Stable Version) includes:

  • graphic interface
  • tactile configuration
  • Integration with a weather API
  • Temperature and humidity sensor lectures
  • History registration
  • Daily temperature graph
  • minimum api configuration
  • Rotate button integration