{"id":12300,"date":"2022-07-19T09:00:00","date_gmt":"2022-07-19T00:00:00","guid":{"rendered":"https:\/\/www.mizutan.com\/wordpress\/?p=12300"},"modified":"2025-03-02T08:02:20","modified_gmt":"2025-03-01T23:02:20","slug":"post-12300","status":"publish","type":"post","link":"https:\/\/www.mizutan.com\/wordpress\/?p=12300","title":{"rendered":"openweathermap\u3067python\u306e\u5929\u6c17\u4e88\u5831\u8aad\u4e0a\u3052\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u518d\u30ea\u30d7\u30ec\u30fc\u30b9"},"content":{"rendered":"\n<p>\u3055\u3066\u3001<a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=12276\" target=\"_blank\" rel=\"noreferrer noopener\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u3001openweathermap \u304b\u3089\u5929\u6c17\u60c5\u5831\u3092\u62bd\u51fa\u3057\u307e\u3057\u305f\u3002<br><br>\u3053\u3053\u3067\u306f\u3001\u90fd\u5e02\u540d\uff08\u6771\u4eac\uff09\u3092\u6307\u5b9a\u3057\u3066\u5929\u6c17\u306e\u60c5\u5831\u3092\u62bd\u51fa\u3057\u305f\u306e\u3067\u3059\u304c\u3001<strong>openweathermap \u3067\u306f\u3001\u7def\u5ea6\u3001\u7d4c\u5ea6\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u5929\u6c17\u306e\u60c5\u5831\u3092\u7372\u5f97\u3067\u304d\u308b<\/strong>\u3088\u3046\u3067\u3059\u3002<br><br>\u305d\u308c\u306a\u3089\u3070\u3001<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fe0000\" class=\"has-inline-color\">livedoor \u3084 yahoo!\u5929\u6c17\u3067\u306f\u3067\u304d\u306a\u304b\u3063\u305f\u6211\u304c\u753a\u3067\u3042\u308b\u6a2a\u9808\u8cc0\u306e\u5929\u6c17\u60c5\u5831\u3092\u5f97\u308b\u3053\u3068\u3082\u53ef\u80fd<\/mark><\/strong>\u3067\u3059\u3002<br><br>\u73fe\u5728\u3001\u4f11\u6b62\u3092\u4f59\u5100\u306a\u304f\u3055\u308c\u3066\u3044\u308b<span data-color=\"#ffff00\" style=\"background: linear-gradient(transparent 60%,rgba(255, 255, 0, 0.7) 0);\" class=\"vk_highlighter\">\u300c\u304a\u5929\u6c17\u8aad\u307f\u4e0a\u3052\u300d\u3001\u300c\u96fb\u5149\u63b2\u793a\u677f\u8868\u793a\u300d\u3001\u300cLineNotify \u3078\u306e\u60c5\u5831\u9001\u4ed8\u300d\u3082\u3001\u6a2a\u9808\u8cc0\u306e\u5929\u6c17\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u518d\u958b\u3067\u304d\u308b\u306f\u305a<\/span>\u3067\u3059\u3002<br><br>\u305d\u3053\u3067\u3001\u4f11\u6b62\u3057\u3066\u3044\u308b\u4e09\u3064\u306e\u51e6\u7406\u306e\u3046\u3061\u3001\u307e\u305a\u306f\u3001\u4e00\u756a\u7c21\u5358\u306a\u300c\u304a\u5929\u6c17\u8aad\u307f\u4e0a\u3052\u300d\u3092\u8607\u3089\u305b\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u30a4\u30f3\u30c8\u30ed -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"1208333098\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u904e\u53bb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5229\u7528\u3057\u3066\u30ea\u30d7\u30ec\u30fc\u30b9\u5b9f\u65bd<\/h2>\n\n\n\n<p>\u4e0b\u8a18\u8a18\u4e8b\u306b\u3042\u308b\u3088\u3046\u306b\u3001\u5f53\u521d\u306e\u300c\u304a\u5929\u6c17\u8aad\u307f\u4e0a\u3052\u300d\u306f livedoor \u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br><br>\u3053\u306e <span data-color=\"#ffff00\" style=\"background: linear-gradient(transparent 60%,rgba(255, 255, 0, 0.7) 0);\" class=\"vk_highlighter\">livedoor \u306e\u304a\u5929\u6c17\u60c5\u5831\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u4eca\u56de\u4f7f\u7528\u3059\u308b openweathermap \u306e\u30b5\u30fc\u30d3\u30b9\u3068\u540c\u69d8\u306b json\u30c7\u30fc\u30bf\u3092\u8fd4\u3057\u3066\u304f\u308c\u308b\u3082\u306e<\/span>\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"blogcard\"><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=10106\" target=\"_blank\" rel=\"noopener noreferrer\" data-blogcard=\"1\">\u5929\u6c17\u4e88\u5831\u8aad\u307f\u4e0a\u3052 \u30d6\u30ed\u30b0\u30ab\u30fc\u30c9<\/a><\/div>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001<strong>\u30c7\u30fc\u30bf\u8aad\u307f\u8fbc\u307f\u90e8\u5206\u306f\u3001 URL \u3092\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u5f53\u6642\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u305d\u306e\u307e\u307e\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/strong><br><br>\u305d\u3057\u3066\u3001<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fe0000\" class=\"has-inline-color\">\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u306e\u5929\u6c17\u3001\u6700\u9ad8\u6c17\u6e29\u3001\u6700\u4f4e\u6c17\u6e29\u3092\u53d6\u308a\u8fbc\u3080\u90e8\u5206\u3092\u5909\u66f4\u3059\u308c\u3070\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30ea\u30d7\u30ec\u30fc\u30b9\u304c\u5b8c\u4e86<\/mark>\u3057\u307e\u3059\u3002<br><\/strong><br>\u53c2\u8003\u8a18\u4e8b\u3092\u57fa\u306b\u3001\u5929\u6c17\u3001\u6700\u9ad8\u6c17\u6e29\u3001\u6700\u4f4e\u6c17\u6e29\u304c\u3001\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u306e\u3069\u3053\u306b\u5165\u3063\u3066\u3044\u308b\u304b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br><br>\u53c2\u8003\u8a18\u4e8b\u3067\u306f\u3001\u98a8\u529b\u3001\u964d\u6c34\u78ba\u7387\u3001\u6e7f\u5ea6\u306a\u3069\u3082\u8aad\u307f\u4e0a\u3052\u3055\u305b\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u305a\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u3001\u5929\u6c17\u3001\u6700\u9ad8\u6c17\u6e29\u3001\u6700\u4f4e\u6c17\u6e29\u306e\u307f\u3092\u8aad\u307f\u4e0a\u3052\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>  &quot;daily&quot;: [\n    {\n      &quot;dt&quot;: 1650160800,\n      &quot;sunrise&quot;: 1650139586,\n      &quot;sunset&quot;: 1650186898,\n      &quot;moonrise&quot;: 1650189000,\n      &quot;moonset&quot;: 1650140520,\n      &quot;moon_phase&quot;: 0.5,\n      &quot;temp&quot;: {\n        &quot;day&quot;: 15.2,\n        &quot;min&quot;: 11.1,\n        &quot;max&quot;: 15.74,\n        &quot;night&quot;: 13.71,\n        &quot;eve&quot;: 12.65,\n        &quot;morn&quot;: 11.3\n      },\n      &quot;feels_like&quot;: {\n        &quot;day&quot;: 14.16,\n        &quot;night&quot;: 12.89,\n        &quot;eve&quot;: 11.88,\n        &quot;morn&quot;: 10.1\n      },\n      &quot;pressure&quot;: 1019,\n      &quot;humidity&quot;: 53,\n      &quot;dew_point&quot;: 5.69,\n      &quot;wind_speed&quot;: 4.89,\n      &quot;wind_deg&quot;: 98,\n      &quot;wind_gust&quot;: 5.56,\n      &quot;weather&quot;: [\n        {\n          &quot;id&quot;: 500,\n          &quot;main&quot;: &quot;Rain&quot;,\n          &quot;description&quot;: &quot;\u5c0f\u96e8&quot;,\n          &quot;icon&quot;: &quot;10d&quot;\n        }\n      ],\n      &quot;clouds&quot;: 80,\n      &quot;pop&quot;: 0.52,\n      &quot;rain&quot;: 0.83,\n      &quot;uvi&quot;: 3.89\n    },<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading is-style-vk-heading-default\">\u4eca\u65e5\u306e\u5929\u6c17<\/h3>\n\n\n\n<p>\u4eca\u65e5\u306e\u5929\u6c17\u306f\u3001#today \u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br><br>\u5929\u6c17\u306f\u3001d[0][&#8220;weather&#8221;][0][&#8220;description&#8221;] \u306b\u5165\u3063\u3066\u3044\u307e\u3059\u3002<br><br>\u5f53\u521d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u4eca\u65e5\u306e\u6700\u9ad8\u6c17\u6e29\u3068\u6700\u4f4e\u6c17\u6e29\u306f\u8aad\u307f\u4e0a\u3052\u306e\u5bfe\u8c61\u3068\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br><br>\u3067\u3059\u304c\u3001round(Nt[&#8220;max&#8221;], 1)\u3001 round(Nt[&#8220;min&#8221;],1) \u3067\u53d6\u308a\u8fbc\u3081\u308b\u3088\u3046\u3067\u3059\uff08\u305d\u306e\u305f\u3081\u3001\u307e\u305a\u306f\u3001Nt = d[0][&#8220;temp&#8221;] \u306e\u4e00\u6587\u304c\u5fc5\u8981\u3067\u3059\uff09\u3002<br><br>\u305d\u306e\u305f\u3081\u3001<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fe0000\" class=\"has-inline-color\">\u6700\u9ad8\u6c17\u6e29\u3068\u6700\u4f4e\u6c17\u6e29\u306f\u8aad\u307f\u4e0a\u3052\u306e\u5bfe\u8c61\u3068\u3057\u3066\u8ffd\u52a0<\/mark><\/strong>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-vk-heading-default\">\u660e\u65e5\u306e\u5929\u6c17<\/h3>\n\n\n\n<p>\u660e\u65e5\u306e\u5929\u6c17\u306f\u3001#tommorow \u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br><br>\u5929\u6c17\u306f\u3001d[1][&#8220;weather&#8221;][0][&#8220;description&#8221;] \u306b\u5165\u3063\u3066\u3044\u307e\u3059\u3002<br><br>\u6700\u9ad8\u6c17\u6e29\u3068\u6700\u4f4e\u6c17\u6e29\u306f\u3001round(Nt[&#8220;max&#8221;], 1)\u3001round(Nt[&#8220;min&#8221;],1) \u3067\u53d6\u308a\u8fbc\u3081\u308b\u3088\u3046\u3067\u3059\u3002<br><br>\u4eca\u65e5\u306e\u5929\u6c17\u3068\u540c\u69d8\u306b\u3001\u59cb\u3081\u306b Nt = d[1][&#8220;temp&#8221;] \u306e\u4e00\u6587\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-vk-heading-default\">\u305d\u306e\u4ed6<\/h3>\n\n\n\n<p>\u5f53\u521d\u306f\u3001\u8aad\u307f\u4e0a\u3052\u306e\u6700\u521d\u306b title\uff08\u305f\u3057\u304b\u3001\u300cM\u6708D\u65e5\u306e\u5929\u6c17\u3067\u3059\u300d\u307f\u305f\u3044\u306a\u3053\u3068\uff09\u3092\u8aad\u307f\u4e0a\u3052\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u8aad\u307f\u4e0a\u3052\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u306f\u9664\u5916\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8169621401\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u4fee\u6b63\u5f8c\u30bd\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n\n\n\n<p>\u3053\u3061\u3089\u304c\u3001\u4fee\u6b63\u5f8c\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>#!\/usr\/bin\/env python\n# -*- coding:utf-8 -*-\n\nimport shlex\nimport subprocess\n\nfrom datetime import datetime\n\nimport  urllib.request\nimport json\n\nCMD_SAY = &#39;jsay&#39;\n\ndef main():\n    say_datetime()\n    say_weather()\n    return\n\ndef say_datetime():\n    d = datetime.now()\n    text = &#39;%s\u6708%s\u65e5\u3001%s\u6642%s\u5206%s\u79d2&#39; % (d.month, d.day, d.hour, d.minute, d.second)\n    text = CMD_SAY + &#39; &#39; + text\n    print (text)\n    text = &#39;\/usr\/local\/bin\/&#39; + text\n    print (text)\n    proc = subprocess.Popen(shlex.split(text))\n    proc.communicate()\n    return\n\ndef say_weather():\n#  \u6a2a\u9808\u8cc0  \u5317\u7def\uff08lat\uff0935\u5ea630\u5206\u3001\u6771\u7d4c\uff08lon\uff09139\u5ea645\u5206\n    json_url = &#39;https:\/\/api.openweathermap.org\/data\/2.5\/onecall?lat=35.3&lon=139.45&appid={\u3042\u306a\u305f\u306eappid}&units=metric&lang=ja&exclude=hourly&#39; #API URL\n    print (json_url)\n\n    weather_text = u&#39;%s\u306e\u5929\u6c17\u306f%s\u3067\u3059\u3002&#39;\n    temperature_text = u&#39;%s\u306e\u4e88\u60f3\u6700\u9ad8\u6c17\u6e29\u3001%s\u5ea6\u3001\u4e88\u60f3\u6700\u4f4e\u6c17\u6e29\u3001%s\u5ea6\u3067\u3059\u3002&#39;\n\n    try:\n        r =  urllib.request.urlopen(url=json_url)\n        obj = json.loads( r.read().decode(&#39;utf-8&#39;) )\n\n#        title = obj[&#39;title&#39;]\n\n#        print (title)\n        d = obj[&quot;daily&quot;]\n        # TODAY\n        Nt = d[0][&quot;temp&quot;]\n        today_w = d[0][&quot;weather&quot;][0][&quot;description&quot;]\n        today_w_txt = weather_text % (u&quot;\u4eca\u65e5&quot;, today_w)\n        today_t_txt = temperature_text % (u&quot;\u4eca\u65e5&quot;, round(Nt[&quot;max&quot;]), round(Nt[&quot;min&quot;]))\n\n        # TOMMOROW\n        Nt = d[1][&quot;temp&quot;]\n        tommorow_w = d[1][&quot;weather&quot;][0][&quot;description&quot;]\n        tommorow_w_txt = weather_text % (u&quot;\u660e\u65e5&quot;, tommorow_w)\n        tommorow_t_txt = temperature_text % (u&quot;\u660e\u65e5&quot;, round(Nt[&quot;max&quot;]), round(Nt[&quot;min&quot;]))\n\n        # SAY\n\n#        weather_str = title + &#39; &#39; + today_w_txt + &#39; &#39; + tommorow_w_txt + &#39; &#39; + tommorow_t_txt\n        weather_str = today_w_txt  + &#39; &#39; + today_t_txt + &#39; &#39; + tommorow_w_txt + &#39; &#39; + tommorow_t_txt\n        #weather_str = weather_str.encode(&#39;utf-8&#39;)\n\n        text = &#39;&#39;&#39;%s &#39;%s&#39; &#39;&#39;&#39; % (CMD_SAY, weather_str)\n        print (text)\n        proc = subprocess.Popen(shlex.split(text))\n        proc.communicate()\n    finally:\n        r.close()\n\n    return\n\n\n### Execute\nif __name__ == &quot;__main__&quot;:\n    main()<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u97f3\u58f0\u304c\u6d41\u308c\u307e\u3059\u3002<br><br>\u65e5\u4ed8\u306e\u8aad\u307f\u4e0a\u3052\u306f\uff12\uff5e\uff14\u5f8c\u306b\u8a71\u3057\u3066\u304f\u308c\u307e\u3059\u304c\u3001\u5929\u6c17\u4e88\u5831\u306e\u8aad\u307f\u4e0a\u3052\u306f\u3061\u3087\u3063\u3068\u9045\u304f12\u79d2\u306b\u59cb\u307e\u308a\u307e\u3059\u306e\u3067\u3001\u3061\u3087\u3074\u308a\u5f85\u3064\u304b\u3001\u3076\u3063\u98db\u3070\u3057\u3066\u805e\u3044\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-audio\"><audio controls src=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2022\/04\/tenki.mp3\"><\/audio><\/figure>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"9186857477\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u6c7a\u307e\u3063\u305f\u6642\u9593\u306b\u558b\u3089\u305b\u308b<\/h2>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001crontab\u3092\u4f7f\u7528\u3057\u3066\u6c7a\u307e\u3063\u305f\u6642\u9593\u306b\u304a\u5929\u6c17\u4e88\u5831\u3092\u558b\u3063\u3066\u3082\u3089\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u4ee5\u524d\u306f\u3001\u65e5\u306b\uff15\u56de\u558b\u3089\u305b\u3066\u3044\u307e\u3057\u305f\u304c\u3001\uff18\u6642\u306815\u6642\u306e\uff12\u56de\u306e\u307f\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>0 8,15 * * * python3 \/home\/pi\/python_pg\/open_jtalk\/open<\/code><\/pre><\/div>\n\n\n\n<p>\u305d\u308c\u306b\u3057\u3066\u3082\u3001livedoor \u30b5\u30fc\u30d3\u30b9\u7d42\u4e86\u3001Yahoo!\u5929\u6c17 \u30b5\u30fc\u30d3\u30b9\u7d42\u4e86\u3068\u30b5\u30fc\u30d3\u30b9\u505c\u6b62\u304c\u7d9a\u3044\u3066\u3001\u305d\u306e\u5ea6\u6bce\u306b\u30ea\u30d7\u30ec\u30fc\u30b9\u3092\u884c\u3044\u3001\u5c11\u3005\u304f\u305f\u3073\u308c\u307e\u3057\u305f\u3002<br><br>\u6b21\u306f\u3001openweathermap \u3067\u300cLineNotify \u3078\u306e\u60c5\u5831\u9001\u4ed8\u300d\u306e\u30ea\u30d7\u30ec\u30fc\u30b9\u3092\u5b9f\u65bd\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u25a0\u601d\u3048\u3070\u3001\u300copenjtalk\u300d\u306e\u8a18\u4e8b\u3082\u5897\u3048\u3066\u304d\u307e\u3057\u305f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=10106\" data-type=\"post\" data-id=\"10106\" target=\"_blank\" rel=\"noreferrer noopener\">yahoo!\u5929\u6c17\u306erss\u30c7\u30fc\u30bf\u3067python\u306e\u5929\u6c17\u4e88\u5831\u30c7\u30fc\u30bf\u8aad\u4e0a\u3052\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30ea\u30d7\u30ec\u30fc\u30b9<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1330\" data-type=\"post\" data-id=\"1330\" target=\"_blank\" rel=\"noreferrer noopener\">cron\u3067\u6307\u5b9a\u3057\u305f\u6642\u9593\u306b\u30b3\u30de\u30f3\u30c9\u304c\u6b63\u5e38\u306b\u7a3c\u50cd\u3057\u306a\u3044\u539f\u56e0\u3068\u5bfe\u7b56<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1294\" data-type=\"post\" data-id=\"1294\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b9a\u6642\u306b\u30e9\u30ba\u30d1\u30a4\u3092\u4f7f\u3063\u3066\u6642\u523b\u3068\u6a2a\u6d5c\u306e\u5929\u6c17\u4e88\u5831\u3092\u3057\u3083\u3079\u3089\u305b\u3066\u307f\u308b<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1291\" data-type=\"post\" data-id=\"1291\" target=\"_blank\" rel=\"noreferrer noopener\">\u30e9\u30ba\u30d1\u30a4\u3067\u97f3\u58f0\u51fa\u529b\u3092\u8a66\u3059\uff01OpenJtalk\u306e\u6e96\u5099\u304b\u3089\u558b\u308a\u307e\u3067<\/a><\/li>\n<\/ul>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u8a18\u4e8b\u4e2d\uff13 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8208817721\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>openweathermap\u3092\u4f7f\u3063\u3066\u3001python\u306e\u5929\u6c17\u4e88\u5831\u8aad\u4e0a\u3052\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u518d\u30ea\u30d7\u30ec\u30fc\u30b9\u3059\u308b\u30c1\u30e3\u30ec\u30f3\u30b8\u3092\u884c\u3044\u307e\u3057\u305f\u3002<br><br>openweathermap\u3067\u306f\u3001livedoor\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u540c\u3058\u8aad\u307f\u8fbc\u307f\u3067\u5bfe\u5fdc\u3067\u304d\u308b\u3068\u308f\u304b\u3063\u305f\u306e\u3067\u3001URL\u5909\u66f4\u3060\u3051\u3067\u5bfe\u5fdc\u3067\u304d\u305f\u306e\u306f\u826f\u304b\u3063\u305f\u3067\u3059\u3002<br><br>\u5f8c\u306f\u3001\u7def\u5ea6\u3001\u7d4c\u5ea6\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u6211\u304c\u8857\u300c\u6a2a\u9808\u8cc0\u300d\u306e\u5929\u6c17\u4e88\u5831\u3092\u51fa\u305b\u305f\u306e\u3082\u9032\u5316\u3067\u3059\u306d\u3002<br><br>\u30d7\u30e9\u30b9\u6700\u9ad8\u6c17\u6e29\u3001\u6700\u4f4e\u6c17\u6e29\u3082\u8ffd\u52a0\u3067\u304d\u3066\u3088\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background has-medium-font-size\">\u53c2\u8003\u8a18\u4e8b<br><a href=\"https:\/\/qiita.com\/conqueror\/items\/f94587785fb2230a97cc\" target=\"_blank\" rel=\"noreferrer noopener\">Raspberry Pi\u306b\u73fe\u5728\u6642\u523b\u3001\u5929\u6c17\u4e88\u5831\u3092\u558b\u3089\u305b\u308b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3001\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001openweathermap \u304b\u3089\u5929\u6c17\u60c5\u5831\u3092\u62bd\u51fa\u3057\u307e\u3057\u305f\u3002 \u3053\u3053\u3067\u306f\u3001\u90fd\u5e02\u540d\uff08\u6771\u4eac\uff09\u3092\u6307\u5b9a\u3057\u3066\u5929\u6c17\u306e\u60c5\u5831\u3092\u62bd\u51fa\u3057\u305f\u306e\u3067\u3059\u304c\u3001openweathermap \u3067\u306f\u3001\u7def\u5ea6\u3001\u7d4c\u5ea6\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30d4\u30f3\u30dd\u30a4\u30f3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12302,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[346],"tags":[],"class_list":["post-12300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-openjtalk"],"_links":{"self":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/12300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12300"}],"version-history":[{"count":5,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/12300\/revisions"}],"predecessor-version":[{"id":29313,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/12300\/revisions\/29313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/12302"}],"wp:attachment":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}