Climate Widget 2 – Standalone is an easy plugin for displaying climate circumstances and forecast for locations the world over.
That is PHP model of our WordPress plugin “Climate Widget 2”
– Search location climate by US, UK, Canada Postalcode, Latitude/Longitude and metropolis identify
– Geocode auto-complete record for cities and international locations
– Potential to set default location
– Potential to auto detect person location utilizing HTML5 Geolocation
– Celsius or Fahrenheit models
– Kilometers or Miles models
– Shows at present’s date, temperature, wind path and pace, forecast for subsequent four days
– Adjustable Width (Observe: minimal of 280 pixels)
– Has its personal distinctive icons
– jQuery, AJAX, cURL, Cache
– Open file weather-widget-2index.php and comply with the STEPs described within the file.
Acquiring API Key
To acquire free API key, go to https://developer.forecast.io/register
Observe:The Climate API is freed from cost and doesn’t require subscription.
Acquiring Geonames Username
To acquire free Geonames Username, go to http://www.geonames.org/login
After registration allow it in your account web page: http://www.geonames.org/manageaccount
– forecast.io API key (you’ll be able to get hold of one without spending a dime at https://developer.forecast.io/register)
– geonames.org username (you’ll be able to get hold of one without spending a dime at http://www.geonames.org/login)
– PHP cURL enabled or file_get_contents.
– PHP server is just not blocking entry to exterior sources (The Climate API on this case).
– PHP server has learn/write permission to retailer the cache recordsdata within the widget folder (mkdir and file_put_contents).
Observe us on Fb or Twitter and get newest information about merchandise updates and upcoming plugins and scripts!
You too can comply with us on Instagram and shortly on YouTube with video tutorials on how one can set up our plugins and scripts!
- 13 Aug 2016
– Added location detection by means of IP tackle
- 06 Apr 2016 Model 2.5
– Climate API has been modified to forecast.io for the reason that previous one turned paid for brand spanking new customers.