pws = 'KNJMANAH4'; // Waretown: MAR867 $current_weather->city = 'Waretown'; $current_weather->state = 'NJ'; $current_alerts->zipcode = '08578'; $current_weather->display_city = 'Waretown'; $current_weather->display_state = 'NJ'; $current_weather->display_zipcode = '08578'; $current_weather->get_forecast(); $current_alerts->get_alert_data(); $hour = date("G"); $minute = date("i"); // adjust for Eastern Time $hour = $hour + 3; // get sunrise $sunrise_hour = $current_weather->astro_data->sunrise_hour; $sunrise_minute = $current_weather->astro_data->sunrise_minute; // get sunset $sunset_hour = $current_weather->astro_data->sunset_hour; $sunset_minute = $current_weather->astro_data->sunset_minute; // if hour > sunset and less than sunrise, then it is night $night = false; if($hour == $sunset_hour && $minute >= $sunset_minute){ $night = true; } elseif($hour >= $sunset_hour){ $night = true; } elseif($hour == $sunrise_hour && $minute <= $sunrise_minute){ $night = true; } elseif($hour > $sunrise_hour && $hour < $sunset_hour){ $night = false; } else{ $night = false; } $current_image = current_icon($current_weather->current_icon, $icons_array, $night); $moon_icon = get_moon_icon($current_weather); $phase = get_moon_phase($current_weather->astro_data->ageOfMoon); $page_name = 'weather'; ?>
  load('http://www.ndbc.noaa.gov/data/latest_obs/jcrn4.rss'); $items_jcrn4 = $rss_jcrn4->getItems(); $rss_acyn4 = new rss_php; $rss_acyn4->load('http://www.ndbc.noaa.gov/data/latest_obs/acyn4.rss'); $items_acyn4 = $rss_acyn4->getItems(); print ""; print ""; print ""; print ""; print ""; print ""; print ""; ?>
  NOAA Buoy Data
 
"; print "".$items_jcrn4[0][title].""; print "
"; $description_1 = $items_jcrn4[0][description]; $description_1 = str_replace("/>", ">",$description_1); print $description_1; print "
 
"; print "".$items_acyn4[0][title].""; print "
"; $description_2 = $items_acyn4[0][description]; $description_2 = str_replace("/>", ">",$description_2); print $description_2; print "
 
 

 

  NOAA Marine Weather Data
 
Coastal Waters Forecasts
Surf Zone Forecasts
Marine Weather Statement
Special Marine Warning
Short Term Forecast
Hazardous Weather Outlook
 
 
 
  Current Conditions - Waretown, NJ 08758