# East Masonville Weather # Version: 1.01 ############################################################################ # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ############################################################################ # This document uses Tab 4 Settings ############################################################################ ############################################################################ $TITLE= $SITE['organ'] . " - Local River/Lake Heights"; $showGizmo = true; // set to false to exclude the gizmo ############################################################################ ?>

River Heights


Stage Color Key
Normal Action Flood Moderate Flood Major Flood Old Data

$rivername){ $xmlFileData = "./River/river-$riverid.txt"; $xmlData["$riverid"] = simplexml_load_file($xmlFileData); // Get Stage Levels $action = $xmlData["$riverid"]->sigstages->action; $flood = $xmlData["$riverid"]->sigstages->flood; $moderate = $xmlData["$riverid"]->sigstages->moderate; $major = $xmlData["$riverid"]->sigstages->major; $record = $xmlData["$riverid"]->sigstages->record; // Get Last Reading $ObsTime = $xmlData["$riverid"]->observed->datum[0]->valid; $ObsStage = $xmlData["$riverid"]->observed->datum[0]->primary; $ObsFlow = $xmlData["$riverid"]->observed->datum[0]->secondary; $data12 = strtotime($ObsTime) + (24 * 60 * 60); ?> > =number_format($record,2) and $record!="") { ?> =number_format($major,2) and $major!="") { ?> =number_format($moderate,2) and $moderate!="") { ?> =number_format($flood,2) and $flood!="") { ?> =number_format($action,2) and $action!="") { ?>
Location Height Status
() ft =number_format($record,2) and $record!="") { echo "Record Flooding"; }elseif(number_format($ObsStage,2)>=number_format($major,2) and $major!="") { echo "Major Flooding"; }elseif(number_format($ObsStage,2)>=number_format($moderate,2) and $moderate!="") { echo "Moderate Flooding"; }elseif(number_format($ObsStage,2)>=number_format($flood,2) and $flood!="") { echo "Minor Flooding"; }elseif(number_format($ObsStage,2)>=number_format($action,2) and $action!="") { echo "Near Flood Stage"; }else{ echo "Not Defined"; } } ?>

Current River Heights

Data Courtesy of the Advanced Hydrologic Prediction Service
Script Courtesy of Dennis at East Masonville Weather