diff options
authorLuca Tringali <>2019-01-23 15:39:48 +0100
committerLuca Tringali <>2019-01-23 15:39:48 +0100
commitfbf4af0fe73a8da8fc8924ea7466d85331b9fb46 (patch)
parentf728342b730a236dd6e648e3f0dfee1028dbd293 (diff)
Comments and README
2 files changed, 24 insertions, 0 deletions
diff --git a/ b/
new file mode 100644
index 0000000..3e9a47f
--- /dev/null
+++ b/
@@ -0,0 +1,12 @@
+# 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 ( you should only need to clone this repository and run the autologin script:
+cd /home/pi
+git clone
+cd termostato-raspberry
+chmod +x
+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, 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
diff --git a/ b/
index f7135b3..ce265e7 100644..100755
--- a/
+++ b/
@@ -1,4 +1,7 @@
+#Created by Luca Tringali -
+#Thanks to Dalen, this code is based on his answer:
cat <<EOF > /etc/systemd/system/tty1.service
@@ -41,9 +44,18 @@ sleep 1
/usr/bin/python3 /home/$username/termostato-raspberry/
chmod +x /home/$username/appstart
+chmod +x /home/$username/termostato-raspberry/
chown $username:$username /home/$username/appstart
+#This thermostat app also needs the following libraries:
+sudo apt-get update
+sudo aptitude install python3-rpi.gpio
+sudo pip3 install w1thermsensor
+#Disable old autologins, give user access to tty
sudo systemctl disable sddm.service
+sudo systemctl disable
+sudo systemctl disable getty@tty1.service
sudo usermod -a -G tty $username
sudo usermod -a -G video $username