PHP Classes

Current City Weather: Get weather forecast of a city from Wunderground

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-09-06 (8 years ago) RSS 2.0 feedStarStarStar 48%Total: 1,251 This week: 2All time: 2,954 This week: 607Up
Version License PHP version Categories
current_city_weather 1.0BSD License5.0PHP 5, Web services, Weather
Description Author

This class can be used to get the weather forecast of a given city from the Wunderground site.

It can access the cite and retrieve the page with the weather forecast details for a given city.

The forecast details are returned in an array. Currently it retrieves whether forecast details such as:

- Current Temperature in Fahrenheit and Celsius
- Current Condition image
- Current Condition text
- Humidity
- Dew Point in Fahrenheit and Celsius
- Wind speed in MPH and K/PH
- Wind Direction
- Wind gusts in MPH and K/PH
- Barometric pressure
- Current visibility
- Current Ultra-Violet index
- Cloud height in feet and meters
- Elevation in feet and meters
- Current radar image/link to live radar

Picture of Matthew Johnston
Name: Matthew Johnston <contact>
Classes: 4 packages by
Country: United States United States
Age: 25
All time rank: 1413192 in United States United States
Week rank: 576 Up58 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file Weather_Class.php Class Weather Class
Accessible without login Plain text file example-1 Example Example 1
Accessible without login HTML file Example-1-output Output Example 1 output
Accessible without login Plain text file example-2 Example Example 2
Accessible without login HTML file example-2-output Output Example 2 output
Accessible without login Plain text file radar-example Example example of the radar
Accessible without login HTML file radar-example-output Output radar example output

 Version Control Unique User Downloads Download Rankings  
This week:2
All time:2,954
This week:607Up
 User Ratings  
 All time