# HG changeset patch # User Matti Hamalainen # Date 1402868800 -10800 # Node ID 55ed3db51ee7f7d82d36390448cde71ba78f741d # Parent 93ec73deebc5e83b04fc7c088fc922449fd1c978 Rename a function. diff -r 93ec73deebc5 -r 55ed3db51ee7 fetch_weather.pl --- a/fetch_weather.pl Mon Jun 16 00:39:53 2014 +0300 +++ b/fetch_weather.pl Mon Jun 16 00:46:40 2014 +0300 @@ -63,7 +63,7 @@ } -sub gmt_time_fmt($) +sub format_time_gmt($) { # 2012-02-27T00:00:00Z return gmtime($_[0])->strftime("%Y-%m-%dT%TZ"); @@ -397,7 +397,7 @@ "/wfs?request=getFeature&storedquery_id=fmi::observations::weather::". "multipointcoverage". # "timevaluepair". - "&starttime=".gmt_time_fmt(time() - 10*60)."&endtime=".gmt_time_fmt(time()). + "&starttime=".format_time_gmt(time() - 10*60)."&endtime=".format_time_gmt(time()). "¶meters=temperature,humidity&maxlocations=50&bbox=19,59,32,70"; print STDERR "FMI URI: ".$uri."\n" if opt_chk_bool("debug");