WP Manifestindependent plugin directory
manifest / utilities / cityweather

CityWeather

A WordPress plugin to display current weather for cities worldwide

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/monselj1/cityweather/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A lightweight WordPress plugin that displays current weather conditions for cities worldwide using the OpenWeather API.

CityWeather provides a clean, responsive weather display that allows visitors to search for a city and view its current weather information.

Features

  • Search weather conditions by city and country.
  • Display current temperature in Celsius or Fahrenheit.
  • Show weather conditions and weather icons.
  • Display humidity, wind speed, wind direction, and atmospheric pressure.
  • Responsive design for desktop and mobile devices.
  • Simple integration using a WordPress shortcode.
  • Powered by the OpenWeather API.

Requirements

  • WordPress 6.0 or higher.
  • PHP 7.4 or higher.
  • An API key from OpenWeather.

Installation

  1. Download or clone this repository.
  2. Upload the cityweather folder to your WordPress installation's wp-content/plugins/ directory.
  3. Activate CityWeather from the WordPress Plugins menu.
  4. Go to the plugin settings page.
  5. Enter your OpenWeather API key and save the settings.

OpenWeather API Setup

CityWeather requires an API key from OpenWeather to retrieve weather information.

  1. Visit OpenWeather.
  2. Create an account or sign in.
  3. Generate an API key from your account.
  4. Copy your API key.
  5. Open the CityWeather settings page in WordPress.
  6. Paste your API key and save the settings.

For more information, visit the OpenWeather API documentation.

Usage

After activating the plugin and configuring your API key, add the following shortcode to any WordPress page or post:

[cityweather]

Visitors will be able to enter a city and country to retrieve current weather conditions.

License

CityWeather is licensed under the GNU General Public License v2 or later (GPL-2.0-or-later).

See LICENSE.txt for the full license.

Credits

Weather data provided by OpenWeather.