blob: 31c2811dc53cc403dcc484dbbba2cfded1c297f0 (plain
# RaspberryPi Thermostat
This is a simple thermostat application built for Python3 on a RaspberryPi with PySide2, to demonstrate how easy is to use PySide2 to build your domotic devices.
If you're using the Raspbian Buster with PySide2 image provided by codice-sorgente.it (https://www.codice-sorgente.it/raspbian-buster-pyside2-lxqt/#English) you should only need to clone this repository and run the autologin script:
git clone https://codice-sorgente.it/cgit/termostato-raspberry.git/
chmod +x autologin.sh
Then just reboot the system and wait for the interface to load. If you are using a Raspbian Buster image, without PySide2 libraries, you'll first need to follow instructions on the page https://www.codice-sorgente.it/raspbian-buster-pyside2-lxqt/#English, to install Qt5 and PySide2.
You also need to install libraries for GPIO pins and the therm sensors:
sudo aptitude install python3-rpi.gpio
sudo pip3 install w1thermsensor
If you are using Raspbian Buster before its official release date, and you have a PiTFT from Adafruit, PiTFT script might not work correctly. Instead of the official script, please use the one included in this git repository, running:
The full source code is described on https://www.codice-sorgente.it/2019/01/un-termostato-touchscreen-con-raspberrypi/