Hi, Welcome!
The current UK time is 00:00:00
My Weather Bookmarks
Type in a location such as your Town or City
Weβre currently working behind the scenes to bring you a faster, smoother, and more powerful Swale Weather experience π
Some features may be temporarily unavailable, but weβll be back very soon with exciting improvements β¨
π Follow us on Facebook for updates:
π Swale Weather on Facebook
| Name | Description |
| city | This parameter queries a city in order to retrieve weather informations, and will return the following: city (the requested city), temperature (the temperature in Fahrenheit degrees), skytext (the sky conditions), humidity (the humidity), wind (the wind speed in Imperial units (MPH) & direction), date (the date when temperature was measured), and the day (the day name when temperature was measured) value. |
http://swaleweather.com/api.php?city=Sheerness
{
"apiVersion":"1.0",
"data":{
"location":"Sheerness",
"temperature":"39",
"skytext":"Clear",
"humidity":"55",
"wind":"0 mph",
"date":"2012-12-12",
"day":"Wednesday"
}
}
An example of json decoding would be the following PHP code:
<?php
header('Content-Type: text/plain; charset=utf-8;');
$file = file_get_contents("http://swaleweather.com/api.php?city=Sheerness");
print_r(json_decode($file));
?>
Type in a location such as your Town or City