Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.
jamesfleeting edited this page Sep 14, 2010 · 17 revisions

Welcome to the jquery.simpleWeather wiki!

Usage

$.simpleWeather({
zipcode: ‘76309’,
unit: ‘f’,
success: function(weather) {
$(“#weather”).append(“

weather.city", “weather.region” “weather.country

“);
$(”#weather").append("

Today’s High: “weather.high”° “weather.units.temp” – Today’s Low: “weather.low”° “weather.units.temp

“);
$(”#weather").append("

Current Temp: “weather.temp”° “weather.units.temp

“);
$(”#weather").append("

Wind: “weather.wind.direction” “weather.wind.speed” “weather.units.speed

“);
$(”#weather").append("

Currently: “weather.currently” – Forecast: “weather.forecast

“);
$(”#weather").append(‘

weather.image‘“>

’);
$(“#weather”).append("

Sunrise: “weather.sunrise” – Sunset: “weather.sunset

“);
$(”#weather").append("

Last updated: “weather.updated

“);
$(”#weather").append(‘

weather.link‘“>View forecast at Yahoo! Weather

’);
},
error: function(error) {
alert(error);
}
});
Clone this wiki locally