pxWeather
September 24, 2008pxWeather isn’t a full blown (there is no pun here, promise) weather data site, but just a small amount of PHP code that is easy to integrate into an existing website or application to retrieve weather data.
It’s open source and simple to integrate into an application as this snippet shows…
<?php
require_once("pxweather.class.php");
$w = new Weather($city = "Miami");
$w->load();
echo $w->getCurrent("temp.string");
? >
The downside about pxWeather is that it doesn’t seem to have been updated since 2005 so you might want to take a cached copy of the website and any documentation. However it does still work and is a good starting point if you plan on writing your own application code.





