From 17ffe40523144a60d4297cfb18c3b5fdaffa84af Mon Sep 17 00:00:00 2001 From: euer Date: Thu, 20 Dec 2012 15:53:41 +0100 Subject: //{hyper,json} -> //sandbox //{icecrab,kachelmann,meinsack} -> //god //host -> //punani/host --- god/kachelmann/wetter | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 god/kachelmann/wetter (limited to 'god/kachelmann/wetter') diff --git a/god/kachelmann/wetter b/god/kachelmann/wetter new file mode 100755 index 00000000..957e13e2 --- /dev/null +++ b/god/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"); -- cgit v1.2.3