updated for new API

changed river => watercourse
This commit is contained in:
Matthew Slowe 2014-01-07 13:33:24 +00:00
parent 83ce82e72f
commit 07f79d3bdb

View File

@ -67,7 +67,7 @@ if [ "$1" = "config" ]; then
foreach $station (@{$in->{data}}) {
if ($station->{url} =~ /CatchmentId=$CatchmentId$/) {
$id = $station->{id};
$river = $station->{river};
$river = $station->{watercourse};
$name = $station->{station};
print "river_level_$id.label $name on $river ($id)\n";
print "river_level_$id.info Current river level (metres)\n";