SfWeatherPlugin is a project mainly written in PHP, based on the MIT license.
This plugin will get to you the weather information from Weather.com
At the first time, you have to register an account to weather.com XML Weather Services (In the account profile). Next you will recive an partner ID and an Licence Key (totaly free).
Registration Link : https://registration.weather.com/ursa/xmloap/step2
In app.yml
all:
weather:
partner: 1039925757 # Your weather.com partner ID
licence: 709b14c526eae8ee # Your weather.com licence key
In your action
[php]
$w = new sfWeather('SZXX0022'); // City code, in the example (Montreux, Switzerland)
$w->setUnit('c'); // "c" for celsius or "f" for Fahrenheit
$w->setForecast(2); // The number of the days for the forecast
$this->weather_data = $w->retrieve(); // Retrive the data from weather.com
You can show the value with a simple print_r('weather_data')
An example is included in the package