diff options
author | tv <tv@also> | 2011-08-06 01:51:26 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-08-06 01:51:26 +0200 |
commit | 41fb21855aaaa4ada42df3aac6cd5b0b49e633a1 (patch) | |
tree | 6557d1f2ab31e0e82b13cb7279a026271c9a49d0 | |
parent | 49c9a8010370e8e8d193b5d8836b264fd236d2aa (diff) | |
parent | 4a5e4673c71d7e3f6c27eb8504216b595e24fa7f (diff) |
Merge branch 'master' of github.com:krebscode/painload
-rw-r--r-- | kachelmann/Makefile | 4 | ||||
-rwxr-xr-x | kachelmann/conditions | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kachelmann/Makefile b/kachelmann/Makefile index 813f4dec..7fa3ec2d 100644 --- a/kachelmann/Makefile +++ b/kachelmann/Makefile @@ -3,4 +3,6 @@ INSTALL_DIR = /root/bin/ infect: mkdir -p /tmp/kachelmann/ cp conditions ${INSTALL_DIR} - chmod +x ${INSTALL_DIR}conditions + mv ${INSTALL_DIR}conditions ${INSTALL_DIR}kachelmann + chmod +x ${INSTALL_DIR}kachelmann + diff --git a/kachelmann/conditions b/kachelmann/conditions index 6d8b5541..1a798e42 100755 --- a/kachelmann/conditions +++ b/kachelmann/conditions @@ -3,5 +3,5 @@ use XML::Simple; system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\" > /tmp/kachelmann/weather.xml"); my $xml = new XML::Simple; my $data = $xml->XMLin("/tmp/kachelmann/weather.xml"); -my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Celsius\n"; -system("espeak \"$sentence\""); +my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Zelsius\n"; +system("espeak -v de \"$sentence\""); |