WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

ICIT Weather Widget

The ICIT Weather Widget provides a simple way to show a weather forecast on your website.

The Widget is Not Displaying

This could either be because there are no weather results returned from OpenWeatherMap for your region or area. You can try being less specific eg. by entering the name of your nearest City rather than Town but if you feel there is a mistake please let us know. Or that no API key has been set in the widget settings and the plugin can't connect to OpenWeatherMap.

Using the shortcode

Put the following shortcode in your post or page to diplay the widget there instead of a widget space: [icit_weather] The shortcode can take the following parameters (value in brackets is the default if parameter is left out):

  • appid - If an appid hasn't been set in the widget settings the shortcode will require it
  • title - Text to override the city/country name ("")
  • city - City to search the weather for ("Liverpool")
  • country - Country the city is in ("UK")
  • celsius - true/false whether to show temperature in celcius ("true")
  • breakdown - true/false whether you want breakdown of wind and humidity ("true")
  • mph - true/false show wind speed in mph or km/h ("true")
  • display - 'none' show just current weather / 'bottom' show the forecast at the bottom / 'right' forecast to the right / 'left' forecast to the left ("none")
  • style - '1', '2' style of colour ("1")
  • primary_day - Primary colour during day ("#FF7C80")
  • primary_night - Primary colour during night ("#FF7C80")
  • secondary_day - Secondary colour during day ("#FFFFFF")
  • secondary_night - Secondary colour during night ("#FFFFFF")
  • credit - true/false show the interconnect/it credit link
  • id - Add a unique id to the shortcode for use with transients, can be left blank if only using 1 shortcode in post

For example:

[icit_weather city="Liverpool" country="UK" celsius="true" breakdown="false" display="none" background_day="red" background_night="rgb(129,160,255)"]

Getting City ID

To find your City's ID go to OpenWeatherMaps City List and use ctrl + F to search for the city name, the ID is the left most column.

Requires: 3.8.1 or higher
Compatible up to: 4.7.1
Last Updated: 5 days ago
Active Installs: 3,000+

Ratings

3 out of 5 stars

Support

0 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,2,2 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
67,6,4
100,2,2
0,6,0
0,1,0
0,1,0
0,1,0
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1