From f51533f20a11d72665e51cd1fc6a0c392502416c Mon Sep 17 00:00:00 2001 From: foo Date: Sun, 9 Mar 2014 13:37:56 +0000 Subject: [PATCH] updates for upstream api changes --- getstations.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getstations.pl b/getstations.pl index 34de592..a9488bd 100755 --- a/getstations.pl +++ b/getstations.pl @@ -20,7 +20,7 @@ foreach $CatchmentId (@todo) { print "[river_levels_$CatchmentId]\nenv.urlbase $urlbase\nenv.stations " unless $DEBUG; foreach $station (@{$in->{data}}) { if ($station->{url} =~ /CatchmentId=$CatchmentId$/) { - print "$station->{id}", $DEBUG ? ": $station->{station} on $station->{river}\n" : " " unless $station->{watercourse} eq "Tide"; + print "$station->{id}", $DEBUG ? ": $station->{station} on $station->{watercourse}\n" : " " unless $station->{watercourse} eq "Tide"; $catchment = $station->{watercourse} unless $station->{watercourse} eq "Tide"; } }