diff options
author | root <root@filebitch> | 2011-08-28 18:28:51 +0200 |
---|---|---|
committer | root <root@filebitch> | 2011-08-28 18:28:51 +0200 |
commit | 1364c58cb6c97f24f4ade9d984ac71a846f5ef19 (patch) | |
tree | 8dc7fdffe8a239531d917b331c22885f7fc963c2 /kachelmann/wetter | |
parent | 8678f7ce47ed62c9db5446021955b89abbe3ab60 (diff) | |
parent | 7a97f9d4baff89bbcfa4bef93ab4d4246b2b82e6 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'kachelmann/wetter')
-rwxr-xr-x | kachelmann/wetter | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kachelmann/wetter b/kachelmann/wetter new file mode 100755 index 00000000..957e13e2 --- /dev/null +++ b/kachelmann/wetter @@ -0,0 +1,6 @@ +#!/usr/bin/perl +use XML::Simple; +my $result = `w3m -dump "http://www.google.com/ig/api?weather=70327-stuttgart&hl=de"`; +my $xml = new XML::Simple; +my $data = $xml->XMLin($result); +print ("$data->{weather}->{current_conditions}->{condition}->{data} bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Zelsius\n"); |