前言介紹
- 這款 WordPress 外掛「Custom Location Weather」是 2025-03-31 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2025-04-01,距離現在已有 31 天。
- 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
weather | location | temperature | openweathermap | weather widget |
內容簡介
**總結:**
Custom Location Weather Plugin 是一個多功能的 WordPress 外掛,可以顯示全球任何位置的即時天氣信息和當地時間。非常適合旅遊網站、本地企業,或任何需要顯示天氣信息的網站。
**問題與答案:**
1. 這個外掛的主要特點有哪些?
- 即時天氣資料顯示,使用 OpenWeatherMap API。
- 可自訂位置設定。
- 溫度單位切換(攝氏/華氏)。
- 自訂天氣圖示。
- 回應式設計。
- 通過短代碼輕鬆實現。
2. 如何使用此外掛?
- 只需使用短代碼 [custom_weather_time],即可在任何文章或頁面上顯示天氣信息。
3. 天氣顯示包括哪些項目?
- 當前溫度
- 天氣情況
- 濕度水平
- 風速
- 當前日期和時間
- 溫度單位切換按鈕
4. 這個外掛的 API 整合是什麼?
- 提供者: OpenWeatherMap
- 端點: api.openweathermap.org/data/2.5/weather
- 方法: GET
- 緩存持續時間: 30 分鐘
5. 這個外掛如何確保安全性?
- 防止直接文件訪問
- 數據消毒
- XSS 防護
- CSRF 保護
- 安全的 API 金鑰儲存
6. 如果需要支援,應該怎麼辦?
- 請發送郵件至 [email protected],或訪問 https://paulanunobi.com/custom-location-weather 上的支援頁面。
7. 未來更新將包括哪些功能?
- 多個位置支援
- 擴展預報顯示
- 額外的自訂選項
- 小工具實現
- 天氣警報整合
原文外掛簡介
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 [email protected] 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
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Custom Location Weather」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
wp-forecast 》你現在正在閱讀 wp-forecast 插件的 readme.txt 文件。, wp-forecast 是一個著名的 WordPress blogging 套件插件,顯示來自 accuweather.com 和/或 weatherbu...。
Weather Station 》Weather Station 是一個外掛,允許您在 WordPress 網站上顯示您可以訪問的氣象站的氣象數據。它完全支援多種型號的氣象站和免費或付費服務,不論您是否擁有一...。
OWM Weather 》您好,OWM天氣是從停產的 WP Cloudy 外掛衍生出來的。它使用許多相同的設置,但是完全獨立。, OWM天氣是一個靈活且易於使用的天氣外掛程式,可使用自定義文章...。
WCP OpenWeather 》- 侧边栏的当前天气和预测小部件以及页面的短代码;- 由免费的OpenWeatherMap API提供天气预报;- 转换温度,风速和气压的计量单位和设置;- 站点管理员的默...。
Weather Forecast Widget 》一般, 此外掛將從您自己的 API 金鑰中擷取 OpenWeatherMap API 的天氣資料,並顯示在小工具中。, 輸入資料, 您可以在小工具中顯示某個城市(輸入資料:城市名...。
Moody Weather 》總結:Moody Weather 是一個外掛,用於顯示指定城市的當前天氣情況,包括溫度和基於情緒的描述,並使用 OpenWeatherMap API 獲取天氣數據。此外,外掛還使用 ...。
Extended Weather 》**總結:**, 這個外掛使用OpenWeather提供即時天氣詳細資訊,包括溫度、濕度、氣壓、風速、日出、日落以及相應的天氣圖示。用戶可以自定義外觀,呈現時尚、現...。
Yet Another Weather Plugin 》「Yet Another Weather Plugin (Yawp)」是一款外掛,可讓你從「openweathermap」取得天氣資訊並顯示在你的網站上。。
HD Weather Widget by The Waypoint 》開發:John Grefe - Twitter Google +, 設計:James Steward - Twitter Google +, 團隊: The Waypoint - http://consultants.thewaypoint.com, 此外掛使用 ...。
Animated Weather Widget 》**總結:**, , 增強您的WordPress網站,並使用OpenWeatherMap API和動畫Meteocons圖標提供時尚、現代的氣象小工具。這款輕量且易於使用的外掛允許您以乾淨、...。
WeatherFlow – Hourly weather forecast widget (1-48 hour forecast) 》**總結:** 使用WeatherFlow,您可以輕鬆地在您的網頁上嵌入詳細的每小時天氣預報,只需使用一個簡短代碼。選擇任何世界各地 OpenWeatherMap廣泛提供預報服務...。