$pathIndex) return trim(urldecode($pathSegments[$pathIndex])); if ($query_params!=null && array_key_exists($query_param,$query_params)) { return trim(urldecode($query_params[$query_param])); } return null; } function parseDateOrDateTime($value) { $date= DateTime::createFromFormat("!Y-m-d\TH:i:s.uP", $value); if ($date!=null) return $date; $date= DateTime::createFromFormat("!Y-m-d\TH:i:s", $value); if ($date!=null) return $date; $date= DateTime::createFromFormat("!Y-m-d", $value); if ($date!=null) return $date; if ($date==null) { echo $value." no parse"; } return $date; } $segments = explode('/', trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/')); $query_str = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY); parse_str($query_str, $query_params); $location=extractParam($segments,1, $query_params, "location"); $unitGroup=extractParam($segments,2, $query_params, "unitGroup"); if ($unitGroup!="us" && $unitGroup!="metric" ) $unitGroup=""; $startDate=extractParam($segments,3, $query_params, "fromdate"); $endDate=extractParam($segments,4, $query_params, "todate"); $location=trim($location); $encodedLocation=$location!=null?urlencode($location):null; if ($startDate==null) $startDate=""; if ($endDate==null) $endDate=""; $resolvedLocation= $location; if ($resolvedLocation==null) $resolvedLocation="any location"; ?> Historical weather data for <?php echo $resolvedLocation ?> | Visual Crossing

Weather History Dashboard for

Past weather provided by the Visual Crossing Weather API

The weather history data on this page is sourced from Visual Crossing Weather Data. The data includes select hourly and daily weather and climate data elements. These weather elements include temperature, rain, snowfall, and wind as well as astronomical elements such as sunrise and sunset. Many more weather data elements are available in the API and for download.

If you would like to use the data in your own data science analysis project, you can download weather data in common formats such as CSV, Excel and JSON using our free Weather Data Query Builder. Our Weather API enables you to easily include daily and hourly history, forecast and current information into any app, web site or other coding project.