Skip to content

Commit

Permalink
minor update to clarify data pulled from web and error out if it does…
Browse files Browse the repository at this point in the history
…nt look right.
  • Loading branch information
gfbarros committed Jan 16, 2011
1 parent 18f828c commit ffcea2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arduino/oneWire_rrd/oneWire_rrd.pl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ sub usage {

sub getData {
# grab data from website and push into hash
# web data sample: startvar&Utility=60.58&Kitchen=56.08&Attic=31.10&MasterBed=62.83&Basement=52.31&Garage=45.95&BasementH=41.60&HVACstatus=standby
my $content = get $remoteWeb;
die "Couldn't get $remoteWeb" unless defined $content;

Expand All @@ -159,6 +160,7 @@ sub getData {
$temps{$key} = sprintf("%.2f", $temps{$key});
}
}
else { die "BAD DATA PULL FROM WEB!"; }
}

sub updateRRD {
Expand Down

0 comments on commit ffcea2c

Please sign in to comment.