{"id":3712,"date":"2024-01-18T13:38:13","date_gmt":"2024-01-18T04:38:13","guid":{"rendered":"https:\/\/blog.smartlight.co.jp\/?p=3712"},"modified":"2024-01-23T12:07:07","modified_gmt":"2024-01-23T03:07:07","slug":"minecraft%e7%b5%b1%e5%90%88%e7%89%88be%e3%81%a7bocco%e3%82%92%e3%81%97%e3%82%83%e3%81%b9%e3%82%89%e3%81%9b%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.smartlight.co.jp\/?p=3712","title":{"rendered":"Minecraft\u7d71\u5408\u7248(BE)\u3067BOCCO\u3092\u3057\u3083\u3079\u3089\u305b\u3066\u307f\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u30e6\u30ab\u30a4\u5de5\u5b66\u306e\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30dc\u30c3\u30c8\u300c<a href=\"https:\/\/www.bocco.me\/bocco\/\" data-type=\"link\" data-id=\"https:\/\/www.bocco.me\/bocco\/\">BOCCO emo<\/a>\u300d\u3092Minecraft\u5185\u304b\u3089\u3057\u3083\u3079\u3089\u305b\u3066\u307f\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<br>\u203b\u672c\u8a18\u4e8b\u306f<a href=\"https:\/\/blog.smartlight.co.jp\/?p=3623\" data-type=\"link\" data-id=\"https:\/\/blog.smartlight.co.jp\/?p=3623\">\u524d\u56de\u306e\u6295\u7a3f<\/a>\u304b\u3089\u306e\u5ef6\u9577\u306e\u958b\u767a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u958b\u767a\u74b0\u5883<\/h2>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#f9f3d5\">PC\uff1aWindows 11<br>       \u203bRaspberry Pi 4 Model B\u3000(Linux)<br>\u958b\u767a\u30c4\u30fc\u30eb\uff1aNode.js (v18.19.0)<br>\u3000\u3000\u3000\u3000\u3000\u3000Node-RED (v.3.1.3)<br>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\uff1a\u793e\u5185\u306e\u7121\u7ddaLAN<br>Minecraft\uff1av1.20.51 (\u57f7\u7b46\u6642\u70b9)<br><br>\u203bNode-RED\u3092Raspberry Pi\u3067\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u3002Windows\u3067\u52d5\u304b\u3057\u3066\u3044\u308c\u3070\u4e0d\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8b\u524d\u6e96\u5099<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f<a href=\"https:\/\/zenn.dev\/takudooon\/articles\/fc2b8acc7f1bd2\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u8003\u306b\u958b\u767a\u3057\u307e\u3057\u305f\u3002<br>\u3053\u3053\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u30ce\u30fc\u30c9\u306e\u4e00\u90e8\u3092\u5f15\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ce\u30fc\u30c9\u4e2d\u306bBOCCO\u306eACCESS\uff3fTOKEN\u3001REFRESH\uff3fTOKEN\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4e88\u3081\u63a7\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/platform-api.bocco.me\/api-docs\/#overview--%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%83%88%E3%83%BC%E3%82%AF%E3%83%B3%E3%82%92%E5%8F%96%E5%BE%97%E3%83%BB%E6%9B%B4%E6%96%B0%E3%81%99%E3%82%8B\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u3082\u53d6\u5f97\u306e\u65b9\u6cd5\u304c\u8a73\u3057\u304f\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b8c\u6210\u50cf<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"480\" style=\"aspect-ratio: 852 \/ 480;\" width=\"852\" controls src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/ChatSending.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u52d5\u753b\u306e\u3088\u3046\u306b\u3001Minecraft\u304b\u3089\u300c[bocco]\u30de\u30a4\u30af\u30e9\u306e\u30c1\u30e3\u30c3\u30c8\u3092\u8aad\u307f\u4e0a\u3052\u308b\u3088\u300d\u3068\u30c1\u30e3\u30c3\u30c8\u3067\u9001\u308b\u3068\u3001BOCCO\u304c\u3057\u3083\u3079\u3063\u3066\u304f\u308c\u308b\u3002\u5b8c\u6210\u50cf\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30ed\u30fc\u306e\u6982\u8981<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"371\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-8.png\" alt=\"\" class=\"wp-image-3721\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u5168\u4f53\u50cf\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002Minecraft\u304b\u3089\u306e\u30c1\u30e3\u30c3\u30c8\u60c5\u5831\u306f<a href=\"https:\/\/blog.smartlight.co.jp\/?p=3623\" data-type=\"link\" data-id=\"https:\/\/blog.smartlight.co.jp\/?p=3623\">\u524d\u56de\u306e\u6295\u7a3f<\/a>\u306e\u30a4\u30d9\u30f3\u30c8\u540d\u3092\u300c&#8221;PlayerMessage&#8221;\u300d\u306b\u5909\u66f4\u3057\u3066\u53d6\u5f97\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u53d6\u5f97\u3057\u305f\u30c1\u30e3\u30c3\u30c8\u30c7\u30fc\u30bf\u306e\u51e6\u7406<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Websocket\u901a\u4fe1\u3067\u53d6\u5f97\u3057\u305f\u30c1\u30e3\u30c3\u30c8\u306e\u60c5\u5831\u306f\u30c7\u30d0\u30c3\u30b0\u753b\u9762\u3067\u3053\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"230\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-9.png\" alt=\"\" class=\"wp-image-3725\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">json\u30ce\u30fc\u30c9\u5f8c\u306e<span class=\"marker\">Switch\u30ce\u30fc\u30c9<\/span>\u3067\u306f\u3001BOCCO\u306b\u3059\u3079\u3066\u306e\u30c1\u30e3\u30c3\u30c8\u3092\u8aad\u307f\u4e0a\u3052\u3055\u305b\u308b\u306e\u3067\u3042\u308c\u3070\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u4eca\u56de\u306e\u6587\u4e2d\u306e\u300c[bocco]\u300d\u306e\u3088\u3046\u306b<span class=\"marker\">\u6307\u5b9a\u3055\u308c\u305f\u30ef\u30fc\u30c9\u304c\u3042\u308b\u3068\u304d\u306b\u3060\u3051\u8aad\u307f\u4e0a\u3052\u3055\u305b\u305f\u3044\u5834\u5408<\/span>\u306f\u5fc5\u8981\u3068\u306a\u308a\u3001\u305d\u306e\u30ef\u30fc\u30c9\u3082\u304a\u597d\u307f\u3067\u5909\u66f4\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"252\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-10.png\" alt=\"\" class=\"wp-image-3726\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306efunction\u30ce\u30fc\u30c9\u3067\u306f\u3001\u4e0d\u8981\u306a\u6587\u5b57\u5217\u3092\u524a\u9664\u3057\u3001BOCCO\u9001\u4fe1\u7528\u306e\u6587\u5b57\u5217\u306b\u5408\u308f\u305b\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u5909\u66f4\u3092\u52a0\u3048\u305f\u6587\u5b57\u5217\u306f\u3001\u5225\u540d\u79f0\u306emsg.payload2\u306b\u683c\u7d0d\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const text = msg.payload.body.message;\n\nconst texts = text.replace(&quot;[bocco]&quot;,&quot;&quot;);\n\nmsg.payload2 = &#39;{ &quot;text&quot;: &quot;&#39; + texts + &#39;&quot; }&#39;;\n\nreturn msg;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">BOCCO\u3078\u306e\u9001\u4fe1<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u8ff0\u306e\u3001\u4eca\u56de\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f<a href=\"https:\/\/zenn.dev\/takudooon\/articles\/fc2b8acc7f1bd2\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u304b\u3089\u306e\u30ce\u30fc\u30c9\u306e\u7de8\u96c6\u90e8\u5206\u306f\u300c\u767a\u8a71\u5185\u5bb9\u300d\u90e8\u5206\u306e\u307f\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"297\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-11.png\" alt=\"\" class=\"wp-image-3729\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306echange\u30ce\u30fc\u30c9\u3067\u306f\u5148\u307b\u3069payload2\u306b\u683c\u7d0d\u3057\u305f\u30c7\u30fc\u30bf\u3092payload\u306b\u623b\u3057\u3066\u3044\u307e\u3059\u3002<br>\u6700\u5f8c\u306b\u3001http request\u5185\u306eURL\u306e\u30d1\u30b9\u5185\u306b\u3001BOCCO emo\u306b\u767b\u9332\u3057\u305f\u90e8\u5c4bID\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u3067\u30d5\u30ed\u30fc\u306f\u5b8c\u6210\u3067\u3059\u3002\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ce\u30fc\u30c9\u30c7\u30fc\u30bf<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>[ { &quot;id&quot;: &quot;4938ac7ca726c955&quot;, &quot;type&quot;: &quot;uuid&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;uuidVersion&quot;: &quot;v4&quot;, &quot;namespaceType&quot;: &quot;&quot;, &quot;namespace&quot;: &quot;&quot;, &quot;namespaceCustom&quot;: &quot;&quot;, &quot;name&quot;: &quot;&quot;, &quot;field&quot;: &quot;payload&quot;, &quot;fieldType&quot;: &quot;msg&quot;, &quot;x&quot;: 390, &quot;y&quot;: 660, &quot;wires&quot;: [ [ &quot;f81dfbee325de408&quot; ] ] }, { &quot;id&quot;: &quot;b01389a60d486859&quot;, &quot;type&quot;: &quot;inject&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;props&quot;: [ { &quot;p&quot;: &quot;payload&quot; }, { &quot;p&quot;: &quot;topic&quot;, &quot;vt&quot;: &quot;str&quot; } ], &quot;repeat&quot;: &quot;&quot;, &quot;crontab&quot;: &quot;&quot;, &quot;once&quot;: false, &quot;onceDelay&quot;: 0.1, &quot;topic&quot;: &quot;&quot;, &quot;payload&quot;: &quot;&quot;, &quot;payloadType&quot;: &quot;date&quot;, &quot;x&quot;: 180, &quot;y&quot;: 660, &quot;wires&quot;: [ [ &quot;4938ac7ca726c955&quot; ] ] }, { &quot;id&quot;: &quot;f81dfbee325de408&quot;, &quot;type&quot;: &quot;function&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;PlayerMessageCmd&quot;, &quot;func&quot;: &quot;const uuid = msg.payload;\\n\\nconst subscribeMessageJSON = {\\n    \\&quot;header\\&quot;: {\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u30021.18.2\u306e\u6642\u70b9\u3067\u306f1\u3067\u554f\u984c\u306a\u3044\\n        \\&quot;requestId\\&quot;: uuid, \/\/ UUIDv4\u3092\u6307\u5b9a\\n        \\&quot;messageType\\&quot;: \\&quot;commandRequest\\&quot;,  \/\/ \\&quot;commandRequest\\&quot; \u3092\u6307\u5b9a\\n        \\&quot;messagePurpose\\&quot;: \\&quot;subscribe\\&quot;, \/\/ \\&quot;subscribe\\&quot; \u3092\u6307\u5b9a\\n    },\\n    \\&quot;body\\&quot;: {\\n        \\&quot;eventName\\&quot;: \\&quot;PlayerMessage\\&quot; \/\/ \u30a4\u30d9\u30f3\u30c8\u540d\u3092\u6307\u5b9a\u3002\u30a4\u30d9\u30f3\u30c8\u540d\u306f\u5f8c\u8ff0\\n    },\\n};\\n\\n    \/\/ \u30a4\u30d9\u30f3\u30c8\u8cfc\u8aad\u7528\u306eJSON\u3092\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\uff08\u6587\u5b57\u5217\u5316\uff09\u3057\u3066\u9001\u4fe1\\nmsg.payload= JSON.stringify(subscribeMessageJSON);\\n\\nreturn msg;&quot;, &quot;outputs&quot;: 1, &quot;timeout&quot;: 0, &quot;noerr&quot;: 0, &quot;initialize&quot;: &quot;&quot;, &quot;finalize&quot;: &quot;&quot;, &quot;libs&quot;: [], &quot;x&quot;: 600, &quot;y&quot;: 660, &quot;wires&quot;: [ [ &quot;d3da139c84e4a214&quot; ] ] }, { &quot;id&quot;: &quot;d3da139c84e4a214&quot;, &quot;type&quot;: &quot;websocket out&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;server&quot;: &quot;c838b41f45982027&quot;, &quot;client&quot;: &quot;&quot;, &quot;x&quot;: 880, &quot;y&quot;: 660, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;b4e7055c1c21e3d2&quot;, &quot;type&quot;: &quot;comment&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;Minecraft\u304b\u3089\u30c1\u30e3\u30c3\u30c8\u60c5\u5831\u3092\u53d6\u5f97&quot;, &quot;info&quot;: &quot;&quot;, &quot;x&quot;: 200, &quot;y&quot;: 600, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;753af17b26c73d20&quot;, &quot;type&quot;: &quot;websocket in&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;server&quot;: &quot;c838b41f45982027&quot;, &quot;client&quot;: &quot;&quot;, &quot;x&quot;: 130, &quot;y&quot;: 1000, &quot;wires&quot;: [ [ &quot;06dc5f59f065e6ef&quot; ] ] }, { &quot;id&quot;: &quot;06dc5f59f065e6ef&quot;, &quot;type&quot;: &quot;json&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;property&quot;: &quot;payload&quot;, &quot;action&quot;: &quot;&quot;, &quot;pretty&quot;: true, &quot;x&quot;: 250, &quot;y&quot;: 1000, &quot;wires&quot;: [ [ &quot;3610a14c11ec5100&quot; ] ] }, { &quot;id&quot;: &quot;3610a14c11ec5100&quot;, &quot;type&quot;: &quot;switch&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;property&quot;: &quot;payload.body.message&quot;, &quot;propertyType&quot;: &quot;msg&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;cont&quot;, &quot;v&quot;: &quot;[bocco]&quot;, &quot;vt&quot;: &quot;str&quot; } ], &quot;checkall&quot;: &quot;true&quot;, &quot;repair&quot;: false, &quot;outputs&quot;: 1, &quot;x&quot;: 370, &quot;y&quot;: 1000, &quot;wires&quot;: [ [ &quot;e72b362ba0d11290&quot; ] ] }, { &quot;id&quot;: &quot;e72b362ba0d11290&quot;, &quot;type&quot;: &quot;function&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;\u8aad\u307f\u4e0a\u3052\u7528\u30c6\u30ad\u30b9\u30c8\u306b\u5909\u63db&quot;, &quot;func&quot;: &quot;const text = msg.payload.body.message;\\n\\nconst texts = text.replace(\\&quot;[bocco]\\&quot;,\\&quot;\\&quot;);\\n\\nmsg.paypay = &#39;{ \\&quot;text\\&quot;: \\&quot;&#39; + texts + &#39;\\&quot; }&#39;;\\n\\nreturn msg;&quot;, &quot;outputs&quot;: 1, &quot;timeout&quot;: 0, &quot;noerr&quot;: 0, &quot;initialize&quot;: &quot;&quot;, &quot;finalize&quot;: &quot;&quot;, &quot;libs&quot;: [], &quot;x&quot;: 580, &quot;y&quot;: 1000, &quot;wires&quot;: [ [ &quot;88364ad3af6416bf&quot; ] ] }, { &quot;id&quot;: &quot;1ca5079cd767b8fa&quot;, &quot;type&quot;: &quot;change&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;Content-Type&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;set&quot;, &quot;p&quot;: &quot;headers.Content-Type&quot;, &quot;pt&quot;: &quot;msg&quot;, &quot;to&quot;: &quot;application\/json&quot;, &quot;tot&quot;: &quot;str&quot; } ], &quot;action&quot;: &quot;&quot;, &quot;property&quot;: &quot;&quot;, &quot;from&quot;: &quot;&quot;, &quot;to&quot;: &quot;&quot;, &quot;reg&quot;: false, &quot;x&quot;: 340, &quot;y&quot;: 1180, &quot;wires&quot;: [ [ &quot;b6397f8c4990e69e&quot; ] ] }, { &quot;id&quot;: &quot;88364ad3af6416bf&quot;, &quot;type&quot;: &quot;function&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;JSON\u306e\u30c7\u30fc\u30bf\u4f5c\u6210&quot;, &quot;func&quot;: &quot;msg.payload = \\&quot;Bearer \\&quot; + global.get(\\&quot;access_token\\&quot;);\\nreturn msg;\\n&quot;, &quot;outputs&quot;: 1, &quot;timeout&quot;: &quot;&quot;, &quot;noerr&quot;: 0, &quot;initialize&quot;: &quot;&quot;, &quot;finalize&quot;: &quot;&quot;, &quot;libs&quot;: [], &quot;x&quot;: 350, &quot;y&quot;: 1120, &quot;wires&quot;: [ [ &quot;d743485513320ca6&quot; ] ] }, { &quot;id&quot;: &quot;b6397f8c4990e69e&quot;, &quot;type&quot;: &quot;change&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;\u767a\u8a71\u5185\u5bb9\u3092\u5f15\u7528&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;set&quot;, &quot;p&quot;: &quot;payload&quot;, &quot;pt&quot;: &quot;msg&quot;, &quot;to&quot;: &quot;payload2&quot;, &quot;tot&quot;: &quot;msg&quot; } ], &quot;action&quot;: &quot;&quot;, &quot;property&quot;: &quot;&quot;, &quot;from&quot;: &quot;&quot;, &quot;to&quot;: &quot;&quot;, &quot;reg&quot;: false, &quot;x&quot;: 540, &quot;y&quot;: 1180, &quot;wires&quot;: [ [ &quot;01cc7b4bccd16ef9&quot; ] ] }, { &quot;id&quot;: &quot;d743485513320ca6&quot;, &quot;type&quot;: &quot;change&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306e\u6307\u5b9a&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;set&quot;, &quot;p&quot;: &quot;headers.Authorization&quot;, &quot;pt&quot;: &quot;msg&quot;, &quot;to&quot;: &quot;payload&quot;, &quot;tot&quot;: &quot;msg&quot; } ], &quot;action&quot;: &quot;&quot;, &quot;property&quot;: &quot;&quot;, &quot;from&quot;: &quot;&quot;, &quot;to&quot;: &quot;&quot;, &quot;reg&quot;: false, &quot;x&quot;: 610, &quot;y&quot;: 1120, &quot;wires&quot;: [ [ &quot;1ca5079cd767b8fa&quot; ] ] }, { &quot;id&quot;: &quot;01cc7b4bccd16ef9&quot;, &quot;type&quot;: &quot;http request&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;method&quot;: &quot;POST&quot;, &quot;ret&quot;: &quot;txt&quot;, &quot;paytoqs&quot;: &quot;ignore&quot;, &quot;url&quot;: &quot;https:\/\/platform-api.bocco.me\/v1\/rooms\/\u90e8\u5c4bID\u306f\u3053\u3053\u306b\u8a18\u8ff0\/messages\/text&quot;, &quot;tls&quot;: &quot;&quot;, &quot;persist&quot;: false, &quot;proxy&quot;: &quot;&quot;, &quot;insecureHTTPParser&quot;: false, &quot;authType&quot;: &quot;&quot;, &quot;senderr&quot;: false, &quot;headers&quot;: [], &quot;x&quot;: 730, &quot;y&quot;: 1180, &quot;wires&quot;: [ [ &quot;595c7bbdfa751292&quot; ] ] }, { &quot;id&quot;: &quot;595c7bbdfa751292&quot;, &quot;type&quot;: &quot;debug&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;active&quot;: true, &quot;tosidebar&quot;: true, &quot;console&quot;: false, &quot;tostatus&quot;: false, &quot;complete&quot;: &quot;payload&quot;, &quot;targetType&quot;: &quot;msg&quot;, &quot;statusVal&quot;: &quot;&quot;, &quot;statusType&quot;: &quot;auto&quot;, &quot;x&quot;: 890, &quot;y&quot;: 1180, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;6286be1b37454ac7&quot;, &quot;type&quot;: &quot;comment&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;\u30c1\u30e3\u30c3\u30c8\u30c7\u30fc\u30bf\u306e\u51e6\u7406&quot;, &quot;info&quot;: &quot;&quot;, &quot;x&quot;: 160, &quot;y&quot;: 960, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;800fb7d9dde34272&quot;, &quot;type&quot;: &quot;comment&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;BOCCO\u3078\u9001\u4fe1&quot;, &quot;info&quot;: &quot;&quot;, &quot;x&quot;: 140, &quot;y&quot;: 1080, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;f575c2581ab616a4&quot;, &quot;type&quot;: &quot;http request&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;POST&quot;, &quot;method&quot;: &quot;POST&quot;, &quot;ret&quot;: &quot;obj&quot;, &quot;paytoqs&quot;: &quot;ignore&quot;, &quot;url&quot;: &quot;https:\/\/platform-api.bocco.me\/oauth\/token\/refresh&quot;, &quot;tls&quot;: &quot;&quot;, &quot;persist&quot;: false, &quot;proxy&quot;: &quot;&quot;, &quot;insecureHTTPParser&quot;: false, &quot;authType&quot;: &quot;&quot;, &quot;senderr&quot;: false, &quot;headers&quot;: [], &quot;x&quot;: 570, &quot;y&quot;: 860, &quot;wires&quot;: [ [ &quot;060db2ebde4d4f7b&quot;, &quot;835ee884a06eeae6&quot;, &quot;1238dacee4eb47cd&quot; ] ] }, { &quot;id&quot;: &quot;80297e7ca86300ee&quot;, &quot;type&quot;: &quot;inject&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;props&quot;: [ { &quot;p&quot;: &quot;payload&quot; }, { &quot;p&quot;: &quot;topic&quot;, &quot;vt&quot;: &quot;str&quot; } ], &quot;repeat&quot;: &quot;1800&quot;, &quot;crontab&quot;: &quot;&quot;, &quot;once&quot;: true, &quot;onceDelay&quot;: 0.1, &quot;topic&quot;: &quot;\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u5b9a\u671f\u7684\u306b\u53d6\u5f97&quot;, &quot;payload&quot;: &quot;&quot;, &quot;payloadType&quot;: &quot;str&quot;, &quot;x&quot;: 220, &quot;y&quot;: 780, &quot;wires&quot;: [ [ &quot;d6ad18516e9a66f3&quot; ] ] }, { &quot;id&quot;: &quot;060db2ebde4d4f7b&quot;, &quot;type&quot;: &quot;debug&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;active&quot;: true, &quot;tosidebar&quot;: true, &quot;console&quot;: false, &quot;tostatus&quot;: false, &quot;complete&quot;: &quot;payload.access_token&quot;, &quot;targetType&quot;: &quot;msg&quot;, &quot;statusVal&quot;: &quot;&quot;, &quot;statusType&quot;: &quot;auto&quot;, &quot;x&quot;: 820, &quot;y&quot;: 900, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;8d87f25c441c3bd2&quot;, &quot;type&quot;: &quot;change&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u30c8\u30fc\u30af\u30f3&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;set&quot;, &quot;p&quot;: &quot;payload&quot;, &quot;pt&quot;: &quot;msg&quot;, &quot;to&quot;: &quot;{\\&quot;refresh_token\\&quot;:\\&quot;\u3053\u3053\u306b\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u30c8\u30fc\u30af\u30f3\\&quot;}&quot;, &quot;tot&quot;: &quot;json&quot; } ], &quot;action&quot;: &quot;&quot;, &quot;property&quot;: &quot;&quot;, &quot;from&quot;: &quot;&quot;, &quot;to&quot;: &quot;&quot;, &quot;reg&quot;: false, &quot;x&quot;: 380, &quot;y&quot;: 860, &quot;wires&quot;: [ [ &quot;f575c2581ab616a4&quot; ] ] }, { &quot;id&quot;: &quot;d6ad18516e9a66f3&quot;, &quot;type&quot;: &quot;change&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;Content-Type&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;set&quot;, &quot;p&quot;: &quot;headers.Content-Type&quot;, &quot;pt&quot;: &quot;msg&quot;, &quot;to&quot;: &quot;application\/json&quot;, &quot;tot&quot;: &quot;str&quot; } ], &quot;action&quot;: &quot;&quot;, &quot;property&quot;: &quot;&quot;, &quot;from&quot;: &quot;&quot;, &quot;to&quot;: &quot;&quot;, &quot;reg&quot;: false, &quot;x&quot;: 180, &quot;y&quot;: 860, &quot;wires&quot;: [ [ &quot;8d87f25c441c3bd2&quot; ] ] }, { &quot;id&quot;: &quot;1238dacee4eb47cd&quot;, &quot;type&quot;: &quot;change&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306b\u683c\u7d0d&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;set&quot;, &quot;p&quot;: &quot;access_token&quot;, &quot;pt&quot;: &quot;global&quot;, &quot;to&quot;: &quot;payload.access_token&quot;, &quot;tot&quot;: &quot;msg&quot; } ], &quot;action&quot;: &quot;&quot;, &quot;property&quot;: &quot;&quot;, &quot;from&quot;: &quot;&quot;, &quot;to&quot;: &quot;&quot;, &quot;reg&quot;: false, &quot;x&quot;: 800, &quot;y&quot;: 860, &quot;wires&quot;: [ [] ] }, { &quot;id&quot;: &quot;835ee884a06eeae6&quot;, &quot;type&quot;: &quot;debug&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;&quot;, &quot;active&quot;: true, &quot;tosidebar&quot;: true, &quot;console&quot;: false, &quot;tostatus&quot;: false, &quot;complete&quot;: &quot;payload.refresh_token&quot;, &quot;targetType&quot;: &quot;msg&quot;, &quot;statusVal&quot;: &quot;&quot;, &quot;statusType&quot;: &quot;auto&quot;, &quot;x&quot;: 820, &quot;y&quot;: 940, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;626c7a18399f1a13&quot;, &quot;type&quot;: &quot;comment&quot;, &quot;z&quot;: &quot;aa9a062666553723&quot;, &quot;name&quot;: &quot;\u53c2\u8003\u5143\u304b\u3089\u5f15\u7528&quot;, &quot;info&quot;: &quot;&quot;, &quot;x&quot;: 140, &quot;y&quot;: 720, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;c838b41f45982027&quot;, &quot;type&quot;: &quot;websocket-listener&quot;, &quot;path&quot;: &quot;ws&quot;, &quot;wholemsg&quot;: &quot;false&quot; } ]<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30e6\u30ab\u30a4\u5de5\u5b66\u306e\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30dc\u30c3\u30c8\u300cBOCCO emo\u300d\u3092Minecraft\u5185\u304b\u3089\u3057\u3083\u3079\u3089\u305b\u3066\u307f\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002\u203b\u672c\u8a18\u4e8b\u306f\u524d\u56de\u306e\u6295\u7a3f\u304b\u3089\u306e\u5ef6\u9577\u306e\u958b\u767a\u3067\u3059\u3002 \u958b\u767a\u74b0\u5883 PC\uff1aWindows 11 \u203bRaspberry<\/p>\n","protected":false},"author":10,"featured_media":3731,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,11,12],"tags":[15,14,13],"class_list":["post-3712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-intern","category-kobayashi","category-kobayashi-intern","tag-boccoemo","tag-minecraft","tag-node-red"],"jetpack_featured_media_url":"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/title2.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3712"}],"version-history":[{"count":7,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3712\/revisions"}],"predecessor-version":[{"id":3774,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3712\/revisions\/3774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/media\/3731"}],"wp:attachment":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}