User Tools

Site Tools


doc:appunti:hardware:raspberrypi_thermostat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:raspberrypi_thermostat [2022/01/12 17:09] – [Installing the old Adafruit LCD library] niccolodoc:appunti:hardware:raspberrypi_thermostat [2025/11/16 21:56] (current) – [Running a Telegram Bot on the Raspberry Pi] niccolo
Line 512: Line 512:
 ===== Running a Telegram Bot on the Raspberry Pi ===== ===== Running a Telegram Bot on the Raspberry Pi =====
  
 +{{ .:raspberrypi:termostato-protherm-telegram.png?160|The Teletram chat interface}}
 To install the **[[https://pypi.python.org/pypi/telepot/|Telepot Python library]]**, run as root: To install the **[[https://pypi.python.org/pypi/telepot/|Telepot Python library]]**, run as root:
  
Line 710: Line 711:
 ==== Installing the old Adafruit LCD library ==== ==== Installing the old Adafruit LCD library ====
  
-As reported above, the new **Adafruit CircuitPython PCD8544** library is more CPU intensive than the old discontinued one **[[https://github.com/adafruit/Adafruit_Nokia_LCD|Adafruit Nokia LCD]]**. Fortunately enough, the old library does run with Python 3, and I was able to use it on my old Raspberry Pi model B over the operating system derived from Debian 11 Bullseye. So the average CPU usage is **lower than 10%**, instead than **above 30%**!+As reported above, the old and discontinued library **[[https://github.com/adafruit/Adafruit_Nokia_LCD|Adafruit Nokia LCD]]** is less CPU intensive than the new **Adafruit CircuitPython PCD8544**. Fortunately enough, the old library does run with Python 3, and I was able to use it on my old Raspberry Pi model B over the operating system derived from Debian 11 Bullseye. So the average CPU usage is **lower than 10%**, instead than **above 30%**!
  
 The library is not available from the **[[https://pypi.org/|PyPI]]** repository, so it must be downloaded from the GitHub repository. The library depends upon **Adafruit_GPIO**, which in turn requires **Adafruit_PureIO** and **spidev**. The two Adafruit libraries are available from PyPI, for **spidev** we installed the Debian packaged version. The library is not available from the **[[https://pypi.org/|PyPI]]** repository, so it must be downloaded from the GitHub repository. The library depends upon **Adafruit_GPIO**, which in turn requires **Adafruit_PureIO** and **spidev**. The two Adafruit libraries are available from PyPI, for **spidev** we installed the Debian packaged version.
doc/appunti/hardware/raspberrypi_thermostat.1642003762.txt.gz · Last modified: by niccolo