[WordPress] 外掛分享: NOAA Weather

首頁外掛目錄 › NOAA Weather
300+
安裝啟用
★★★★
4.4/5 分(9 則評價)
1494 天前
最後更新
問題解決
WordPress 3.0+ v1.4 上架:2011-03-09

內容簡介

NOAA氣象小工具可以顯示NOAA報告所涵蓋的美國地區(包括聯邦領土和特區)的當前天氣和天氣圖示。它會自動添加必要的信息到WordPress計劃中,以每30分鐘更新一次。

請記得回來評分此外掛並報告此外掛的相容性。如果您有任何問題,問題或建議,請隨時發送電子郵件至[email protected],我會快速回覆。

要查找您的代碼,請轉到此鏈接http://www.weather.gov/xml/current_obs/,在下拉菜單中查找您的州或位置,然後單擊“查找”按鈕。在下一個屏幕上找到您的“觀測地點”,您需要的代碼在位置名稱後面的括號中。

根據您的主題,您可能需要調整CSS文件。可以通過WordPress管理選單通過外掛- >編輯進行編輯。然後,在右上角更改“要編輯的外掛”下拉框為“NOAA氣象”,並單擊右側的“選擇”按鈕。接下來,在下拉框下方的“noaa-weather/noaa-weather.css”文件上單擊“選擇”按鈕。

您可以在同一頁面上有多個小工具實例。

此小工具會定期從NOAA下載XML文件到小工具文件夾中,因此它需要適當的權限。文件需要設置為“0644”,文件夾需要設置為“0755”。有關更多信息,請參閱https://codex.wordpress.org/Changing_File_Permissions。

可能的新功能(無特定順序)

1)氣象警報。
2)3或5天預報。
3)當前條件細節。
4)簡碼在文章/頁面中包含天氣。

已知問題

日誌功能的日期戳沒有使用語言環境設置來計算時間。

請隨時向[email protected]發送電子郵件提出您的建議。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「NOAA Weather」→ 直接安裝(推薦)

原文外掛簡介

The NOAA Weather widget will show the current weather and weather icons for any locale in the United States (including the commonwealths & territories) that NOAA reports on. It will automatically add the necessary information into the WordPress cron to update every 30 minutes.
Please remember to come back and Rate this plugin as well as report the compatibility of this plugin. If you have any questions, problems or suggestions please don’t hesitate to email me at [email protected] and I will respond quickly.
To find your code go to this link http://www.weather.gov/xml/current_obs/ and find your state or location in the dropdown list and click the “Find” button. On the next screen find your ‘Observation Location’ and the code you need is in parenthesis after the location name.
Depending on your theme you may need to tweak the CSS file. Editing is available through the WordPress Admin Menu via Plugins->Editor. Then in the upper-right corner change the ‘plugin to edit’ dropdown box to “NOAA Weather” and click the “Select” button to the right of that. Next click on the “noaa-weather/noaa-weather.css” file just below the dropdown box and “Select” button.
You can have multiple instances of the widget on the same page.
This widget periodically downloads an XML file from NOAA into the widget folder so it will need the appropriate permissions. Files need to be set to “0644” and folders need to be set to “0755”. See https://codex.wordpress.org/Changing_File_Permissions) for more information.
Possible New Features (in no particular order)
1) Weather alerts.
2) 3 or 5 day forecast.
3) Current conditions detail.
4) Shortcodes to include the weather in posts/pages.
Known Bugs
The datestamp for the log function doesn’t use the locale setting to calculate the time.
Please send an email to [email protected] with your suggestions.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon