User Tools

Site Tools


start

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
start [2024/07/14 09:41] jrberndtstart [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://browser.geekbench.com/v4/cpu/14471790/claim?key=777398 \\  https://browser.geekbench.com/v4/cpu/14471790/claim?key=777398 \\ 
 https://browser.geekbench.com/v4/cpu/14471881/claim?key=495200 \\  https://browser.geekbench.com/v4/cpu/14471881/claim?key=495200 \\ 
  
 +==== idiot-proof guest account ====
 https://easylinuxtipsproject.blogspot.com/p/hacks-mint.html#ID1 \\  https://easylinuxtipsproject.blogspot.com/p/hacks-mint.html#ID1 \\ 
 c8:9c:dc:2a:b7  c8:9c:dc:2a:b7 
  
-===== IpAdresse.ansagen ===== 
-++++ IpAdresse.ansagen | 
-<code bash> 
-#!/bin/bash 
-################################################################# 
-# @JBerndt 2017-05 
-# gibt über den Lautsprecher die IP-Adresse aus 
-# 
-# Vorraussetzungen: espeak + funktionierendes Soundsystem 
-# 
-#################################################################  
- 
-boottime=$(cat /var/log/syslog |grep 'Booting Linux' | tail -n 5|cut -d' ' -f 1-3 |date +"%F_%R") 
-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 "$aufruferPRG" |grep systemd ) 
-if [[ -n $xx ]];then 
- startup="Rechner bootet -- " 
- sleep 1m 
-fi  
-# jetzt=$(date +$%F_%R) 
-# logger "$startup boottime=$boottime -- Script=$jetzt" 
- 
-# wenn espeak nicht installiert ist eine Meldung ins syslog schreiben 
-# 
-xx=$(dpkg -l |grep espeak) 
-##echo "xx=$xx" 
-if [[ -z $xx ]];then 
- logger "$aufruferPRG: espeak ist nicht installiert" 
- 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" 2> /dev/null 
-sleep $wartezeit 
  
-espeak "$ipadr2" 2> /dev/null +==== Schaltregler-Module ==== 
-sleep $wartezeit+https://www.heise.de/make/artikel/Chinakracher-Guenstige-Schaltreglermodule-mit-einstellbarer-Ausgangsspannung-3044557.html
  
-espeak "$ipadr3" 2> /dev/null 
-sleep $wartezeit 
  
-espeak "$ipadr4" 2> /dev/null +===== Prompt Länge begrenzen ===== 
-</code> +  PROMPT_DIRTRIM=2
-+++++
  
  
  
 +===== root prompt einfärben =====
 +Um Fehler zu vermeiden wird das root-prompt rot eingefärbt
 +  nano /root/.bashrc 
  
-=====  =====+  PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[0m\]@\[\033[01;31m\]\h\[\033[0m\]:\[\033[01;31m\]\w\[\033[00m\]\$ '
  
 +===== Weather Desklet =====
 +==== locations BBC ====
 +  Berlin 2950159
 +  Clearwater 4151316
 +  API-Key cd472edd381a132a1430d89206f91da8 
  
 +==== Location accuweather ====
 +[[http://forecastfox.accuweather.com/adcbin/forecastfox/locate_city.asp?location=heidelberg]]
 +  EUR|DE|GM001|HEIDELBERG
 +  EUR|DE|GM003|BERLIN
start.1720950080.txt.gz · Last modified: 2024/07/14 09:41 by jrberndt