summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kachelmann/Makefile4
-rwxr-xr-xkachelmann/conditions2
2 files changed, 4 insertions, 2 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..9880b397 100755
--- a/kachelmann/conditions
+++ b/kachelmann/conditions
@@ -4,4 +4,4 @@ system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\"
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\"");
+system("espeak -v de \"$sentence\"");