
內容簡介
**總結**: Webified Weather 是一個彈性且具有主題感知功能的 WordPress 外掛程式,從美國國家氣象局 (NWS) 擷取天氣資料並顯示,包括目前條件、預報資料、自訂圖示集、管理設定等功能。這個外掛程式旨在提供清晰、可靠且視覺和諧的氣象資訊給維護者和使用者。
**問題與答案**:
1. 從哪裡取得氣象資料?
- 答:氣象資料來自美國國家氣象局 (NWS) API。
2. 這個外掛程式能顯示哪些目前條件?
- 答:目前條件包括圖示、溫度、風速、濕度和氣壓。
3. 外掛程式具有哪些特點?
- 答:支援多天預報、自訂圖示集、管理設定頁面、智能圖示對應、靈活的短碼顯示等多種功能。
4. 如何使用簡單的短碼來呈現外掛程式?
- 答:基本用法為 `[webified_weather]`。
5. 這個外掛程式的開發者是誰?
- 答:由 Ben Winton 開發。
外掛標籤
開發者團隊
原文外掛簡介
Webified Weather is a flexible and theme-aware WordPress plugin that fetches weather data from the National Weather Service (NWS) and displays:
Current conditions (icon, temperature, wind, humidity, pressure)
Forecast data (multi-day)
Custom icon sets (flat, monochrome, night mode)
Admin settings for latitude, longitude, and icon style
Shortcode-based display for easy integration
Smart icon mapping with prioritized phrase matching
The plugin is designed for maintainers and end-users alike, with a focus on clarity, reliability, and visual harmony.
External Services
Data comes from the National Weather Service (weather.gov) API and is used for presenting current and forecast weather within the 50 U.S. states and its territories. The NWS typically updates its data once every hour. In some cases, information about your location when viewing the weather data may be sent to weather.gov in order to provide current and forecast data for your location.
For more information about the data, its terms of use and privacy policy, visit https://www.weather.gov/privacy and https://www.weather.gov/disclaimer.
Features
Fetches live weather and forecast data from weather.gov
Displays current icon, temperature (°F), wind speed (mph), direction, humidity, and pressure (inHg)
Shows multi-day forecast
Supports custom icon sets (day/night aware)
Smart icon mapping with prioritized phrase matching and fallback logic
Admin settings page for location and style with input sanitization
Shortcode for flexible placement and override
Theme-aware layout and styling
Dynamic detection of icon folders in assets/icons/
Includes a stylesheet, webified-style.css, which you can modify or override in your theme
Shortcode
Basic usage:
[webified_weather]
Advanced usage (override settings):
[webified_weather lat=”40.7128″ lon=”-74.0060″ style=”flat”]
Credits
Developed by Ben Winton.
