webcam:|// URL of the webcam:|: graphperiod|48|// The number of hours displayed by the graphs:|: forecast|Settled fine|// The current forecast:|: forecastnumber|1|// The number relating to the current forecast entry in the strings.ini file. If your station is not providing it's own forecast and Cumulus is not calculating one then 0 (zero) is returned:|: battery|4.66v|// The console battery condition (Only available for the Davis weather stations):|: txbattery|TX Battery Status: 1-ok 2-ok 3-ok 4-ok 5-ok 6-ok 7-ok 8-ok |// The transmitter battery condition (Only available for the Davis weather stations):|: cloudbase|1444 ft|// Calculated cloud base:|: ET|0.003|// Today's evapotranspiration:|: UV|0.9|// Current UV index:|: SolarRad|308|// Current solar radiation:|: sensorcontactlost|0|// 1 if the station has lost contact with its remote sensors "Fine Offset only" 0 if contact has been established:|: snowdepth|0|// Today's snow depth as entered manually in the Weather Diary. Normally in Centimeters.Output is purely as a numerical figure I.E 10:|: currcond||// Represents the value entered on the screen within Cumulus for the Current Weather condition, or the value as held in the currentconditions.txt file:|: newrecord|0|// 1 if 'new record' light is flashing, 0 if not:|: sunrise|07:15|// Current sunrise time at the station:|: sunset|17:26|// Current sunset time at the station:|: daylength|10:11|// Length of day in hours and minutes (sunrise to sunset):|: tomorrowdaylength|There will be 1min 45s more daylight tomorrow|// A string giving the difference between the length of day light today and tomorrow.:|: dawn|06:47|// Start of Civil Twilight at the station (new to version 1.8.6):|: dusk|17:54|// End of Civil Twilight at the station (new to version 1.8.6):|: daylightlength|11:07|// Length of daylight in hours and minutes (dawn to dusk) (new to version 1.8.6):|: moonphase|Waning Crescent|// Current phase of the moon:|: moonrise|01:46|// Current moonrise time at the station:|: moonset|11:48|// Current moonset time at the station:|: isdaylight|1|// A flag to indicate if the location for the station is in daylight or not, based on the dawn and dusk times. Possible values are 0 or 1, where 1 notes that it is currently within the hours of daylight. (new to Version 1.8.8 build 872, currently in public beta testing phase):|: LowTempAlarm|0|// Low temperature alarm:|: HighTempAlarm|0|// High temperature alarm:|: TempChangeUpAlarm|0|// Temperature increase alarm:|: TempChangeDownAlarm|0|// Temperature decrease alarm:|: LowPressAlarm|0|// Low pressure alarm:|: HighPressAlarm|0|// High pressure alarm:|: PressChangeUpAlarm|0|// Pressure increase alarm:|: PressChangeDownAlarm|0|// Pressure decrease alarm:|: HighRainTodayAlarm|0|// High rain today alarm:|: HighRainRateAlarm|0|// High rainfall rate alarm:|: HighWindGustAlarm|0|// High wind gust alarm:|: HighWindSpeedAlarm|0|// High wind speed alarm:|: ExtraTemp1|0.0|// Extra temperature channel 1:|: ExtraTemp2|0.0|// Extra temperature channel 2:|: ExtraTemp3|0.0|// Extra temperature channel 3:|: ExtraDP1|0.0|// Extra dew point channel 1:|: ExtraDP2|0.0|// Extra dew point channel 2:|: ExtraDP3|0.0|// Extra dew point channel 3:|: ExtraHum1|0|// Extra humidity channel 1:|: ExtraHum2|0|// Extra humidity channel 2:|: ExtraHum3|0|// Extra humidity channel 3:|: END_OF_RAW_DATA_LINES; // end of generation script // put data in array // $WX = array(); global $WX; $WXComment = array(); $data = explode(":|:",$rawdatalines); $nscanned = 0; foreach ($data as $v => $line) { list($vname,$vval,$vcomment) = explode("|",trim($line).'|||'); if ($vname <> "" and $vval <> "") { $WX[$vname] = trim($vval); if($vcomment <> "") { $WXComment[$vname] = trim($vcomment); } } $nscanned++; } $vpforecasttext = 'NOTE: This data is bogus. Set up Cumulus to upload the CUtags.php so your weather station data will appear.'; if(isset($_REQUEST['debug'])) { print "\n"; } if (isset($_REQUEST["sce"]) and strtolower($_REQUEST["sce"]) == "dump" ) { print "
\n";
  print "// \$WX[] array size = $nscanned entries.\n";
  foreach ($WX as $key => $val) {
	  $t =  "\$WX['$key'] = '$val';";
	  if(isset($WXComment[$key])) {$t .=  " $WXComment[$key]"; }
	  print "$t\n";
  }
  print "
\n"; } if(file_exists("CU-defs.php")) { include_once("CU-defs.php"); } ?>