Weather Cities
Plugin for managing cities and displaying weather forecasts using the Open‑Meteo API. Includes geocoding, date‑based forecast selection, sidebar UI, and admin tools for adding/removing cities. Clean architecture, modern UI, no API keys required.
Install
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/engibaryaneraz/weather-cities/archive/refs/heads/main.zip
Weather Cities 🌍
A lightweight WordPress plugin that lets you manage cities and display their weather using the free Open‑Meteo API (no API key required).
Cities are added in the admin panel by name — the plugin automatically fetches coordinates using the Open‑Meteo Geocoding API.
The frontend displays a clean two‑column layout:
- Left: list of all cities
- Right: weather card for the selected city
- Includes date selector to view weather for today, tomorrow, or any available forecast date.
✨ Features
- Add cities by name (auto‑coordinates via Geocoding API)
- Delete cities directly in the admin panel
- Sidebar layout — city list always visible
- Weather for any date (today / tomorrow / +7 days)
- Beautiful weather card with emoji icons
- Daily forecast (max/min temperature + weather code)
- No API keys needed
- Clean, modern UI (CSS included)
- Single‑file plugin — easy to install and modify
📸 Screenshots
Place these files in the screenshots/ folder:
screenshots/admin.png– admin page with add/delete cityscreenshots/frontend.png– frontend view with city list on the left and weather card on the right
You can capture them from your local WordPress installation after activating the plugin.
📦 Installation
-
Download or clone this repository:
git clone https://github.com/your-username/weather-cities.git