PHP Classes
elePHPant
Icontem

PHP Weather: Show widgets of weather got from OpenWeathermap

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (22)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-02 (1 year ago) RSS 2.0 feedStarStarStarStar 69%Total: 505 This week: 1All time: 5,370 This week: 1,076Up
Version License PHP version Categories  
openweather 1.2GNU General Publi...5.0PHP 5, Content management, Weather
Description Author  

This class can show widgets of weather got from OpenWeathermap.

It takes the name of given city and retrieves the weather conditions for that city from the OpenWeathermap site sending a HTTP request to its API Web server.

The retrieved weather information can be cached in local files for a given period of time.

The class can generate HTML and JavaScript to display a widget presenting the location weather details like temperature, location, clouds, wind, humidity, pressure, etc..

The information can be presented in many different languages using different presentation styles like widget size and colors.

Picture of Samy Massoud
Name: Samy Massoud <contact>
Classes: 1 package by
Country: Egypt Egypt
Age: 30
All time rank: 298133 in Egypt Egypt
Week rank: 878 Up15 in Egypt Egypt Up

Details provided by the author  
PHP Weather Class
=============
Weather class: is a powerful,easy and expendable PHP class !

It's very easy to configure , and it comes with Multi themes !
Also it contains forecast for next three days just click icon next to city name.
=======================
		$weather->set_cache(60*60);
	    $weather->set_city('cairo');
	    $weather->set_theme('darkred');
	    echo $weather->get_weather(); 
		
Weather widget: has a Powerful caching system !

=========================================
For Online demo please visit <a href="http://deploy2cloud.com/demo/weather/">Weather class Demo</a>

Default temperature measurement is Celsius, You can change it to Fahrenheit very easy !

	$weather->set_temp_metrics('f');

Weather widget: support many languages and yet can be extended to support more easily !
Currently supported language by widget and weather API are :(English,Italian,Russian and French)
And API Support:

We support the following languages that you can use with the corresponded lang values: English - en, Russian - ru, Italian - it, Spanish - sp, Ukrainian - ua, German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - se, Chinese Traditional - zh_tw, Chinese Simplified - zh_cn, Turkish - tr

Weather widget: can select city by name ie (Alexandria,EG) or id ie (3645532) or Longitude and Latitude ie(28.666668,77.216667)!

	 $weather->set_lang('fr');

Also you can control it's dimension !
	 $weather->set_dimention(550,248);
	 
This features is not enough ? Wait , do you know that you can get all of this info as a row PHP array !
And it's ready to be used with CodeIgniter as a library !

============
if you like it help us to continue developing it
<br>
Visit our online demo and <a href="http://www.deploy2cloud.com/demo/weather/">donate via paypal</a>
Screenshots  
  • main
  Files folder image Files  
File Role Description
Files folder imageweather (3 files, 2 directories)
Accessible without login Plain text file README.md Data Read me

  Files folder image Files  /  weather  
File Role Description
Files folder imagecss (1 file)
Files folder imagedocs (6 files, 1 directory)
  Accessible without login Plain text file demo.php Example Demo
  Accessible without login Plain text file jquery-1.10.2.min.js Data jquery
  Accessible without login Plain text file weathercore.php Class core class

  Files folder image Files  /  weather  /  css  
File Role Description
  Accessible without login Plain text file main.css Data main css

  Files folder image Files  /  weather  /  docs  
File Role Description
Files folder imageresources (11 files)
  Accessible without login HTML file 404.html Doc. Documentation
  Accessible without login HTML file class-weather.html Doc. Documentation
  Accessible without login Plain text file elementlist.js Doc. Documentation
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login HTML file source-class-weather.html Doc. Documentation
  Accessible without login HTML file tree.html Doc. Documentation

  Files folder image Files  /  weather  /  docs  /  resources  
File Role Description
  Accessible without login Image file collapsed.png Icon Icon image
  Accessible without login Plain text file combined.js Doc. Documentation
  Accessible without login Image file footer.png Data Auxiliary data
  Accessible without login Image file inherit.png Icon Icon image
  Accessible without login Image file resize.png Icon Icon image
  Accessible without login Image file sort.png Icon Icon image
  Accessible without login Plain text file style.css Data Auxiliary data
  Accessible without login Image file tree-cleaner.png Icon Icon image
  Accessible without login Image file tree-hasnext.png Icon Icon image
  Accessible without login Image file tree-last.png Data Auxiliary data
  Accessible without login Image file tree-vertical.png Icon Icon image

 Version Control Unique User Downloads Download Rankings  
 95%Total:505All time:5,370
 This week:1This week:1,076Up
User Ratings User Comments (1)  
 All time
Utility:100%StarStarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:69%StarStarStarStar
Rank:275
 
Nice!
1 year ago (Bla)
70%StarStarStarStar