Raspberry Pi

Aus Wiki_2020


https://www.piwheels.org
pihole aufsetzen - How To
https://skeleter.wordpress.com/2014/04/06/raspberry-pi-externe-datenspeicher-einbinden/
Raspi .xpm Icon-Dateien Aufbau https://en.wikipedia.org/wiki/X_PixMap
https://www.hackster.io/kamal-khan/desktop-shortcut-for-python-script-on-raspberry-pi-fd1c63

  • USB-C Fehler Raspi 4

- https://winfuture.de/news,109951.html

SenseHAT

es wird eine .txt und eine .png Datei benötigt!!
- Font https://github.com/astro-pi/python-sense-hat/blob/master/sense_hat/sense_hat_text.png

the place where SenseHAT font lives: /usr/lib/python3/dist-packages/sense_hat/sense_hat_text.png

- api Referenz: https://pythonhosted.org/sense-hat/api/

https://learn.adafruit.com/what-is-the-command-line/getting-a-terminal-on-your-raspberry-pi

  • bei Meldung
E: Für das Depot »http://raspbian.raspberrypi.org/raspbian buster InRelease« wurde der »Suite«-Wert von »testing« in »stable« geändert.
N: Sie müssen dies explizit bestätigen, bevor Aktualisierungen von diesem Depot angewendet werden können. Lesen Sie die apt-secure(8)-Handbuchseite, wenn Sie weitere Informationen benötigen.
sudo apt update

rrd-Tool

  • install
sudo apt-get install rrdtool
für Python3 zusätzlich:
sudo apt-get install librrd-dev libpython3-dev
sudo python3.7 -m pip install rrdtool


  • Beispiel
rrdtool create temperature.rrd --step 300 \
 DS:temp:GAUGE:600:-273:5000 \
 RRA:AVERAGE:0.5:1:1200 \
 RRA:MIN:0.5:12:2400 \
 RRA:MAX:0.5:12:2400 \
 RRA:AVERAGE:0.5:12:2400
  • This sets up an RRD called temperature.rrd which accepts one temperature value every 300 seconds.
  • If no new data is supplied for more than 600 seconds, the temperature becomes *UNKNOWN*. The minimum acceptable value is -273 and the maximum is 5'000.

A few archive areas are also defined.

  • The first stores the temperatures supplied for 100 hours (1'200 * 300 seconds = 100 hours).
  • The second RRA stores the minimum temperature recorded over every hour (12 * 300 seconds = 1 hour), for 100 days (2'400 hours).
  • The third and the fourth RRA's do the same for the maximum and average temperature, respectively.