summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xadafruit-pitft.sh3
-rwxr-xr-xautologin.sh4
-rwxr-xr-xtermostato.py2
4 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index cf227f3..31c2811 100644
--- a/README.md
+++ b/README.md
@@ -12,3 +12,5 @@ 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:
sudo ./adafruit-pitft.sh
+
+The full source code is described on https://www.codice-sorgente.it/2019/01/un-termostato-touchscreen-con-raspberrypi/
diff --git a/adafruit-pitft.sh b/adafruit-pitft.sh
index 82ff069..aa9e826 100755
--- a/adafruit-pitft.sh
+++ b/adafruit-pitft.sh
@@ -1,8 +1,9 @@
#!/bin/bash
# Instructions!
+# Please take note this script is experimental
# cd ~
-# wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh
+# wget http://codice-sorgente.it/cgit/termostato-raspberry.git/plain/adafruit-pitft.sh
# chmod +x adafruit-pitft.sh
# sudo ./adafruit-pitft.sh
diff --git a/autologin.sh b/autologin.sh
index ce265e7..41cae8f 100755
--- a/autologin.sh
+++ b/autologin.sh
@@ -1,6 +1,8 @@
#!/bin/bash
+#This script makes an application run automatically on boot as user "pi"
#Created by Luca Tringali - www.codice-sorgente.it
-#Thanks to Dalen, this code is based on his answer: https://stackoverflow.com/questions/44186905/how-to-replace-the-desktop-interface-with-a-python-application
+#It is made for the thermostat project you find here: https://codice-sorgente.it/cgit/termostato-raspberry.git/
+#Thanks to Dalen, this code is partially based on his answer: https://stackoverflow.com/questions/44186905/how-to-replace-the-desktop-interface-with-a-python-application
username="pi"
cat <<EOF > /etc/systemd/system/tty1.service
diff --git a/termostato.py b/termostato.py
index a91578e..a7d206c 100755
--- a/termostato.py
+++ b/termostato.py
@@ -1,6 +1,8 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+# https://www.codice-sorgente.it/2019/01/un-termostato-touchscreen-con-raspberrypi/
+
import RPi.GPIO as GPIO
import w1thermsensor
import sys, os