I've found a couple of glitches in the 4.01 script as I have it running at
https://contoocook.org/wxriverpage.php. These work for me, with the funky files I get from my quirky river feeds. Your mileage may vary, make backups!
The status always displays "Record Flooding" if the river record retrieved has no record stage. The fix is to change lines 270-271 from:
270 $record = 'N/A';
271 $frecord = 'N/A';
to:
270 $record = '';
271 $frecord = '';
Once that's fixed, the display changes to "Minor Flooding," although it should be "Near Flood Stage" Change the lines 252-253 from:
252 $flood = $TV['stage']['action'];
253 $fflood = $TV['flow']['action'];
to:
252 $flood = $TV['stage']['minor'];
253 $fflood = $TV['flow']['minor'];
If you choose to try this update yourself, change the text, but don't add the line numbers, they're just there for reference.
Stay dry!