Subject: | Doc fixes & JSON |
Nice module - does exactly what I needed, thanks.
Minor nits on the usage section, I tried this example:
my $wun = new WWW::Wunderground::API(01111);
print 'The temperature is: '.$wun->data->temp_f;
print 'XML source:'.$wun->xml;
And was confused by the result, then realized the 01111 is octal of
course; so it would be nice to change your docs to save the next person
a few minutes to this:
#or zipcode
my $wun = new WWW::Wunderground::API('22030');
#or airport identifier
my $wun = new WWW::Wunderground::API('KIAD');
print 'The temperature is: '.$wun->data->temp_f."\n";
print 'XML source:'.$wun->xml."\n";
Also added the newlines to make it look nicer.
Finally I was looking for the XML docs on wunderground, and I think the
XML format is deprecated and JSON should be used instead, see
http://wiki.wunderground.com/index.php/API_-_XML . Fine for now, but...
Thanks.