diff options
author | root <root@krebs> | 2011-04-22 12:36:38 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-04-22 12:36:38 +0200 |
commit | 7bc6b2033d4940635fcc0cc89eee0220fa121b20 (patch) | |
tree | f941a0fc6d1d3cfe5ecb38597e08591d71ef1989 | |
parent | b7fb99573d5075acda4e53ea0e6c62eaa8d015b3 (diff) |
modules/shackstatus: use /temp
-rwxr-xr-x | modules/shackstatus | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/modules/shackstatus b/modules/shackstatus index 4e103310..a5058f0a 100755 --- a/modules/shackstatus +++ b/modules/shackstatus @@ -15,15 +15,8 @@ main() { STAT_LINE=$(ping -c 5 -i 0.2 -q 141.31.176.214 | awk '/packet loss/ { print 100-$6}' ) - STAT_TEMP=$(dig +short txt outside.elwood.temp.citecs.de | - sed 's/^"DEG //; - s/"$//; - s/^-/minus /; - s/\./ komma /; - s/\(.\)$/ \1 grad zelsius/ - ') - cat <<-EOF >> $NOISE_linefeed + cat <<-EOF >$NOISE_linefeed /set pitch 10 /espeak -v Hallo - Ich bin Krebs. /espeak -v Heute ist `wochentag`, der `tag` --- `monat` -- `date +%Y` @@ -36,7 +29,7 @@ main() { /espeak -v interner - D N S -- externe - do-mejn -- $STAT_DNS_E /espeak -v externer - D N S - $STAT_DNS_X /espeak -v Leitungsqualität - $STAT_LINE prozent. - /espeak -v Die Außen-tempera-tur beträgt $STAT_TEMP + /temp /espeak -v krebs kompjuting bereit EOF ;; |