Plugin / Weather in Japan

ishikawa

Description

Description

このプラグインは日本各地の天気予報を表示するプラグインです。
ウィジェットで簡単にサイドバーに天気予報を表示できるほか、専用コードで任意の場所に天気予報を表示することも可能です。

天気予報のデータは、livedoorが提供している気象データ提供サービス「Weather Hacks」を利用しています。

仕様

複数の地域の中から任意の地域を選び、その天気予報を表示することが可能です。
取得する天気予報の仕様については、livedoorが提供している気象データ提供サービス「Weather Hacks」の仕様をご覧ください。
http://weather.livedoor.com/weather_hacks/

【ウィジェット】
プラグイン有効化後、管理メニューの「外観」から「ウィジェット」へと移動し、”Weather in Japan”ウィジェットをサイドバーに追加してください。
その後、表示日(今日・明日・明後日)と表示したい地域を選択して保存すると天気予報が表示されます。

【ショートコード】
プラグイン有効化後、投稿画面より下記のショートコードを記述することで、記事内の任意の場所に天気予報を表示できます。

[weather-in-japan id="011000,014010" date="1,2,3"]

※コード内の’011000’や’050010’は地域IDです。カンマ区切りで複数設定できます。地域IDは下記のリストよりご確認ください。
※表示日はdate内の数値にカンマ区切りで指定します(今日=1、明日=2、明後日=3)。空・未設定の場合は全て指定するのと同様になります。

【専用コード】
表示したい箇所のPHPファイルに下記のコードを記述することで天気予報を表示することも可能です。

<?php 
  if (function_exists('WIJ_get_weather_in_japan')) {
    echo WIJ_get_weather_in_japan(
      array(
        'id' => array('011000', '050010'),
        'date' => array(1,2,3) //1=today,2=tomorrow,3=dayaftertomorrow
      )
    );
  }
?>

※コード内のid内の’011000’や’050010’は地域IDです。カンマ区切りで複数設定できます。地域IDは下記のリストよりご確認ください。
※表示日はdate内の数値にカンマ区切りで指定します(今日=1、明日=2、明後日=3)。空・未設定の場合は全て指定するのと同様になります。

詳しい利用方法は下記ページにも記載していますのでご覧ください。
https://www.islog.jp/entry/weather-in-japan-wordpress/

利用可能地域一覧

  • 稚内 (011000)
  • 旭川 (012010)
  • 留萌 (012020)
  • 網走 (013010)
  • 北見 (013020)
  • 紋別 (013030)
  • 根室 (014010)
  • 釧路 (014020)
  • 帯広 (014030)
  • 室蘭 (015010)
  • 浦河 (015020)
  • 札幌 (016010)
  • 岩見沢 (016020)
  • 倶知安 (016030)
  • 函館 (017010)
  • 江差 (017020)
  • 青森 (020010)
  • むつ (020020)
  • 八戸 (020030)
  • 盛岡 (030010)
  • 宮古 (030020)
  • 大船渡 (030030)
  • 仙台 (040010)
  • 白石 (040020)
  • 秋田 (050010)
  • 横手 (050020)
  • 山形 (060010)
  • 米沢 (060020)
  • 酒田 (060030)
  • 新庄 (060040)
  • 福島 (070010)
  • 小名浜 (070020)
  • 若松 (070030)
  • 水戸 (080010)
  • 土浦 (080020)
  • 宇都宮 (090010)
  • 大田原 (090020)
  • 前橋 (100010)
  • みなかみ (100020)
  • さいたま (110010)
  • 熊谷 (110020)
  • 秩父 (110030)
  • 千葉 (120010)
  • 銚子 (120020)
  • 館山 (120030)
  • 東京 (130010)
  • 大島 (130020)
  • 八丈島 (130030)
  • 父島 (130040)
  • 横浜 (140010)
  • 小田原 (140020)
  • 新潟 (150010)
  • 長岡 (150020)
  • 高田 (150030)
  • 相川 (150040)
  • 富山 (160010)
  • 伏木 (160020)
  • 金沢 (170010)
  • 輪島 (170020)
  • 福井 (180010)
  • 敦賀 (180020)
  • 甲府 (190010)
  • 河口湖 (190020)
  • 長野 (200010)
  • 松本 (200020)
  • 飯田 (200030)
  • 岐阜 (210010)
  • 高山 (210020)
  • 静岡 (220010)
  • 網代 (220020)
  • 三島 (220030)
  • 浜松 (220040)
  • 名古屋 (230010)
  • 豊橋 (230020)
  • 津 (240010)
  • 尾鷲 (240020)
  • 大津 (250010)
  • 彦根 (250020)
  • 京都 (260010)
  • 舞鶴 (260020)
  • 大阪 (270000)
  • 神戸 (280010)
  • 豊岡 (280020)
  • 奈良 (290010)
  • 風屋 (290020)
  • 和歌山 (300010)
  • 潮岬 (300020)
  • 鳥取 (310010)
  • 米子 (310020)
  • 松江 (320010)
  • 浜田 (320020)
  • 西郷 (320030)
  • 岡山 (330010)
  • 津山 (330020)
  • 広島 (340010)
  • 庄原 (340020)
  • 下関 (350010)
  • 山口 (350020)
  • 柳井 (350030)
  • 萩 (350040)
  • 徳島 (360010)
  • 日和佐 (360020)
  • 高松 (370000)
  • 松山 (380010)
  • 新居浜 (380020)
  • 宇和島 (380030)
  • 高知 (390010)
  • 室戸岬 (390020)
  • 清水 (390030)
  • 福岡 (400010)
  • 八幡 (400020)
  • 飯塚 (400030)
  • 久留米 (400040)
  • 佐賀 (410010)
  • 伊万里 (410020)
  • 長崎 (420010)
  • 佐世保 (420020)
  • 厳原 (420030)
  • 福江 (420040)
  • 熊本 (430010)
  • 阿蘇乙姫 (430020)
  • 牛深 (430030)
  • 人吉 (430040)
  • 大分 (440010)
  • 中津 (440020)
  • 日田 (440030)
  • 佐伯 (440040)
  • 宮崎 (450010)
  • 延岡 (450020)
  • 都城 (450030)
  • 高千穂 (450040)
  • 鹿児島 (460010)
  • 鹿屋 (460020)
  • 種子島 (460030)
  • 名瀬 (460040)
  • 那覇 (471010)
  • 名護 (471020)
  • 久米島 (471030)
  • 南大東 (472000)
  • 宮古島 (473000)
  • 石垣島 (474010)
  • 与那国島 (474020)
    ※カッコ内は地域ID

Ratings

4
1 reviews

Rating breakdown

Details Information

Version

1.3.3

First Released

31 Jan, 2014

Total Downloads

2,329

Wordpress Version

4.0 or higher

Tested up to:

5.1.3

Require PHP Version:

5.4 or higher

Tags

Contributors

Languages

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.