CDYNE Weather

From CDYNE Wiki
Jump to navigation Jump to search


CDYNE Weather is a free SOAP Web Service that provides you with up to date weather information in the United States. This information is derived from the National Oceanic and Atmospheric Administration's (NOAA) National Weather service into a clean and easy to parse XML format. The first method offers the city's weather by zip code, and the second shows the weather station's 7 day forecast by zip code. This free Weather Web Service also comes standard with hyperlinks that show images (GIF) of the day's weather conditions, so you can show off your application with visual representations. This service offers two methods:


Weather Visuals Download


CDYNE considers this service a form of advertising its commercial APIs and is hosted on the same redundant servers. CDYNE will continue to update this service as a part of its offering. If for some reason you cannot receive data on a particular weather station or from city information, please inquire.

RECENT CHANGE: We had a recent change to our free services. Please make sure you change the API URL from to as seen below.

Developer/Tester Information

PHP Example

 1 class Weather {
 2 	public $ZipCode;
 3 	public $response;
 5  	public function __construct($ZipCode) {
 6 		$this->ZipCode = $ZipCode;
 7 		$this->getResponse();
 8 	}
 9 	public function getResponse(){
10 		$url = "";
11 		$url .= "?ZIP=" . $this->ZipCode;
12 		$this->response = simplexml_load_file($url) or die("ERROR");
13 	}
14  }
16  $weather = new Weather("23454");
17  var_dump($weather);

Example Source Code