success == true) { // Observed From City, State, Country $obsCity = ucwords($json->response->place->name); $stateAbbreviation = strtoupper($json->response->place->state); if (empty($stateAbbreviation)) { $stateAbbreviation = strtoupper($json->response->place->country); } $country = $json->response->place->country; // Set Time Zone $local_tz = $json->response->profile->tz; date_default_timezone_set($local_tz); $dtz = new DateTimeZone($local_tz); $timeOffset = new DateTime('now', $dtz); $offset = $dtz->getOffset( $timeOffset ) / 3600; $local_tz = "GMT " . ($offset < 0 ? $offset : "+".$offset); $obsUpdated = $json->response->ob->timestamp; $obsUpdated1 = date("F j", substr($obsUpdated, 0, 10)); $obsUpdated2 = date("H", substr($obsUpdated, 0, 10)); // Remove ltrim if 24 hour format is wanted $obsUpdated2 = ltrim($obsUpdated2, '0'); if ($obsUpdated2 >= 13) { $obsUpdated2 = $obsUpdated2 - 12; } $obsUpdated3 = date("i", substr($obsUpdated, 0, 10)); $obsUpdated4 = date("A", substr($obsUpdated, 0, 10)); $lat = $json->response->relativeTo->lat; $lon = $json->response->relativeTo->long; $elevation_m = $json->response->profile->elevM; $elevation_f = $json->response->profile->elevFT; $county = $json->response->place->country; $temp_f = $json->response->ob->tempF; $temp_c = $json->response->ob->tempC; $weather = $json->response->ob->weather; $pressure_in = $json->response->ob->pressureIN; $pressure_mb = $json->response->ob->pressureMB; $dewpoint_f = $json->response->ob->dewpointF; $dewpoint_c = $json->response->ob->dewpointC; $relative_humidity = $json->response->ob->humidity; $wind_dir = $json->response->ob->windDir; $wind_mph = $json->response->ob->windMPH; $wind_kph = $json->response->ob->windKPH; $icon_url = $json->response->ob->icon; $currentIcon = str_replace('.png', '.png', $icon_url); $currentIcon = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $currentIcon; $windchill_f = $json->response->ob->windchillF; $windchill_c = $json->response->ob->windchillC; $heat_index_f = $json->response->ob->heatindexF; $heat_index_c = $json->response->ob->heatindexC; $feelslike_f = $json->response->ob->feelslikeF; $feelslike_c = $json->response->ob->feelslikeC; $visibilityMI = $json->response->ob->visibilityMI; $visibilityKM = $json->response->ob->visibilityKM; $sunrise = $json->response->ob->sunrise; $sunset = $json->response->ob->sunset; $sunrise1 = date("g:i", substr($sunrise, 0, 10)); $sunrise2 = date("n/j/Y", substr($sunrise, 0, 10)); $sunrise3 = date("A", substr($sunrise, 0, 10)); $sunset1 = date("g:i", substr($sunset, 0, 10)); $sunset2 = date("n/j/Y", substr($sunset, 0, 10)); $sunset3 = date("A", substr($sunset, 0, 10)); // ======================== HOURLY FORECAST ======================== // Fetch and Set Time Zone preg_match('|profile"(.*)"}|Usi',$json3,$matches102); $tz1 = str_replace('profile":{"tz":"', '', $matches102[0]); $tz2 = str_replace('\/', '/', $tz1); $timezone = str_replace('"}', '', $tz2); date_default_timezone_set($timezone); // Fetch All the Timestamps for the Hourly Forecasts $i = 0; preg_match_all('|"validTime"(.*)"dateTimeISO"|Usi',$json3,$matches); foreach($matches[0] as $value) { $matches[0][$i] = str_replace('"validTime":"', '', $matches[0][$i]); $matches[0][$i] = str_replace('","dateTimeISO"', '', $matches[0][$i]); $i++; } // Convert Timestamp to Hours for the Hourly Forecast $time0 = strtotime($matches[0][0]); $time1 = strtotime($matches[0][1]); $time2 = strtotime($matches[0][2]); $time3 = strtotime($matches[0][3]); $time4 = strtotime($matches[0][4]); $time5 = strtotime($matches[0][5]); $time6 = strtotime($matches[0][6]); $time7 = strtotime($matches[0][7]); $time0 = date('H', $time0); $time1 = date('H', $time1); $time2 = date('H', $time2); $time3 = date('H', $time3); $time4 = date('H', $time4); $time5 = date('H', $time5); $time6 = date('H', $time6); $time7 = date('H', $time7); // Convert 24 Hour Time to 12 Hour Time if ($time0 >= 13) { $time0 = $time0 - 12; } if ($time1 >= 13) { $time1 = $time1 - 12; } if ($time2 >= 13) { $time2 = $time2 - 12; } if ($time3 >= 13) { $time3 = $time3 - 12; } if ($time4 >= 13) { $time4 = $time4 - 12; } if ($time5 >= 13) { $time5 = $time5 - 12; } if ($time6 >= 13) { $time6 = $time6 - 12; } if ($time7 >= 13) { $time7 = $time7 - 12; } // Convert Double 00 to 12 PM When On Each Occurrence if ($time0 == 00) { $time0 = 12; } if ($time1 == 00) { $time1 = 12; } if ($time2 == 00) { $time2 = 12; } if ($time3 == 00) { $time3 = 12; } if ($time4 == 00) { $time4 = 12; } if ($time5 == 00) { $time5 = 12; } if ($time6 == 00) { $time6 = 12; } if ($time7 == 00) { $time7 = 12; } // Convert Time Stamp to AM/PM $ampm0 = date('A', strtotime($matches[0][0])); $ampm1 = date('A', strtotime($matches[0][1])); $ampm2 = date('A', strtotime($matches[0][2])); $ampm3 = date('A', strtotime($matches[0][3])); $ampm4 = date('A', strtotime($matches[0][4])); $ampm5 = date('A', strtotime($matches[0][5])); $ampm6 = date('A', strtotime($matches[0][6])); $ampm7 = date('A', strtotime($matches[0][7])); // Fetch Condition Icons for the Hourly Forecast $i = 0; preg_match_all('|icon(.*)",|Usi',$json3,$matches101); foreach($matches101[0] as $value) { $matches101[0][$i] = str_replace('icon":"', '', $matches101[0][$i]); $matches101[0][$i] = str_replace('",', '', $matches101[0][$i]); $matches101[0][$i] = str_replace('.png', '.png', $matches101[0][$i]); $i++; } $icon_url0 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][0]; $icon_url1 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][1]; $icon_url2 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][2]; $icon_url3 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][3]; $icon_url4 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][4]; $icon_url5 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][5]; $icon_url6 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][6]; $icon_url7 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches101[0][6]; // Fetch Weather Conditions for the Hourly Forecast $i = 0; preg_match_all('|weatherPrimary"(.*)",|Usi',$json3,$matches103); foreach($matches103[0] as $value) { $matches103[0][$i] = str_replace('weatherPrimary":"', '', $matches103[0][$i]); $matches103[0][$i] = str_replace('",', '', $matches103[0][$i]); $i++; } $icon0 = $matches103[0][0]; $icon1 = $matches103[0][1]; $icon2 = $matches103[0][2]; $icon3 = $matches103[0][3]; $icon4 = $matches103[0][4]; $icon5 = $matches103[0][5]; $icon6 = $matches103[0][6]; $icon7 = $matches103[0][7]; // Fetch F Temperatures for Hourly Forecast $i = 0; preg_match_all('|maxTempF"(.*),"|Usi',$json3,$matches104); foreach($matches104[0] as $value) { $matches104[0][$i] = str_replace('maxTempF":', '', $matches104[0][$i]); $matches104[0][$i] = str_replace(',"', '', $matches104[0][$i]); $i++; } $temp_f0 = $matches104[0][0]; $temp_f1 = $matches104[0][1]; $temp_f2 = $matches104[0][2]; $temp_f3 = $matches104[0][3]; $temp_f4 = $matches104[0][4]; $temp_f5 = $matches104[0][5]; $temp_f6 = $matches104[0][6]; // Fetch C Temperatures for Hourly Forecast $i = 0; preg_match_all('|maxTempC"(.*),"|Usi',$json3,$matches104b); foreach($matches104b[0] as $value) { $matches104b[0][$i] = str_replace('maxTempC":', '', $matches104b[0][$i]); $matches104b[0][$i] = str_replace(',"', '', $matches104b[0][$i]); $i++; } $temp_c0 = $matches104b[0][0]; $temp_c1 = $matches104b[0][1]; $temp_c2 = $matches104b[0][2]; $temp_c3 = $matches104b[0][3]; $temp_c4 = $matches104b[0][4]; $temp_c5 = $matches104b[0][5]; $temp_c6 = $matches104b[0][6]; // Fetch POP $i = 0; preg_match_all('|pop"(.*)"|Usi',$json3,$matches90); foreach($matches90[0] as $value) { $matches90[0][$i] = str_replace('pop":', '', $matches90[0][$i]); $matches90[0][$i] = str_replace(',"', '', $matches90[0][$i]); $i++; } $poph0 = $matches90[0][0]; $poph1 = $matches90[0][1]; $poph2 = $matches90[0][2]; $poph3 = $matches90[0][3]; $poph4 = $matches90[0][4]; $poph5 = $matches90[0][5]; $poph6 = $matches90[0][6]; $poph7 = $matches90[0][7]; $poph8 = $matches90[0][8]; $poph9 = $matches90[0][9]; $poph10 = $matches90[0][10]; $poph11 = $matches90[0][11]; $poph12 = $matches90[0][12]; $poph13 = $matches90[0][13]; // ===================== TEXTUAL FORECAST ===================== // Fetch and Set the Time Zone preg_match('|profile"(.*)"}|Usi',$json2,$matches200); $tz1 = str_replace('profile":{"tz":"', '', $matches200[0]); $tz2 = str_replace('\/', '/', $tz1); $timezone = str_replace('"}', '', $tz2); date_default_timezone_set($timezone); // Fetch the Time Issued for Graphical and Textual Forecasts $i = 0; preg_match_all('|"timestamp":(.*)",|Usi',$json2,$matches111); foreach($matches111[0] as $value) { $matches111[0][$i] = str_replace('"timestamp":', '', $matches111[0][$i]); $matches111[0][$i] = str_replace('",', '', $matches111[0][$i]); $i++; } $issued1 = date("g:i", substr($matches111[0][0], 0, 10)); $issued2 = date("A", substr($matches111[0][0], 0, 10)); $issued3 = date("n/j/Y", substr($matches111[0][0], 0, 10)); // Convert Timestamp to Days of Week for Graphical & Textual Forecasts $i = 0; preg_match_all('|"validTime"(.*)T|Usi',$json2,$matches201); foreach($matches201[0] as $value) { $matches201[0][$i] = str_replace('"validTime":"', '', $matches201[0][$i]); $matches201[0][$i] = str_replace('T', '', $matches201[0][$i]); $i++; } $textTimestamp1 = $matches201[0][0]; $textTimestamp2 = $matches201[0][1]; $textTimestamp3 = $matches201[0][2]; $textTimestamp4 = $matches201[0][3]; $textTimestamp5 = $matches201[0][4]; $textTimestamp6 = $matches201[0][5]; $textTimestamp7 = $matches201[0][6]; $textTimestamp8 = $matches201[0][7]; $textTimestamp9 = $matches201[0][8]; $textTimestamp10 = $matches201[0][9]; $textTimestamp11 = $matches201[0][10]; $textTimestamp12 = $matches201[0][11]; $textTimestamp13 = $matches201[0][12]; $textTimestamp14 = $matches201[0][13]; $dayOFweek1 = strftime("%A",strtotime($textTimestamp1)); $dayOFweek2 = strftime("%A",strtotime($textTimestamp2)); $dayOFweek3 = strftime("%A",strtotime($textTimestamp3)); $dayOFweek4 = strftime("%A",strtotime($textTimestamp4)); $dayOFweek5 = strftime("%A",strtotime($textTimestamp5)); $dayOFweek6 = strftime("%A",strtotime($textTimestamp6)); $dayOFweek7 = strftime("%A",strtotime($textTimestamp7)); $dayOFweek8 = strftime("%A",strtotime($textTimestamp8)); $dayOFweek9 = strftime("%A",strtotime($textTimestamp9)); $dayOFweek10 = strftime("%A",strtotime($textTimestamp10)); $dayOFweek11 = strftime("%A",strtotime($textTimestamp11)); $dayOFweek12 = strftime("%A",strtotime($textTimestamp12)); $dayOFweek13 = strftime("%A",strtotime($textTimestamp13)); $dayOFweek14 = strftime("%A",strtotime($textTimestamp14)); // Fetch Forecast Icons For Graphical and Textual Forecasts $i = 0; preg_match_all('|icon"(.*)",|Usi',$json2,$matches202); foreach($matches202[0] as $value) { $matches202[0][$i] = str_replace('icon":"', '', $matches202[0][$i]); $matches202[0][$i] = str_replace('",', '', $matches202[0][$i]); $matches202[0][$i] = str_replace('.png', '.png', $matches202[0][$i]); $i++; } $forecastIcon1 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][0]; $forecastIcon2 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][1]; $forecastIcon3 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][2]; $forecastIcon4 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][3]; $forecastIcon5 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][4]; $forecastIcon6 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][5]; $forecastIcon7 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][6]; $forecastIcon8 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][7]; $forecastIcon9 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][8]; $forecastIcon10 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][9]; $forecastIcon11 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][10]; $forecastIcon12 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][11]; $forecastIcon13 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][12]; $forecastIcon14 = 'https://www.eldoradoweather.com/forecast/wu-forecasts/aeris/' . $matches202[0][13]; // Fetch Forecast Long Text for the Textual Forecast $i = 0; preg_match_all('|weather"(.*)",|Usi',$json2,$matches203); foreach($matches203[0] as $value) { $matches203[0][$i] = str_replace('weather":"', '', $matches203[0][$i]); $matches203[0][$i] = str_replace('",', '', $matches203[0][$i]); $i++; } $textForecast1 = $matches203[0][0]; $textForecast2 = $matches203[0][1]; $textForecast3 = $matches203[0][2]; $textForecast4 = $matches203[0][3]; $textForecast5 = $matches203[0][4]; $textForecast6 = $matches203[0][5]; $textForecast7 = $matches203[0][6]; $textForecast8 = $matches203[0][7]; $textForecast9 = $matches203[0][8]; $textForecast10 = $matches203[0][9]; $textForecast11 = $matches203[0][10]; $textForecast12 = $matches203[0][11]; $textForecast13 = $matches203[0][12]; $textForecast14 = $matches203[0][13]; // Fetch Short Version Textual Forecast for the Graphical Forecast $i = 0; preg_match_all('|weatherPrimary"(.*)"weatherPrimaryCoded"|Usi',$json2,$matches12b); foreach($matches12b[0] as $value) { $matches12b[0][$i] = str_replace('weatherPrimary":"', '', $matches12b[0][$i]); $matches12b[0][$i] = str_replace('","weatherPrimaryCoded"', '', $matches12b[0][$i]); $i++; } $conditions0 = $matches12b[0][0]; $conditions1 = $matches12b[0][1]; $conditions2 = $matches12b[0][2]; $conditions3 = $matches12b[0][3]; $conditions4 = $matches12b[0][4]; $conditions5 = $matches12b[0][5]; $conditions6 = $matches12b[0][6]; $conditions7 = $matches12b[0][7]; $conditions8 = $matches12b[0][8]; $conditions9 = $matches12b[0][9]; $conditions10 = $matches12b[0][10]; $conditions11 = $matches12b[0][11]; $conditions12 = $matches12b[0][12]; $conditions13 = $matches12b[0][13]; // Max Dewpoint F $i = 0; preg_match_all('|"dewpointF"(.*)"maxDewpointC"|Usi',$json2,$matches26); foreach($matches26[0] as $value) { $matches26[0][$i] = str_replace('"dewpointF":', '', $matches26[0][$i]); $matches26[0][$i] = str_replace(',"maxDewpointC"', '', $matches26[0][$i]); $i++; } $DewpointF1 = $matches26[0][0]; $DewpointF2 = $matches26[0][1]; $DewpointF3 = $matches26[0][2]; $DewpointF4 = $matches26[0][3]; $DewpointF5 = $matches26[0][4]; $DewpointF6 = $matches26[0][5]; $DewpointF7 = $matches26[0][6]; $DewpointF8 = $matches26[0][7]; $DewpointF9 = $matches26[0][8]; $DewpointF10 = $matches26[0][9]; $DewpointF11 = $matches26[0][10]; $DewpointF12 = $matches26[0][11]; $DewpointF13 = $matches26[0][12]; $DewpointF14 = $matches26[0][13]; // Min Dewpoint F $i = 0; preg_match_all('|"dewpointC"(.*)"dewpointF"|Usi',$json2,$matches27); foreach($matches27[0] as $value) { $matches27[0][$i] = str_replace('"dewpointC":', '', $matches27[0][$i]); $matches27[0][$i] = str_replace(',"dewpointF"', '', $matches27[0][$i]); $i++; } $DewpointC1 = $matches27[0][0]; $DewpointC2 = $matches27[0][1]; $DewpointC3 = $matches27[0][2]; $DewpointC4 = $matches27[0][3]; $DewpointC5 = $matches27[0][4]; $DewpointC6 = $matches27[0][5]; $DewpointC7 = $matches27[0][6]; $DewpointC8 = $matches27[0][7]; $DewpointC9 = $matches27[0][8]; $DewpointC10 = $matches27[0][9]; $DewpointC11 = $matches27[0][10]; $DewpointC12 = $matches27[0][11]; $DewpointC13 = $matches27[0][12]; $DewpointC14 = $matches27[0][13]; // Fetch UVI for the Textual Forecast $i = 0; preg_match_all('|uvi"(.*)"|Usi',$json2,$matches21); foreach($matches21[0] as $value) { $matches21[0][$i] = str_replace('uvi":', '', $matches21[0][$i]); $matches21[0][$i] = str_replace(',"', '', $matches21[0][$i]); $i++; } $uvi1 = $matches21[0][0]; $uvi2 = $matches21[0][1]; $uvi3 = $matches21[0][2]; $uvi4 = $matches21[0][3]; $uvi5 = $matches21[0][4]; $uvi6 = $matches21[0][5]; $uvi7 = $matches21[0][6]; $uvi8 = $matches21[0][7]; $uvi9 = $matches21[0][8]; $uvi10 = $matches21[0][9]; $uvi11 = $matches21[0][10]; $uvi12 = $matches21[0][11]; $uvi13 = $matches21[0][12]; $uvi14 = $matches21[0][13]; // Fetch Normal Humidity for the Textual Forecast $i = 0; preg_match_all('|"humidity"(.*),"|Usi',$json2,$matches20a); foreach($matches20a[0] as $value) { $matches20a[0][$i] = str_replace('"humidity":', '', $matches20a[0][$i]); $matches20a[0][$i] = str_replace(',"', '', $matches20a[0][$i]); $i++; } $humidity1 = $matches20a[0][0]; $humidity2 = $matches20a[0][1]; $humidity3 = $matches20a[0][2]; $humidity4 = $matches20a[0][3]; $humidity5 = $matches20a[0][4]; $humidity6 = $matches20a[0][5]; $humidity7 = $matches20a[0][6]; $humidity8 = $matches20a[0][7]; $humidity9 = $matches20a[0][8]; $humidity10 = $matches20a[0][9]; $humidity11 = $matches20a[0][10]; $humidity12 = $matches20a[0][11]; $humidity13 = $matches20a[0][12]; $humidity14 = $matches20a[0][13]; // Fetch Normal Windspeed MPH for the Textual Forecast $i = 0; preg_match_all('|windSpeedMPH"(.*),"|Usi',$json2,$matches30b); foreach($matches30b[0] as $value) { $matches30b[0][$i] = str_replace('windSpeedMPH":', '', $matches30b[0][$i]); $matches30b[0][$i] = str_replace(',"', '', $matches30b[0][$i]); $i++; } $windSpeedMPH1 = $matches30b[0][0]; $windSpeedMPH2 = $matches30b[0][1]; $windSpeedMPH3 = $matches30b[0][2]; $windSpeedMPH4 = $matches30b[0][3]; $windSpeedMPH5 = $matches30b[0][4]; $windSpeedMPH6 = $matches30b[0][5]; $windSpeedMPH7 = $matches30b[0][6]; $windSpeedMPH8 = $matches30b[0][7]; $windSpeedMPH9 = $matches30b[0][8]; $windSpeedMPH10 = $matches30b[0][9]; $windSpeedMPH11 = $matches30b[0][10]; $windSpeedMPH12 = $matches30b[0][11]; $windSpeedMPH13 = $matches30b[0][12]; $windSpeedMPH14 = $matches30b[0][13]; // Fetch Normal Windspeed KPH for the Textual Forecast $i = 0; preg_match_all('|windSpeedKPH"(.*),"|Usi',$json2,$matches30c); foreach($matches30c[0] as $value) { $matches30c[0][$i] = str_replace('windSpeedKPH":', '', $matches30c[0][$i]); $matches30c[0][$i] = str_replace(',"', '', $matches30c[0][$i]); $i++; } $windSpeedKPH1 = $matches30c[0][0]; $windSpeedKPH2 = $matches30c[0][1]; $windSpeedKPH3 = $matches30c[0][2]; $windSpeedKPH4 = $matches30c[0][3]; $windSpeedKPH5 = $matches30c[0][4]; $windSpeedKPH6 = $matches30c[0][5]; $windSpeedKPH7 = $matches30c[0][6]; $windSpeedKPH8 = $matches30c[0][7]; $windSpeedKPH9 = $matches30c[0][8]; $windSpeedKPH10 = $matches30c[0][9]; $windSpeedKPH11 = $matches30c[0][10]; $windSpeedKPH12 = $matches30c[0][11]; $windSpeedKPH13 = $matches30c[0][12]; $windSpeedKPH14 = $matches30c[0][13]; // Fetch Normal Wind Direction for the Textual Forecast $i = 0; preg_match_all('|windDir"(.*)",|Usi',$json2,$matches30a); foreach($matches30a[0] as $value) { $matches30a[0][$i] = str_replace('windDir":"', '', $matches30a[0][$i]); $matches30a[0][$i] = str_replace('",', '', $matches30a[0][$i]); $i++; } // Convert Abbreviated Compass Points to Long Compass Points $i = 0; preg_match_all('|windDir"(.*)",|Usi',$json2,$matches30d); foreach($matches30d[0] as $value) { $matches30d[0][$i] = str_replace('windDir":', '', $matches30d[0][$i]); $matches30d[0][$i] = str_replace(',', '', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"NE"', 'Northeast', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"ENE"', 'East northeast', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"E"', 'East', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"ESE"', 'East southeast', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"SE"', 'Southeast', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"SSE"', 'South southeast', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"S"', 'South', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"SSW"', 'South southwest', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"SW"', 'Southwest', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"WSW"', 'West southwest', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"W"', 'West', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"WNW"', 'West northwest', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"NW"', 'northwest', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"NNW"', 'North northwest', $matches30d[0][$i]); $matches30d[0][$i] = str_replace('"N"', 'North', $matches30d[0][$i]); $i++; } // Fetch the Chance of Precip for Graphical and Textual Forecasts $i = 0; preg_match_all('|pop"(.*)"|Usi',$json2,$matches7); foreach($matches7[0] as $value) { $matches7[0][$i] = str_replace('pop":', '', $matches7[0][$i]); $matches7[0][$i] = str_replace(',"', '', $matches7[0][$i]); $i++; } $pop0 = $matches7[0][0]; $pop1 = $matches7[0][1]; $pop2 = $matches7[0][2]; $pop3 = $matches7[0][3]; $pop4 = $matches7[0][4]; $pop5 = $matches7[0][5]; $pop6 = $matches7[0][6]; $pop7 = $matches7[0][7]; $pop8 = $matches7[0][8]; $pop9 = $matches7[0][9]; $pop10 = $matches7[0][10]; $pop11 = $matches7[0][11]; $pop12 = $matches7[0][12]; $pop13 = $matches7[0][13]; // Fetch Max Temperature F for Graphical and Textual Forecasts $i = 0; preg_match_all('|maxTempF"(.*)"|Usi',$json2,$matches3); foreach($matches3[0] as $value) { $matches3[0][$i] = str_replace('maxTempF":', '', $matches3[0][$i]); $matches3[0][$i] = str_replace(',"', '', $matches3[0][$i]); $i++; } // Fetch Min Temperature F for Graphical and Textual Forecasts $i = 0; preg_match_all('|minTempF"(.*)"|Usi',$json2,$matches4); foreach($matches4[0] as $value) { $matches4[0][$i] = str_replace('minTempF":', '', $matches4[0][$i]); $matches4[0][$i] = str_replace(',"', '', $matches4[0][$i]); $i++; } // Fetch Max Temperature C for Graphical and Textual Forecasts $i = 0; preg_match_all('|maxTempC"(.*)"|Usi',$json2,$matches5); foreach($matches5[0] as $value) { $matches5[0][$i] = str_replace('maxTempC":', '', $matches5[0][$i]); $matches5[0][$i] = str_replace(',"', '', $matches5[0][$i]); $i++; } // Fetch Min Temperature C for Graphical and Textual Forecasts $i = 0; preg_match_all('|minTempC"(.*)"|Usi',$json2,$matches6); foreach($matches6[0] as $value) { $matches6[0][$i] = str_replace('minTempC":', '', $matches6[0][$i]); $matches6[0][$i] = str_replace(',"', '', $matches6[0][$i]); $i++; } // Fetch Pressure In Inches for Textual Forecasts $i = 0; preg_match_all('|pressureIN"(.*),"|Usi',$json2,$matches36); foreach($matches36[0] as $value) { $matches36[0][$i] = str_replace('pressureIN":', '', $matches36[0][$i]); $matches36[0][$i] = str_replace(',"', '', $matches36[0][$i]); $i++; } $pressureIN1 = $matches36[0][0]; $pressureIN2 = $matches36[0][1]; $pressureIN3 = $matches36[0][2]; $pressureIN4 = $matches36[0][3]; $pressureIN5 = $matches36[0][4]; $pressureIN6 = $matches36[0][5]; $pressureIN7 = $matches36[0][6]; $pressureIN8 = $matches36[0][7]; $pressureIN9 = $matches36[0][8]; $pressureIN10 = $matches36[0][9]; $pressureIN11 = $matches36[0][10]; $pressureIN12 = $matches36[0][11]; $pressureIN13 = $matches36[0][12]; $pressureIN14 = $matches36[0][13]; // Fetch Pressure MB Inches for Textual Forecasts $i = 0; preg_match_all('|pressureMB"(.*),"|Usi',$json2,$matches37); foreach($matches37[0] as $value) { $matches37[0][$i] = str_replace('pressureMB":', '', $matches37[0][$i]); $matches37[0][$i] = str_replace(',"', '', $matches37[0][$i]); $i++; } $pressureMB1 = $matches37[0][0]; $pressureMB2 = $matches37[0][1]; $pressureMB3 = $matches37[0][2]; $pressureMB4 = $matches37[0][3]; $pressureMB5 = $matches37[0][4]; $pressureMB6 = $matches37[0][5]; $pressureMB7 = $matches37[0][6]; $pressureMB8 = $matches37[0][7]; $pressureMB9 = $matches37[0][8]; $pressureMB10 = $matches37[0][9]; $pressureMB11 = $matches37[0][10]; $pressureMB12 = $matches37[0][11]; $pressureMB13 = $matches37[0][12]; $pressureMB14 = $matches37[0][13]; // Variables - High & Low Temps F&C for Graphical & Textual Forecasts $simpleforecastHi_f0 = $matches3[0][0]; $simpleforecastHi_f1 = $matches3[0][1]; $simpleforecastHi_f2 = $matches3[0][2]; $simpleforecastHi_f3 = $matches3[0][3]; $simpleforecastHi_f4 = $matches3[0][4]; $simpleforecastHi_f5 = $matches3[0][5]; $simpleforecastHi_f6 = $matches3[0][6]; $simpleforecastHi_f7 = $matches3[0][7]; $simpleforecastHi_f8 = $matches3[0][8]; $simpleforecastHi_f9 = $matches3[0][9]; $simpleforecastHi_f10 = $matches3[0][10]; $simpleforecastHi_f11 = $matches3[0][11]; $simpleforecastHi_f12 = $matches3[0][12]; $simpleforecastHi_f13 = $matches3[0][13]; $simpleforecastHi_c0 = $matches5[0][0]; $simpleforecastHi_c1 = $matches5[0][1]; $simpleforecastHi_c2 = $matches5[0][2]; $simpleforecastHi_c3 = $matches5[0][3]; $simpleforecastHi_c4 = $matches5[0][4]; $simpleforecastHi_c5 = $matches5[0][5]; $simpleforecastHi_c6 = $matches5[0][6]; $simpleforecastHi_c7 = $matches5[0][7]; $simpleforecastHi_c8 = $matches5[0][8]; $simpleforecastHi_c9 = $matches5[0][9]; $simpleforecastHi_c10 = $matches5[0][10]; $simpleforecastHi_c11 = $matches5[0][11]; $simpleforecastHi_c12 = $matches5[0][12]; $simpleforecastHi_c13 = $matches5[0][13]; $simpleforecastLo_f0 = $matches4[0][0]; $simpleforecastLo_f1 = $matches4[0][1]; $simpleforecastLo_f2 = $matches4[0][2]; $simpleforecastLo_f3 = $matches4[0][3]; $simpleforecastLo_f4 = $matches4[0][4]; $simpleforecastLo_f5 = $matches4[0][5]; $simpleforecastLo_f6 = $matches4[0][6]; $simpleforecastLo_f7 = $matches4[0][7]; $simpleforecastLo_f8 = $matches4[0][8]; $simpleforecastLo_f9 = $matches4[0][9]; $simpleforecastLo_f10 = $matches4[0][10]; $simpleforecastLo_f11 = $matches4[0][11]; $simpleforecastLo_f12 = $matches4[0][12]; $simpleforecastLo_f13 = $matches4[0][13]; $simpleforecastLo_c0 = $matches6[0][0]; $simpleforecastLo_c1 = $matches6[0][1]; $simpleforecastLo_c2 = $matches6[0][2]; $simpleforecastLo_c3 = $matches6[0][3]; $simpleforecastLo_c4 = $matches6[0][4]; $simpleforecastLo_c5 = $matches6[0][5]; $simpleforecastLo_c6 = $matches6[0][6]; $simpleforecastLo_c7 = $matches6[0][7]; $simpleforecastLo_c8 = $matches6[0][8]; $simpleforecastLo_c9 = $matches6[0][9]; $simpleforecastLo_c10 = $matches6[0][10]; $simpleforecastLo_c11 = $matches6[0][11]; $simpleforecastLo_c12 = $matches6[0][12]; $simpleforecastLo_c13 = $matches6[0][13]; // Fetch QPF's for Textual Forecast $i = 0; preg_match_all('|precipIN"(.*)"|Usi',$json2,$matches8); foreach($matches8[0] as $value) { $matches8[0][$i] = str_replace('precipIN":', '', $matches8[0][$i]); $matches8[0][$i] = str_replace('0,', '0.00,', $matches8[0][$i]); $matches8[0][$i] = str_replace(',"', '', $matches8[0][$i]); $i++; } $qpf_day_in1 = $matches8[0][0]; $qpf_day_in2 = $matches8[0][1]; $qpf_day_in3 = $matches8[0][2]; $qpf_day_in4 = $matches8[0][3]; $qpf_day_in5 = $matches8[0][4]; $qpf_day_in6 = $matches8[0][5]; $qpf_day_in7 = $matches8[0][6]; $qpf_day_in8 = $matches8[0][7]; $qpf_day_in9 = $matches8[0][8]; $qpf_day_in10 = $matches8[0][9]; $qpf_day_in11 = $matches8[0][10]; $qpf_day_in12 = $matches8[0][11]; $qpf_day_in13 = $matches8[0][12]; $qpf_day_in14 = $matches8[0][13]; if ($qpf_day_in1 == '0') $qpf_day_in1 = '0.00'; if ($qpf_day_in2 == '0') $qpf_day_in2 = '0.00'; if ($qpf_day_in3 == '0') $qpf_day_in3 = '0.00'; if ($qpf_day_in4 == '0') $qpf_day_in4 = '0.00'; if ($qpf_day_in5 == '0') $qpf_day_in5 = '0.00'; if ($qpf_day_in6 == '0') $qpf_day_in6 = '0.00'; if ($qpf_day_in7 == '0') $qpf_day_in7 = '0.00'; if ($qpf_day_in8 == '0') $qpf_day_in8 = '0.00'; if ($qpf_day_in9 == '0') $qpf_day_in9 = '0.00'; if ($qpf_day_in10 == '0') $qpf_day_in10 = '0.00'; if ($qpf_day_in11 == '0') $qpf_day_in11 = '0.00'; if ($qpf_day_in12 == '0') $qpf_day_in12 = '0.00'; if ($qpf_day_in13 == '0') $qpf_day_in13 = '0.00'; if ($qpf_day_in14 == '0') $qpf_day_in14 = '0.00'; // Fetch Precip in I&M for Special Snowfall Forecast & Special Forecast $i = 0; preg_match_all('|precipMM"(.*)"|Usi',$json2,$matches9); foreach($matches9[0] as $value) { $matches9[0][$i] = str_replace('precipMM":', '', $matches9[0][$i]); $matches9[0][$i] = str_replace('0,', '0.00,', $matches9[0][$i]); $matches9[0][$i] = str_replace(',"', '', $matches9[0][$i]); $i++; } $qpf_day_mm1 = $matches9[0][0]; $qpf_day_mm2 = $matches9[0][1]; $qpf_day_mm3 = $matches9[0][2]; $qpf_day_mm4 = $matches9[0][3]; $qpf_day_mm5 = $matches9[0][4]; $qpf_day_mm6 = $matches9[0][5]; $qpf_day_mm7 = $matches9[0][6]; $qpf_day_mm8 = $matches9[0][7]; $qpf_day_mm9 = $matches9[0][8]; $qpf_day_mm10 = $matches9[0][9]; $qpf_day_mm11 = $matches9[0][10]; $qpf_day_mm12 = $matches9[0][11]; $qpf_day_mm13 = $matches9[0][12]; $qpf_day_mm14 = $matches9[0][13]; // Fetch Snowfall Forecast in Inches for Special Snowfall Forecast $i = 0; preg_match_all('|snowIN"(.*)"|Usi',$json2,$matches24); foreach($matches24[0] as $value) { $matches24[0][$i] = str_replace('snowIN":', '', $matches24[0][$i]); $matches24[0][$i] = str_replace(',"', '', $matches24[0][$i]); $i++; } $snow_day_in0 = $matches24[0][0]; $snow_day_in1 = $matches24[0][1]; $snow_day_in2 = $matches24[0][2]; $snow_day_in3 = $matches24[0][3]; $snow_day_in4 = $matches24[0][4]; $snow_day_in5 = $matches24[0][5]; $snow_day_in6 = $matches24[0][6]; $snow_day_in7 = $matches24[0][7]; $snow_day_in8 = $matches24[0][8]; $snow_day_in9 = $matches24[0][9]; $snow_day_in10 = $matches24[0][10]; $snow_day_in11 = $matches24[0][11]; $snow_day_in12 = $matches24[0][12]; $snow_day_in13 = $matches24[0][13]; $snow_day_in14 = $matches24[0][14]; if ($snow_day_in0 == '0') $snow_day_in0 = '0.00'; if ($snow_day_in1 == '0') $snow_day_in1 = '0.00'; if ($snow_day_in2 == '0') $snow_day_in2 = '0.00'; if ($snow_day_in3 == '0') $snow_day_in3 = '0.00'; if ($snow_day_in4 == '0') $snow_day_in4 = '0.00'; if ($snow_day_in5 == '0') $snow_day_in5 = '0.00'; if ($snow_day_in6 == '0') $snow_day_in6 = '0.00'; if ($snow_day_in7 == '0') $snow_day_in7 = '0.00'; if ($snow_day_in8 == '0') $snow_day_in8 = '0.00'; if ($snow_day_in9 == '0') $snow_day_in9 = '0.00'; if ($snow_day_in10 == '0') $snow_day_in10 = '0.00'; if ($snow_day_in11 == '0') $snow_day_in11 = '0.00'; if ($snow_day_in12 == '0') $snow_day_in12 = '0.00'; if ($snow_day_in13 == '0') $snow_day_in13 = '0.00'; if ($snow_day_in14 == '0') $snow_day_in14 = '0.00'; // Fetch Snowfall Forecast in Centigrade for Special Snowfall Forecast $i = 0; preg_match_all('|snowCM"(.*)"|Usi',$json2,$matches25); foreach($matches25[0] as $value) { $matches25[0][$i] = str_replace('snowCM":', '', $matches25[0][$i]); $matches25[0][$i] = str_replace(',"', '', $matches25[0][$i]); $i++; } $snow_day_cm0 = $matches25[0][0]; $snow_day_cm1 = $matches25[0][1]; $snow_day_cm2 = $matches25[0][2]; $snow_day_cm3 = $matches25[0][3]; $snow_day_cm4 = $matches25[0][4]; $snow_day_cm5 = $matches25[0][5]; $snow_day_cm6 = $matches25[0][6]; $snow_day_cm7 = $matches25[0][7]; $snow_day_cm8 = $matches25[0][8]; $snow_day_cm9 = $matches25[0][9]; $snow_day_cm10 = $matches25[0][10]; $snow_day_cm11 = $matches25[0][11]; $snow_day_cm12 = $matches25[0][12]; $snow_day_cm13 = $matches25[0][13]; $snow_day_cm14 = $matches25[0][14]; if ($snow_day_cm0 == '0') $snow_day_cm0 = '0.00'; if ($snow_day_cm1 == '0') $snow_day_cm1 = '0.00'; if ($snow_day_cm2 == '0') $snow_day_cm2 = '0.00'; if ($snow_day_cm3 == '0') $snow_day_cm3 = '0.00'; if ($snow_day_cm4 == '0') $snow_day_cm4 = '0.00'; if ($snow_day_cm5 == '0') $snow_day_cm5 = '0.00'; if ($snow_day_cm6 == '0') $snow_day_cm6 = '0.00'; if ($snow_day_cm7 == '0') $snow_day_cm7 = '0.00'; if ($snow_day_cm8 == '0') $snow_day_cm8 = '0.00'; if ($snow_day_cm9 == '0') $snow_day_cm9 = '0.00'; if ($snow_day_cm10 == '0') $snow_day_cm10 = '0.00'; if ($snow_day_cm11 == '0') $snow_day_cm11 = '0.00'; if ($snow_day_cm12 == '0') $snow_day_cm12 = '0.00'; if ($snow_day_cm13 == '0') $snow_day_cm13 = '0.00'; if ($snow_day_cm14 == '0') $snow_day_cm14 = '0.00'; // Fetch Max Wind Direction for Textual & Special Forecasts $i = 0; preg_match_all('|windDir"(.*)",|Usi',$json2,$matches2010); foreach($matches2010[0] as $value) { $matches2010[0][$i] = str_replace('windDir":"', '', $matches2010[0][$i]); $matches2010[0][$i] = str_replace('",', '', $matches2010[0][$i]); $i++; } $wind_dir0 = $matches2010[0][0]; $wind_dir1 = $matches2010[0][1]; $wind_dir2 = $matches2010[0][2]; $wind_dir3 = $matches2010[0][3]; $wind_dir4 = $matches2010[0][4]; $wind_dir5 = $matches2010[0][5]; $wind_dir6 = $matches2010[0][6]; $wind_dir7 = $matches2010[0][7]; $wind_dir8 = $matches2010[0][8]; $wind_dir9 = $matches2010[0][9]; $wind_dir10 = $matches2010[0][10]; $wind_dir11 = $matches2010[0][11]; $wind_dir12 = $matches2010[0][12]; $wind_dir13 = $matches2010[0][13]; // Fetch Max Wind Speed MPH for Special Forecast $i = 0; preg_match_all('|windGustMPH"(.*)"windSpeedKTS"|Usi',$json2,$matches2020); foreach($matches2020[0] as $value) { $matches2020[0][$i] = str_replace('windGustMPH":', '', $matches2020[0][$i]); $matches2020[0][$i] = str_replace(',"windSpeedKTS"', '', $matches2020[0][$i]); $i++; } $maxwind_mph0 = $matches2020[0][0]; $maxwind_mph1 = $matches2020[0][1]; $maxwind_mph2 = $matches2020[0][2]; $maxwind_mph3 = $matches2020[0][3]; $maxwind_mph4 = $matches2020[0][4]; $maxwind_mph5 = $matches2020[0][5]; $maxwind_mph6 = $matches2020[0][6]; $maxwind_mph7 = $matches2020[0][7]; $maxwind_mph8 = $matches2020[0][8]; $maxwind_mph9 = $matches2020[0][9]; $maxwind_mph10 = $matches2020[0][10]; $maxwind_mph11 = $matches2020[0][11]; $maxwind_mph12 = $matches2020[0][12]; $maxwind_mph13 = $matches2020[0][13]; // Fetch Max Wind Speed KPH for Special Forecast $i = 0; preg_match_all('|windGustKPH"(.*)"windGustMPH"|Usi',$json2,$matches31); foreach($matches31[0] as $value) { $matches31[0][$i] = str_replace('windGustKPH":', '', $matches31[0][$i]); $matches31[0][$i] = str_replace(',"windGustMPH"', '', $matches31[0][$i]); $i++; } $maxwind_kph0 = $matches31[0][0]; $maxwind_kph1 = $matches31[0][1]; $maxwind_kph2 = $matches31[0][2]; $maxwind_kph3 = $matches31[0][3]; $maxwind_kph4 = $matches31[0][4]; $maxwind_kph5 = $matches31[0][5]; $maxwind_kph6 = $matches31[0][6]; $maxwind_kph7 = $matches31[0][7]; $maxwind_kph8 = $matches31[0][8]; $maxwind_kph9 = $matches31[0][9]; $maxwind_kph10 = $matches31[0][10]; $maxwind_kph11 = $matches31[0][11]; $maxwind_kph12 = $matches31[0][12]; $maxwind_kph13 = $matches31[0][13]; // Max Humidity for Special Forecast $i = 0; preg_match_all('|maxHumidity"(.*)"|Usi',$json2,$matches20); foreach($matches20[0] as $value) { $matches20[0][$i] = str_replace('maxHumidity":', '', $matches20[0][$i]); $matches20[0][$i] = str_replace(',"', '', $matches20[0][$i]); $i++; } $maxhumidity0 = $matches20[0][0]; $maxhumidity1 = $matches20[0][1]; $maxhumidity2 = $matches20[0][2]; $maxhumidity3 = $matches20[0][3]; $maxhumidity4 = $matches20[0][4]; $maxhumidity5 = $matches20[0][5]; $maxhumidity6 = $matches20[0][6]; $maxhumidity7 = $matches20[0][7]; $maxhumidity8 = $matches20[0][8]; $maxhumidity9 = $matches20[0][9]; $maxhumidity10 = $matches20[0][10]; $maxhumidity11 = $matches20[0][11]; $maxhumidity12 = $matches20[0][12]; $maxhumidity13 = $matches20[0][13]; // Ice Accumulation IN $i = 0; preg_match_all('|iceaccumIN"(.*)"|Usi',$json2,$matches19); foreach($matches19[0] as $value) { $matches19[0][$i] = str_replace('iceaccumIN":', '', $matches19[0][$i]); $matches19[0][$i] = str_replace(',"', '', $matches19[0][$i]); $i++; } $i = 0; foreach($matches19[0] as $value) if ($matches19[0][$i] = 'null') { $matches19[0][$i] = 0.0; $i++; } $iceaccumIN1 = number_format($matches19[0][0],2); $iceaccumIN2 = number_format($matches19[0][1],2); $iceaccumIN3 = number_format($matches19[0][2],2); $iceaccumIN4 = number_format($matches19[0][3],2); $iceaccumIN5 = number_format($matches19[0][4],2); $iceaccumIN6 = number_format($matches19[0][5],2); $iceaccumIN7 = number_format($matches19[0][6],2); $iceaccumIN8 = number_format($matches19[0][7],2); $iceaccumIN9 = number_format($matches19[0][8],2); $iceaccumIN10 = number_format($matches19[0][9],2); $iceaccumIN11 = number_format($matches19[0][10],2); $iceaccumIN12 = number_format($matches19[0][11],2); $iceaccumIN13 = number_format($matches19[0][12],2); $iceaccumIN14 = number_format($matches19[0][13],2); // Ice Accumulation MM $i = 0; preg_match_all('|iceaccumMM"(.*)"|Usi',$json2,$matches19b); foreach($matches19b[0] as $value) { $matches19b[0][$i] = str_replace('iceaccumMM":', '', $matches19b[0][$i]); $matches19b[0][$i] = str_replace(',"', '', $matches19b[0][$i]); $i++; } foreach($matches19[0] as $value) if ($matches19a[0][$i] = 'null') { $matches19a[0][$i] = 0.0; $i++; } $iceaccumMM1 = number_format($matches19a[0][0],2); $iceaccumMM2 = number_format($matches19a[0][1],2); $iceaccumMM3 = number_format($matches19a[0][2],2); $iceaccumMM4 = number_format($matches19a[0][3],2); $iceaccumMM5 = number_format($matches19a[0][4],2); $iceaccumMM6 = number_format($matches19a[0][5],2); $iceaccumMM7 = number_format($matches19a[0][6],2); $iceaccumMM8 = number_format($matches19a[0][7],2); $iceaccumMM9 = number_format($matches19a[0][8],2); $iceaccumMM10 = number_format($matches19a[0][9],2); $iceaccumMM11 = number_format($matches19a[0][10],2); $iceaccumMM12 = number_format($matches19a[0][11],2); $iceaccumMM13 = number_format($matches19a[0][12],2); $iceaccumMM14 = number_format($matches19a[0][13],2); // Fetch Precipitation for Observations (filter=hasprecip) preg_match('|"totalIN"(.*),"|Usi',$json4,$matches120); $precip_today_in1 = str_replace('"totalIN":', '', $matches120[0]); $precip_today_in = str_replace(',"', '', $precip_today_in1); preg_match('|"totalMM"(.*),"|Usi',$json4,$matches121); $precip_today_metric1 = str_replace('"totalMM":', '', $matches121[0]); $precip_today_metric = str_replace(',"', '', $precip_today_metric1); if ($precip_today_in == '0') $precip_today_in = '0.00'; if ($precip_today_metric == '0') $precip_today_metric = '0.00'; // Convert State Abbreviation to Full Name if ($stateAbbreviation == 'AL') { $state_name = 'Alabama'; } if ($stateAbbreviation == 'AK') { $state_name = 'Alaska'; } if ($stateAbbreviation == 'AZ') { $state_name = 'Arizona'; } if ($stateAbbreviation == 'AR') { $state_name = 'Arkansas'; } if ($stateAbbreviation == 'CA') { $state_name = 'California'; } if ($stateAbbreviation == 'CO') { $state_name = 'Colorado'; } if ($stateAbbreviation == 'CT') { $state_name = 'Connecticut'; } if ($stateAbbreviation == 'DE') { $state_name = 'Delaware'; } if ($stateAbbreviation == 'FL') { $state_name = 'Florida'; } if ($stateAbbreviation == 'GA') { $state_name = 'Georgia'; } if ($stateAbbreviation == 'HI') { $state_name = 'Hawaii'; } if ($stateAbbreviation == 'ID') { $state_name = 'Idaho'; } if ($stateAbbreviation == 'IL') { $state_name = 'Illinois'; } if ($stateAbbreviation == 'IN') { $state_name = 'Indiana'; } if ($stateAbbreviation == 'IA') { $state_name = 'Iowa'; } if ($stateAbbreviation == 'KS') { $state_name = 'Kansas'; } if ($stateAbbreviation == 'KY') { $state_name = 'Kentucky'; } if ($stateAbbreviation == 'LA') { $state_name = 'Louisiana'; } if ($stateAbbreviation == 'ME') { $state_name = 'Maine'; } if ($stateAbbreviation == 'MD') { $state_name = 'Maryland'; } if ($stateAbbreviation == 'MA') { $state_name = 'Massachusetts'; } if ($stateAbbreviation == 'MI') { $state_name = 'Michigan'; } if ($stateAbbreviation == 'MN') { $state_name = 'Minnesota'; } if ($stateAbbreviation == 'MS') { $state_name = 'Mississippi'; } if ($stateAbbreviation == 'MO') { $state_name = 'Missouri'; } if ($stateAbbreviation == 'MT') { $state_name = 'Montana'; } if ($stateAbbreviation == 'NE') { $state_name = 'Nebraska'; } if ($stateAbbreviation == 'NV') { $state_name = 'Nevada'; } if ($stateAbbreviation == 'NH') { $state_name = 'New Hampshire'; } if ($stateAbbreviation == 'NJ') { $state_name = 'New Jersey'; } if ($stateAbbreviation == 'NM') { $state_name = 'New Mexico'; } if ($stateAbbreviation == 'NY') { $state_name = 'New York'; } if ($stateAbbreviation == 'NC') { $state_name = 'North Carolina'; } if ($stateAbbreviation == 'ND') { $state_name = 'North Dakota'; } if ($stateAbbreviation == 'OH') { $state_name = 'Ohio'; } if ($stateAbbreviation == 'OK') { $state_name = 'Oklahoma'; } if ($stateAbbreviation == 'OR') { $state_name = 'Oregon'; } if ($stateAbbreviation == 'PA') { $state_name = 'Pennsylvania'; } if ($stateAbbreviation == 'RI') { $state_name = 'Rhode Island'; } if ($stateAbbreviation == 'SC') { $state_name = 'South Carolina'; } if ($stateAbbreviation == 'SD') { $state_name = 'South Dakota'; } if ($stateAbbreviation == 'TN') { $state_name = 'Tennesee'; } if ($stateAbbreviation == 'TX') { $state_name = 'Texas'; } if ($stateAbbreviation == 'UT') { $state_name = 'Utah'; } if ($stateAbbreviation == 'VT') { $state_name = 'Vermont'; } if ($stateAbbreviation == 'VA') { $state_name = 'Virginia'; } if ($stateAbbreviation == 'WA') { $state_name = 'Washington'; } if ($stateAbbreviation == 'WV') { $state_name = 'West Virginia'; } if ($stateAbbreviation == 'WI') { $state_name = 'Wisconsin'; } if ($stateAbbreviation == 'WY') { $state_name = 'Wyoming'; } if ($stateAbbreviation == 'AS') { $state_name = 'American Samoa'; } if ($stateAbbreviation == 'DC') { $state_name = 'District of Columbia'; } if ($stateAbbreviation == 'FM') { $state_name = 'Micronesia'; } if ($stateAbbreviation == 'GU') { $state_name = 'Guam'; } if ($stateAbbreviation == 'MH') { $state_name = 'Marshall Islands'; } if ($stateAbbreviation == 'MP') { $state_name = 'N. Mariana Islands'; } if ($stateAbbreviation == 'PW') { $state_name = 'Palau'; } if ($stateAbbreviation == 'PR') { $state_name = 'Puerto Rico'; } if ($stateAbbreviation == 'VI') { $state_name = 'Virgin Islands'; } $display_location = $forecastCity . ', ' . $state_name; //$display_location = ', Michigan'; //$state_name = 'Michigan'; //$forecastCity = ''; ?> <?php echo $display_location; ?> 7 Day Weather Forecast with Current Weather Conditions for <?php echo $forecastCity . ', ' . $stateAbbreviation; ?>." />

7 Day & Night Forecast & Conditions
'; } ?>
Current Conditions Maps Radar 2 Radar 1 Satellite Alerts Climate Index
<?php echo 'Current ' . $display_location . ' Weather: ' . $weather; ?>
 '; }else{ echo '' . $temp_f . '°F
'; echo '
' . $temp_c . '°C
'; } if ($windchill_f < '60') { echo '
Wind Chill: ' . $windchill_f . '°F
'; } if ($heat_index_f > '70') { echo '
Heat Index: ' . $heat_index_f . '°F
'; } ?>
Observed at: Elevation: | ' . round($elevation_m, 0) . ' m'; ?>
Timezone:
 
Sky Conditions: Temperature: | ' . $temp_c . '°C'; } ?>
Pressure: | ' . round($pressure_mb, 2) . ' mb'; } ?> Dewpoint: | ' . $dewpoint_c . '°C'; } ?>
Humidity: % Wind: | ' . $wind_dir . ' ' . $wind_kph . ' kph'; } ?>
Feels Like: | ' . $feelslike_c . '°C'; } ?> Visibility: | ' . number_format($visibilityKM,1) . ' km'; ?>
Today's QPF: | ' . $matches9[0][0] . ' mm'; ?> Lat/Long: | ' . round($lon, 2); } ?>
Sunrise: on Sunset: on

7 Day Graphical Forecast Valid:
" width="55" height="55" alt="" title="" />
' . $conditions0 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions2 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions4 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions6 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions8 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions10 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions12 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>

7 Hour Graphical Forecast Valid:
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>

7 Day Textual Forecast - with QPF, Max Wind, Humidity, Snowfall, & Ice Accumulation Forecasts
7 Day & Night Weather Forecast for - ( Fahrenheit & Celsius)
Valid:
' . 'Today'; ?>
'; ?> with a high near [' . $simpleforecastHi_c0 . '°C]'; ?>. wind to around [' . $windSpeedKPH1 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph0 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC1 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
Tonight'; ?>
'; ?> with a low around [' . $simpleforecastLo_c1 . '°C]'; ?>. wind to around [' . $windSpeedKPH2 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph1 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC2 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek3; ?>
'; ?> with a high near [' . $simpleforecastHi_c2 . '°C]'; ?>. wind to around [' . $windSpeedKPH3 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph2 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC3 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek4 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c3 . '°C]'; ?>. wind to around [' . $windSpeedKPH4 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph4 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC4 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek5; ?>
'; ?> with a high near [' . $simpleforecastHi_c4 . '°C]'; ?>. wind to around [' . $windSpeedKPH5 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph4 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC5 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek6 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c5 . '°C]'; ?>. wind to around [' . $windSpeedKPH6 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph5 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC6 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek7; ?>
'; ?> with a high near [' . $simpleforecastHi_c6 . '°C]'; ?>. wind to around [' . $windSpeedKPH7 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph6 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC7 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek8 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c7 . '°C]'; ?>. wind to around [' . $windSpeedKPH8 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph7 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC8 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek9; ?>
'; ?> with a high near [' . $simpleforecastHi_c8 . '°C]'; ?>. wind to around [' . $windSpeedKPH9 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph8 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC9 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek10 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c9 . '°C]'; ?>. wind to around [' . $windSpeedKPH10 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph9 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC10 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek11; ?>
'; ?> with a high near [' . $simpleforecastHi_c10 . '°C]'; ?>. wind to around [' . $windSpeedKPH11 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph10 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC11 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek12 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c11 . '°C]'; ?>. wind to around [' . $windSpeedKPH12 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph11 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC12 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek13; ?>
'; ?> with a high near [' . $simpleforecastHi_c12 . '°C]'; ?>. wind to around [' . $windSpeedKPH13 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph12 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC13 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek14 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c13 . '°C]'; ?>. wind to around [' . $windSpeedKPH14 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph13 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC14 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.



Forecasts for: QPF - Max Wind Speed - Max Humidity - Snowfall - Ice Accumulation
  7 Day and Night - QPF Forecast for
| ' . $qpf_day_in1 . ' in'; ?>
| ' . $qpf_day_in2 . ' in'; ?>
| ' . $qpf_day_in3 . ' in'; ?>
| ' . $qpf_day_in4 . ' in'; ?>
| ' . $qpf_day_in5 . ' in'; ?>
| ' . $qpf_day_in6 . ' in'; ?>
| ' . $qpf_day_in7 . ' in'; ?>
| ' . $qpf_day_in8 . ' in'; ?>
| ' . $qpf_day_in9 . ' in'; ?>
| ' . $qpf_day_in10 . ' in'; ?>
| ' . $qpf_day_in11 . ' in'; ?>
| ' . $qpf_day_in12 . ' in'; ?>
| ' . $qpf_day_in13 . ' in'; ?>
| ' . $qpf_day_in14 . ' in'; ?>

  7 Day and Night - Maximum Wind Speed Forecast for
' . $wind_dir0 . ' @ ' . $maxwind_kph0 . ' kph | ' . $maxwind_mph0 . ' mph'; ?>
' . $wind_dir1 . ' @ ' . $maxwind_kph1 . ' kph | ' . $maxwind_mph1 . ' mph'; ?>
' . $wind_dir2 . ' @ ' . $maxwind_kph2 . ' kph | ' . $maxwind_mph2 . ' mph'; ?>
' . $wind_dir3 . ' @ ' . $maxwind_kph3 . ' kph | ' . $maxwind_mph3 . ' mph'; ?>
' . $wind_dir4 . ' @ ' . $maxwind_kph4 . ' kph | ' . $maxwind_mph4 . ' mph'; ?>
' . $wind_dir5 . ' @ ' . $maxwind_kph5 . ' kph | ' . $maxwind_mph5 . ' mph'; ?>
' . $wind_dir6 . ' @ ' . $maxwind_kph6 . ' kph | ' . $maxwind_mph6 . ' mph'; ?>
' . $wind_dir7 . ' @ ' . $maxwind_kph7 . ' kph | ' . $maxwind_mph7 . ' mph'; ?>
' . $wind_dir8 . ' @ ' . $maxwind_kph8 . ' kph | ' . $maxwind_mph8 . ' mph'; ?>
' . $wind_dir9 . ' @ ' . $maxwind_kph9 . ' kph | ' . $maxwind_mph9 . ' mph'; ?>
' . $wind_dir10 . ' @ ' . $maxwind_kph10 . ' kph | ' . $maxwind_mph10 . ' mph'; ?>
' . $wind_dir11 . ' @ ' . $maxwind_kph11 . ' kph | ' . $maxwind_mph11 . ' mph'; ?>
' . $wind_dir12 . ' @ ' . $maxwind_kph12 . ' kph | ' . $maxwind_mph12 . ' mph'; ?>
' . $wind_dir13 . ' @ ' . $maxwind_kph13 . ' kph | ' . $maxwind_mph13 . ' mph'; ?>

  7 Day and Night - Maximum Humidity Forecast for
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>

  7 Day and Night - Snowfall Totals Forecast for
| ' . $snow_day_in0 . ' in'; ?>
| ' . $snow_day_in1 . ' in'; ?>
| ' . $snow_day_in2 . ' in'; ?>
| ' . $snow_day_in3 . ' in'; ?>
| ' . $snow_day_in4 . ' in'; ?>
| ' . $snow_day_in5 . ' in'; ?>
| ' . $snow_day_in6 . ' in'; ?>
| ' . $snow_day_in7 . ' in'; ?>
| ' . $snow_day_in8 . ' in'; ?>
| ' . $snow_day_in9 . ' in'; ?>
| ' . $snow_day_in10 . ' in'; ?>
| ' . $snow_day_in11 . ' in'; ?>
| ' . $snow_day_in12 . ' in'; ?>
| ' . $snow_day_in13 . ' in'; ?>

  7 Day and Night - Ice Accumulation Forecast for
| ' . $iceaccumIN1 . ' in'; ?>
| ' . $iceaccumIN2 . ' in'; ?>
| ' . $iceaccumIN3 . ' in'; ?>
| ' . $iceaccumIN4 . ' in'; ?>
| ' . $iceaccumIN5 . ' in'; ?>
| ' . $iceaccumIN6 . ' in'; ?>
| ' . $iceaccumIN7 . ' in'; ?>
| ' . $iceaccumIN8 . ' in'; ?>
| ' . $iceaccumIN9 . ' in'; ?>
| ' . $iceaccumIN10 . ' in'; ?>
| ' . $iceaccumIN11 . ' in'; ?>
| ' . $iceaccumIN12 . ' in'; ?>
| ' . $iceaccumIN13 . ' in'; ?>
| ' . $iceaccumIN14 . ' in'; ?>
" width="55" height="55" alt="" title="" />
' . $conditions0 . ''; ?>
 °F'; ?>
 °C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions1 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions3 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions5 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions7 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions9 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>
" width="55" height="55" alt="" title="" />
' . $conditions11 . ''; ?>
 |°F'; ?>
 |°C'; ?>
Chance
Precipitation';?>

7 Hour Graphical Forecast Valid:
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>
'; ?>
°F'; ?>
Chance
Precipitation';?>

7 Day Textual Forecast - with QPF, Max Wind, Humidity, Snowfall, & Ice Accumulation Forecasts
7 Day & Night Weather Forecast for - ( Fahrenheit & Celsius )
Valid:
Tonight'; ?>
'; ?> with a low around [' . $simpleforecastLo_c0 . '°C]'; ?>. wind to around [' . $windSpeedKPH1 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph0 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC1 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek2; ?>
'; ?> with a high near [' . $simpleforecastHi_c1 . '°C]'; ?>. wind to around [' . $windSpeedKPH2 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph1 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC2 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek3 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c2 . '°C]'; ?>. wind to around [' . $windSpeedKPH3 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph2 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC3. '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek4; ?>
'; ?> with a high near [' . $simpleforecastHi_c3 . '°C]'; ?>. wind to around [' . $windSpeedKPH4 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph3 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC4 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek5 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c4 . '°C]'; ?>. wind to around [' . $windSpeedKPH5 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph4 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC5 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek6; ?>
'; ?> with a high near [' . $simpleforecastHi_c5 . '°C]'; ?>. wind to around [' . $windSpeedKPH6 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph5 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC6 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek7 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c6 . '°C]'; ?>. wind to around [' . $windSpeedKPH7 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph6 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC7 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek8; ?>
'; ?> with a high near [' . $simpleforecastHi_c7 . '°C]'; ?>. wind to around [' . $windSpeedKPH8 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph7 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC8 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek9 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c8 . '°C]'; ?>. wind to around [' . $windSpeedKPH9 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph8 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC9 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek10; ?>
'; ?> with a high near [' . $simpleforecastHi_c9 . '°C]'; ?>. wind to around [' . $windSpeedKPH10 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph9 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC10 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek11 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c10 . '°C]'; ?>. wind to around [' . $windSpeedKPH11 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph10 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC11 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek12; ?>
'; ?> with a high near [' . $simpleforecastHi_c11 . '°C]'; ?>. wind to around [' . $windSpeedKPH12 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph11 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC12 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek13 . ' Night'; ?>
'; ?> with a low around [' . $simpleforecastLo_c12 . '°C]'; ?>. wind to around [' . $windSpeedKPH13 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph12 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC13 . '°C]'; ?> with a humidity of and a barometric pressure around . Chance of precipitation is with a qpf of '; ?> ['; ?>.
' . $dayOFweek14; ?>
'; ?> with a high near [' . $simpleforecastHi_c13 . '°C]'; ?>. wind to around [' . $windSpeedKPH14 . ' kph]'; ?>, with wind gusts to near [' . $maxwind_kph13 . ' kph]'; ?>. The dewpoint will be near [' . $DewpointC14 . '°C]'; ?> with a humidity of and a barometric pressure around . The UVI forecast is '; ?>. Chance of precipitation is with a qpf of '; ?> ['; ?>.



Forecasts for: QPF - Max Wind Speed - Max Humidity - Snowfall - Ice Accumulation
  7 Day and Night - QPF Forecast for
| ' . $qpf_day_in1 . ' in'; ?>
| ' . $qpf_day_in2 . ' in'; ?>
| ' . $qpf_day_in3 . ' in'; ?>
| ' . $qpf_day_in4 . ' in'; ?>
| ' . $qpf_day_in5 . ' in'; ?>
| ' . $qpf_day_in6 . ' in'; ?>
| ' . $qpf_day_in7 . ' in'; ?>
| ' . $qpf_day_in8 . ' in'; ?>
| ' . $qpf_day_in9 . ' in'; ?>
| ' . $qpf_day_in10 . ' in'; ?>
| ' . $qpf_day_in11 . ' in'; ?>
| ' . $qpf_day_in12 . ' in'; ?>
| ' . $qpf_day_in13 . ' in'; ?>
| ' . $qpf_day_in14 . ' in'; ?>

  7 Day and Night - Maximum Wind Speed Forecast for
' . $wind_dir0 . ' @ ' . $maxwind_kph0 . ' kph | ' . $maxwind_mph0 . ' mph'; ?>
' . $wind_dir1 . ' @ ' . $maxwind_kph1 . ' kph | ' . $maxwind_mph1 . ' mph'; ?>
' . $wind_dir2 . ' @ ' . $maxwind_kph2 . ' kph | ' . $maxwind_mph2 . ' mph'; ?>
' . $wind_dir3 . ' @ ' . $maxwind_kph3 . ' kph | ' . $maxwind_mph3 . ' mph'; ?>
' . $wind_dir4 . ' @ ' . $maxwind_kph4 . ' kph | ' . $maxwind_mph4 . ' mph'; ?>
' . $wind_dir5 . ' @ ' . $maxwind_kph5 . ' kph | ' . $maxwind_mph5 . ' mph'; ?>
' . $wind_dir6 . ' @ ' . $maxwind_kph6 . ' kph | ' . $maxwind_mph6 . ' mph'; ?>
' . $wind_dir7 . ' @ ' . $maxwind_kph7 . ' kph | ' . $maxwind_mph7 . ' mph'; ?>
' . $wind_dir8 . ' @ ' . $maxwind_kph8 . ' kph | ' . $maxwind_mph8 . ' mph'; ?>
' . $wind_dir9 . ' @ ' . $maxwind_kph9 . ' kph | ' . $maxwind_mph9 . ' mph'; ?>
' . $wind_dir10 . ' @ ' . $maxwind_kph10 . ' kph | ' . $maxwind_mph10 . ' mph'; ?>
' . $wind_dir11 . ' @ ' . $maxwind_kph11 . ' kph | ' . $maxwind_mph11 . ' mph'; ?>
' . $wind_dir12 . ' @ ' . $maxwind_kph12 . ' kph | ' . $maxwind_mph12 . ' mph'; ?>
' . $wind_dir13 . ' @ ' . $maxwind_kph13 . ' kph | ' . $maxwind_mph13 . ' mph'; ?>

  7 Day and Night - Maximum Humidity Forecast for
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>
'; ?>

  7 Day and Night - Snowfall Totals Forecast for
| ' . $snow_day_in0 . ' in'; ?>
| ' . $snow_day_in1 . ' in'; ?>
| ' . $snow_day_in2 . ' in'; ?>
| ' . $snow_day_in3 . ' in'; ?>
| ' . $snow_day_in4 . ' in'; ?>
| ' . $snow_day_in5 . ' in'; ?>
| ' . $snow_day_in6 . ' in'; ?>
| ' . $snow_day_in7 . ' in'; ?>
| ' . $snow_day_in8 . ' in'; ?>
| ' . $snow_day_in9 . ' in'; ?>
| ' . $snow_day_in10 . ' in'; ?>
| ' . $snow_day_in11 . ' in'; ?>
| ' . $snow_day_in12 . ' in'; ?>
| ' . $snow_day_in13 . ' in'; ?>

  7 Day and Night - Ice Accumulation Forecast for
| ' . $iceaccumIN1 . ' in'; ?>
| ' . $iceaccumIN2 . ' in'; ?>
| ' . $iceaccumIN3 . ' in'; ?>
| ' . $iceaccumIN4 . ' in'; ?>
| ' . $iceaccumIN5 . ' in'; ?>
| ' . $iceaccumIN6 . ' in'; ?>
| ' . $iceaccumIN7 . ' in'; ?>
| ' . $iceaccumIN8 . ' in'; ?>
| ' . $iceaccumIN9 . ' in'; ?>
| ' . $iceaccumIN10 . ' in'; ?>
| ' . $iceaccumIN11 . ' in'; ?>
| ' . $iceaccumIN12 . ' in'; ?>
| ' . $iceaccumIN13 . ' in'; ?>
| ' . $iceaccumIN14 . ' in'; ?>
Powered by: Aeris Weather



This Forecast Is Not Available At This Time, Please contact us and we will restore this forecast.
", $json->error->description); } ?>