Home Plugins custom location weather
Custom Location Weather logo

Custom Location Weather

by paulanunobi on WordPress.org

Display current weather conditions and local time for any specified location using OpenWeatherMap API.

(0)

Custom Location Weather Plugin is a versatile WordPress plugin that displays real-time weather information and local time for any location worldwide. Perfect for travel websites, local businesses, or any site needing to display weather information.

Key Features

  • Real-time weather data display using OpenWeatherMap API
  • Customizable location settings
  • Temperature unit toggle (Celsius/Fahrenheit)
  • Custom weather icons
  • Responsive design
  • Cached data to minimize API calls
  • Easy implementation via shortcode

Basic Usage

Simply use the shortcode [custom_weather_time] to display weather information on any post or page.

Display Options

The weather display includes:
* Current temperature
* Weather condition
* Humidity level
* Wind speed
* Current date and time
* Temperature unit toggle button

Technical Details

File Structure

`

custom-location-weather/
├── custom-location-weather.php (Main plugin file)
├── templates/
│ ├── admin-settings.php (Admin interface template)
│ └── weather-display.php (Frontend display template)
├── assets/
│ ├── css/
│ │ └── style.css (Plugin styles)
│ ├── js/
│ │ └── script.js (Frontend functionality)
│ └── images/
│ └── [weather icons]
`

API Integration

  • Provider: OpenWeatherMap
  • Endpoint: api.openweathermap.org/data/2.5/weather
  • Method: GET
  • Cache Duration: 30 minutes

Security

  • Direct file access prevention
  • Data sanitization
  • XSS prevention
  • CSRF protection
  • Secure API key storage

Support

For support queries, please email hello@paulanunobi.com or visit our support page at https://paulanunobi.com/custom-location-weather.

Future Updates

Planned features for upcoming releases:
* Multiple location support
* Extended forecast display
* Additional customization options
* Widget implementation
* Weather alerts integration

Active installations0+
Weekly downloads
12-7.69%
Version1.0.0
Last updated4/1/2025
WordPress version6.0
Tested up to6.7.2
PHP version7.4
Tags
locationopenweathermaptemperatureweatherweather widget