BT's Global Sager Weathercaster PHP Scripts For Cumulus
by "Buford T. Justice" / "BTJustice"
http://www.freewebs.com/btjustice/bt-forecasters.html
2016-08-05

You may redistribute and use these PHP Scripts any way you wish as long as they remain FREE and money is not charged for their use directly or indirectly.  If these PHP Scripts are used in your work or are modified in any way, please retain the full credit header.

The variables shown here come from bt-sager-cu.php and bt-sager-wc.php.  Combined, these determine the correct Sager Weathercaster forecast.

12-24 Hour Forecast:
document.write ('Fair; No important change. Some tendency for slight increase in winds during day, diminishing in evening. West or Northwest winds.');V331: Fair; No important change. Some tendency for slight increase in winds during day, diminishing in evening. West or Northwest winds.

Cumulus Information:
Cumulus v3.0.0 (3038)
Updated: 2017-04-21 02:06 UTC
Weather Station: Davis Vantage Pro2/Vue
Location: 36.726389, -76.341111

Current Temperature:
78.9 °F

Average wind direction from 6 hours ago (w6) compared to the current average wind direction (wd) along with the wind speed unit used (wu) to determine if the wind is Backing, Steady, Veering, or Calm:
w6 = 210° SW
wd = 272° W
wu = mph
The wind is Veering.

Barometric pressure (bp), barometric pressure trend (bt), and barometric unit (bu) used by your weather station:
bp = 29.942
bt = -0.006
bu = in

In hectopascals (hPa): converted barometric pressure (pc), barometric pressure trend (pt), barometric pressure offset if used (po), and barometric pressure used (pu) to make a forecast:
pc = 1013.95
pt = -0.2
po = 0
pu = 1013.95

METAR station (ms) used to determine Present Weather (pw) based on the Cloud Code (m1).  If the METAR indicates Precipitation (m2) or Cumulus has reported Rain in the last 30 minutes (rm), (pw) becomes Precipitation regardless of (m1):
ms = KCPK
m1 = CLR
m2 = No Precipitation
rm = 2993
pw = Clear