Raspberry Pi
Aus Wiki_2020
- USB-C Fehler Raspi 4
- https://winfuture.de/news,109951.html
- SenseHAT
- 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
- 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.