pws = 'KNJMANAH4'; // Waretown: MAR867 $current_weather->city = 'Highlands'; $current_weather->state = 'NJ'; $current_alerts->zipcode = '07732'; $current_weather->display_city = 'Highlands'; $current_weather->display_state = 'NJ'; $current_weather->display_zipcode = '07732'; $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/sdhn4.rss'); $items_sdhn4 = $rss_sdhn4->getItems(); $rss_robn4 = new rss_php; $rss_robn4->load('http://www.ndbc.noaa.gov/data/latest_obs/robn4.rss'); $items_robn4 = $rss_robn4->getItems(); $rss_44065 = new rss_php; $rss_44065->load('http://www.ndbc.noaa.gov/data/latest_obs/44065.rss'); $items_44065 = $rss_44065->getItems(); print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; ?>
  NOAA Buoy Data
 
"; print "".$items_sdhn4[0][title].""; print "
"; $description_1 = $items_sdhn4[0][description]; $description_1 = str_replace("/>", ">",$description_1); print $description_1; print "
 
"; print "".$items_robn4[0][title].""; print "
"; $description_2 = $items_robn4[0][description]; $description_2 = str_replace("/>", ">",$description_2); print $description_2; print "
 
"; print "".$items_44065[0][title].""; print "
"; $description_3 = $items_44065[0][description]; $description_3 = str_replace("/>", ">",$description_3); print $description_3; 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 - Highlands, NJ 07732