curl -sL https://install.raspap.com | bash
Author: jason
My RPi HVAC Project

When I got my first Pi I started with some basic projects. I learned how to control relays, how to take temperature readings, how to build a LAMP stack, as well as many other projects. I learned a lot about Linux and Python.
I decide to try and control my home furnace and air conditioner from a Pi. Seemed like a simple project: read the temperature, turn the furnace on or off. It’s not that straightforward.
I got the sensors and the relays working. I stored settings and temperatures in a database. Now I needed an interface. I got a web server running and set out to build a secure interface with a public and private side that would interact with database. It didn’t take long to see that WordPress was a lot better solution than anything I could come up with.
Make Python3 the Default
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2
python -version
https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux
Nokia 5110
https://luma-lcd.readthedocs.io/en/latest/install.html
PCD8544 | |||||
LCD Pin | LCD Function | Remarks | RPi Function | RPi Pin | Wire Color |
1 | RST | Reset | GPIO 24 | 18 | purple |
2 | CE | Chip Enable | GPIO 8 (CE0) | 24 | blue |
3 | DC | Data/Command | GPIO 23 | 16 | green |
4 | DIN | Data In | GPIO 10 (MOSI) | 19 | yellow |
5 | CLK | Clock | GPIO 11 (SCLK) | 23 | orange |
6 | VCC | +3.3V Power | 3V3 | 17 | red |
7 | LIGHT | Backlight | GPIO 18 (PCM_CLK) | 12 | brown |
8 | GND | Ground | GND | 14 | black |