Since no one has addressed your question regarding virtual gauges, I'll give it a shot. It has been a while since I set up a virtual gauge, and I hadn't noticed that the script or facility for setting them up had changed. (The StreamTeamer used to be provided a framework wherein to just enter the various parameters, and the system built the formula. Now we are on our own to build the formula!) Anyway, easiest way is to take a pattern from some existing virtual gauge. Assuming you don't need anything too fancy or tricky, the basic formula is:
$flow=(a.aaaa)+(m.mmmm*($gauge[nnnnn]->getValue(GMETRIC_FLOW,0)))
or
$flow=(a.aaaa)+(m.mmmm*($gauge[nnnnn]->getValue(GMETRIC_STAGE,0)))
Obviously the former is for flow (cfs) readings, the latter for stage (feet/tenths) readings. (Note that the left side parameter '$flow=' does not change!)
a.aaaaa is an 'adder' -- a constant value to be added to the USGS (or other) gauge reading. If you need to subtract, make this value a negative number (-48.0, for example). If no addition or subtraction is needed, this value will be zero (0.0000).
m.mmmm is a 'multiplier' -- a constant value to multiply the USGS (or other) gauge reading by. This may be positive or negative. If less than 1 (or greater than -1), I would keep the leading zero (I.E., 0.25, not just .25).
nnnnn is the AW gauge number for the USGS (or other) gauge you are basing your virtual gauge on.
As I understand it (in my experience) It may take a few minutes (or hours?) after you create your gauge before it is actually populated with data, due to how the gauges are 'polled'.
If you need to add two gauges together, just repeat that part of the formula, filling in the appropriate values. If you need anything much trickier than that, scan the virtual gauge page for more examples:
[
www.americanwhitewater.org]
(the above link is from the AW menu, Administrator>StreamTeam>ManageVirtualGauges)
Hopefully that should get you what you need. If not, please ask again with more specific information regarding what you need to do. Also, if anyone else wants to chime in (especially if anything I have included here is unclear or incorrect), please feel free.
Rob Smage
AW member since 1992, volunteer since 2000, Midwest Regional StreamTeam Editor