start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| start [2024/07/14 09:41] – jrberndt | start [2024/07/17 08:47] (current) – [Weather Desklet - locations BBC] jrberndt | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Hauptseite ====== | ====== Hauptseite ====== | ||
| ===== allg ===== | ===== allg ===== | ||
| + | |||
| + | ==== benchmark ==== | ||
| 2019-08-29 \\ | 2019-08-29 \\ | ||
| https:// | https:// | ||
| https:// | https:// | ||
| + | ==== idiot-proof guest account ==== | ||
| https:// | https:// | ||
| c8: | c8: | ||
| - | ===== IpAdresse.ansagen ===== | ||
| - | ++++ IpAdresse.ansagen | | ||
| - | <code bash> | ||
| - | #!/bin/bash | ||
| - | ################################################################# | ||
| - | # @JBerndt 2017-05 | ||
| - | # gibt über den Lautsprecher die IP-Adresse aus | ||
| - | # | ||
| - | # Vorraussetzungen: | ||
| - | # | ||
| - | ################################################################# | ||
| - | |||
| - | boottime=$(cat / | ||
| - | aufruferPRG=$(ps -o comm= $PPID) | ||
| - | startup="" | ||
| - | |||
| - | # nur wenn das Script am Systemstart aufgerufen wird muss verzögert werden. | ||
| - | # es gibt noch keine IP-Adresse wenn die rc.local abgearbeitet wird | ||
| - | # | ||
| - | xx=$(echo " | ||
| - | if [[ -n $xx ]];then | ||
| - | startup=" | ||
| - | sleep 1m | ||
| - | fi | ||
| - | # jetzt=$(date +$%F_%R) | ||
| - | # logger " | ||
| - | |||
| - | # wenn espeak nicht installiert ist eine Meldung ins syslog schreiben | ||
| - | # | ||
| - | xx=$(dpkg -l |grep espeak) | ||
| - | ##echo " | ||
| - | if [[ -z $xx ]];then | ||
| - | logger " | ||
| - | exit | ||
| - | fi | ||
| - | |||
| - | # Wartezeit zwischen 2 Zahlen, ohne kommt Kauderwelch am schluss | ||
| - | # --> der verschluckt sich dann, kein Ahnung woran das liegt | ||
| - | wartezeit=0.2 | ||
| - | |||
| - | ipadr1=$(ifconfig |grep inet|grep -v inet6|sed 's/ \+/ /'|cut -d' ' -f3|cut -d: -f2|grep -v ^127 |cut -d. -f1) | ||
| - | ipadr2=$(ifconfig |grep inet|grep -v inet6|sed 's/ \+/ /'|cut -d' ' -f3|cut -d: -f2|grep -v ^127 |cut -d. -f2) | ||
| - | ipadr3=$(ifconfig |grep inet|grep -v inet6|sed 's/ \+/ /'|cut -d' ' -f3|cut -d: -f2|grep -v ^127 |cut -d. -f3) | ||
| - | ipadr4=$(ifconfig |grep inet|grep -v inet6|sed 's/ \+/ /'|cut -d' ' -f3|cut -d: -f2|grep -v ^127 |cut -d. -f4) | ||
| - | |||
| - | espeak "IP Adress is $ipadr1" | ||
| - | sleep $wartezeit | ||
| - | espeak " | + | ==== Schaltregler-Module ==== |
| - | sleep $wartezeit | + | https://www.heise.de/ |
| - | espeak " | ||
| - | sleep $wartezeit | ||
| - | espeak " | + | ===== Prompt Länge begrenzen ===== |
| - | </ | + | PROMPT_DIRTRIM=2 |
| - | ++++ | + | |
| + | ===== root prompt einfärben ===== | ||
| + | Um Fehler zu vermeiden wird das root-prompt rot eingefärbt | ||
| + | nano / | ||
| - | ===== ===== | + | PS1=' |
| + | ===== Weather Desklet ===== | ||
| + | ==== locations BBC ==== | ||
| + | Berlin 2950159 | ||
| + | Clearwater 4151316 | ||
| + | API-Key cd472edd381a132a1430d89206f91da8 | ||
| + | ==== Location accuweather ==== | ||
| + | [[http:// | ||
| + | EUR|DE|GM001|HEIDELBERG | ||
| + | EUR|DE|GM003|BERLIN | ||
start.1720950080.txt.gz · Last modified: 2024/07/14 09:41 by jrberndt
