{"id":3736,"date":"2024-01-19T16:05:49","date_gmt":"2024-01-19T07:05:49","guid":{"rendered":"https:\/\/blog.smartlight.co.jp\/?p=3736"},"modified":"2024-01-23T12:07:29","modified_gmt":"2024-01-23T03:07:29","slug":"minecraft%e7%b5%b1%e5%90%88%e7%89%88be%e3%81%ab%e5%9c%a8%e3%83%bb%e4%b8%8d%e5%9c%a8%e6%83%85%e5%a0%b1%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%83%bcenocean-cpd-j%ef%bc%88wh","status":"publish","type":"post","link":"https:\/\/blog.smartlight.co.jp\/?p=3736","title":{"rendered":"Minecraft\u7d71\u5408\u7248(BE)\u306b\u5728\u30fb\u4e0d\u5728\u60c5\u5831\u3092\u8868\u793a\u3057\u3066\u307f\u305f\u30fcEnOcean CPD-J\uff08WH\uff09"},"content":{"rendered":"\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001<a href=\"https:\/\/smartlight.co.jp\/product\/optex-enocean-presence-detection-sensor-cpd-j\/\">OPTEX EnOcean \u30ef\u30a4\u30e4\u30ec\u30b9\u5b58\u5728\u691c\u77e5\u30bb\u30f3\u30b5\u30fc\uff08\u5728\u5e2d\u691c\u77e5\u30bb\u30f3\u30b5\u30fc\uff09 CPD-J<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3001\u5728\u5e2d\u72b6\u6cc1\u3092Minecraft\u306b\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u958b\u767a\u74b0\u5883<\/h2>\n\n\n\n<p class=\"has-background\" 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><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8b\u524d\u6e96\u5099<\/h2>\n\n\n\n<p>EnOcean CPD-J \u306e\u52d5\u4f5c\u306b\u306f\u30ea\u30c1\u30a6\u30e0\u96fb\u6c60\uff08<a href=\"https:\/\/www.amazon.co.jp\/s?k=cr123a&amp;adgrpid=56112371034&amp;gclid=Cj0KCQiAtaOtBhCwARIsAN_x-3L7vCORSs6fCeM40ahxp70QRi9iUCwz6JTOswtKclJ0gT-L0G2QhdgaAr_sEALw_wcB&amp;hvadid=651038886627&amp;hvdev=c&amp;hvlocphy=1009308&amp;hvnetw=g&amp;hvqmt=e&amp;hvrand=2874019744826700873&amp;hvtargid=kwd-295202002546&amp;hydadcr=4771_13316645&amp;jp-ad-ap=0&amp;tag=googhydr-22&amp;ref=pd_sl_4ey5g10glc_e\">CR123A<\/a>)\u30921\u500b\u4f7f\u7528\u3057\u307e\u3059\u3002<br>\u5074\u9762\u306e\u30cd\u30b8\u3092\u30c9\u30e9\u30a4\u30d0\u30fc\u3067\u958b\u3051\u3001\u96fb\u6c60\u3092\u5dee\u3057\u8fbc\u3093\u3067\u304f\u3060\u3055\u3044\u3002<br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\uff08\u96fb\u6c60\uff11\u500b\u3067\u7d04\uff15\u5e74\u9593\u5bff\u547d\u304c\u3042\u308b\u305d\u3046\u3067\u3059\u3002\uff09<\/mark><\/p>\n\n\n\n<p>\u307e\u305f\u3001CPD-J \u306e\u7121\u7dda\u3092\u62fe\u3046\u305f\u3081\u3001\u30ec\u30b7\u30fc\u30d0\u30fc\u3068\u306a\u308b <a href=\"https:\/\/www.switch-science.com\/products\/1845\">USB 400J<\/a> \u3092\u3001<br>Node-RED\u3092\u52d5\u304b\u3059\u30c7\u30d0\u30a4\u30b9\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-small_size\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"360\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-12-640x360.png\" alt=\"\" class=\"wp-image-3737\"\/><\/figure>\n<\/div>\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\/detectSitting.mp4\"><\/video><\/figure>\n\n\n\n<p><br>\u52d5\u753b\u306e\u3088\u3046\u306b\u3001\u30bb\u30f3\u30b5\u306e\u524d\u306b\u3044\u308b\u3068\u6570\u5341\u79d2\u5f8c\u306b\u5728\u5e2d\u4e2d\u306b\u3001\u30bb\u30f3\u30b5\u3092\u5916\u306b\u5411\u3051\u308b\u3068\u6570\u5341\u79d2\u5f8c\u306b\u96e2\u5e2d\u4e2d\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\uff08\u4e0b\u306e\u6e29\u5ea6\u306f\u30e9\u30ba\u30d1\u30a4CPU\u306e\u6e29\u5ea6\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\uff09<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30ed\u30fc\u306e\u6982\u8981<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-13-1024x333.png\" alt=\"\" class=\"wp-image-3739\" srcset=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-13-1024x333.png 1024w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-13-300x98.png 300w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-13-768x250.png 768w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-13.png 1253w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-13-1024x333.png 856w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30d5\u30ed\u30fc\u306f\u4e0a\u306e\u901a\u308a\u3067\u3059\u3002\u300cserial in\u300d\u30ce\u30fc\u30c9\u3067 USB 400J \u306e\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u691c\u7d22\u30fb\u63a5\u7d9a\u3057\u3001enocean-decoeder\u30ce\u30fc\u30c9\u3067\u30c7\u30b3\u30fc\u30c9\u3057\u307e\u3059\u3002\u30c7\u30b3\u30fc\u30c0\u30fc\u306f\u30d1\u30ec\u30c3\u30c8\u304b\u3089\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"379\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-14.png\" alt=\"\" class=\"wp-image-3740\"\/><\/figure>\n<\/div>\n\n\n<p>\u521d\u3081\u306eSwitch\u30ce\u30fc\u30c9\u306b\u306f\u3001CPD-J \u306e\u56fa\u6709ID\u3067\u53d6\u5f97\u60c5\u5831\u3092\u7d5e\u308a\u307e\u3059\u3002<br>ID\u306f\u672c\u4f53\u5f8c\u308d\u307e\u305f\u306f\u30c9\u30e9\u30a4\u30d0\u3067\u958b\u3051\u305f\u4e2d\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-15-1024x556.png\" alt=\"\" class=\"wp-image-3741\" srcset=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-15-1024x556.png 1024w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-15-300x163.png 300w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-15-768x417.png 768w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-15-1536x834.png 1536w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-15-2048x1112.png 2048w, https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-15-1024x556.png 856w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>\u6b21\u306eSwitch \u30ce\u30fc\u30c9\u3067\u306f\u3001\u5728\u5e2d\u30fb\u96e2\u5e2d\u3092\u5224\u65ad\u3059\u308b\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br>\u4f55\u5ea6\u304b\u8a66\u884c\u3057\u305f\u7d50\u679c\u3001Data4\u306b\u542b\u307e\u308c\u308b\u53d6\u5f97\u5024\u304c\u3001\u983b\u7e41\u306b\u5909\u5316\u3057\u3066\u3057\u307e\u3063\u305f\u305f\u3081\u3001<br>\u5909\u5316\u3057\u306a\u304b\u3063\u305f\u6587\u5b57\u5217\u306e\u307f\u8981\u7d20\u306b\u542b\u3080\u304b\u5426\u304b\u3067\u3001\u5224\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"424\" height=\"278\" src=\"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/image-16.png\" alt=\"\" class=\"wp-image-3742\"\/><\/figure>\n<\/div>\n\n\n<p>\u5f8c\u308d\u306b\u7d9a\u304f\u3001UUID\u3001function\u30ce\u30fc\u30c9\u306f\u3001<a href=\"https:\/\/blog.smartlight.co.jp\/?p=3623\">\u4ee5\u524d\u306e\u8a18\u4e8b<\/a>\u306b\u3066\u8a73\u7d30\u3092\u7d39\u4ecb\u3057\u3066\u307e\u3059\u3002<br>\u4eca\u56de\u306fMinecraft\u306e\u30b9\u30b3\u30a2\u30dc\u30fc\u30c9\u306b\u8868\u793a\u3057\u305f\u3044\u305f\u3081\u3001<br>\u8868\u793a\u5207\u66ff\u306e\u3067\u304d\u308b\u3088\u3046\uff12\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/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;f15c2e3daa13cbc1&quot;, &quot;type&quot;: &quot;serial in&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;&quot;, &quot;serial&quot;: &quot;&quot;, &quot;x&quot;: 110, &quot;y&quot;: 360, &quot;wires&quot;: [ [ &quot;e4af51c315e81fda&quot; ] ] }, { &quot;id&quot;: &quot;e4af51c315e81fda&quot;, &quot;type&quot;: &quot;enocean-decoder&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;&quot;, &quot;x&quot;: 330, &quot;y&quot;: 360, &quot;wires&quot;: [ [ &quot;50669bf26446908f&quot; ] ] }, { &quot;id&quot;: &quot;50669bf26446908f&quot;, &quot;type&quot;: &quot;switch&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;&quot;, &quot;property&quot;: &quot;payload.OriginatorID&quot;, &quot;propertyType&quot;: &quot;msg&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;eq&quot;, &quot;v&quot;: &quot;05860dd1&quot;, &quot;vt&quot;: &quot;str&quot; } ], &quot;checkall&quot;: &quot;true&quot;, &quot;repair&quot;: false, &quot;outputs&quot;: 1, &quot;x&quot;: 510, &quot;y&quot;: 360, &quot;wires&quot;: [ [ &quot;c319bc4718022b23&quot; ] ] }, { &quot;id&quot;: &quot;c319bc4718022b23&quot;, &quot;type&quot;: &quot;switch&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;&quot;, &quot;property&quot;: &quot;payload.Data4&quot;, &quot;propertyType&quot;: &quot;msg&quot;, &quot;rules&quot;: [ { &quot;t&quot;: &quot;cont&quot;, &quot;v&quot;: &quot;000f&quot;, &quot;vt&quot;: &quot;str&quot; }, { &quot;t&quot;: &quot;cont&quot;, &quot;v&quot;: &quot;746&quot;, &quot;vt&quot;: &quot;str&quot; } ], &quot;checkall&quot;: &quot;true&quot;, &quot;repair&quot;: false, &quot;outputs&quot;: 2, &quot;x&quot;: 650, &quot;y&quot;: 360, &quot;wires&quot;: [ [ &quot;18fd0e0c30096e23&quot;, &quot;8ce45f8a7af475e1&quot;, &quot;ba0ec42c10945ce3&quot; ], [ &quot;5dbd309dfdd1fa50&quot;, &quot;62255b46c4d4731d&quot;, &quot;4b57a733ed26feae&quot; ] ] }, { &quot;id&quot;: &quot;18fd0e0c30096e23&quot;, &quot;type&quot;: &quot;debug&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;\u96e2\u5e2d&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;: 910, &quot;y&quot;: 240, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;5dbd309dfdd1fa50&quot;, &quot;type&quot;: &quot;debug&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;\u5728\u5e2d&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;: 910, &quot;y&quot;: 480, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;62255b46c4d4731d&quot;, &quot;type&quot;: &quot;uuid&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&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;payout&quot;, &quot;fieldType&quot;: &quot;msg&quot;, &quot;x&quot;: 910, &quot;y&quot;: 400, &quot;wires&quot;: [ [ &quot;e3a28ca21a157f19&quot; ] ] }, { &quot;id&quot;: &quot;e3a28ca21a157f19&quot;, &quot;type&quot;: &quot;function&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;scoreboard\u306b\u30bb\u30c3\u30c82&quot;, &quot;func&quot;: &quot;const uuid = msg.payout;\\n\\nconst commandRequestMessageJSON = {\\n    \\&quot;header\\&quot;: {\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;requestId\\&quot;: uuid, \/\/ UUIDv4\u3092\u751f\u6210\u3057\u3066\u6307\u5b9a\\n        \\&quot;messageType\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n        \\&quot;messagePurpose\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n    },\\n    \\&quot;body\\&quot;: {\\n        \\&quot;origin\\&quot;: {\\n            \\&quot;type\\&quot;: \\&quot;player\\&quot; \/\/ \u8ab0\u304c\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u304b\u3092\u6307\u5b9a\uff08\u305f\u3060\u3057\u3001Player\u4ee5\u5916\u306b\u3069\u306e\u5024\u304c\u5229\u7528\u53ef\u80fd\u304b\u306f\u8981\u8abf\u67fb\uff09\\n        },\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;commandLine\\&quot;: \\&quot;scoreboard players set host:\u00a7b\u5728\u5e2d\u4e2d test 1\\&quot;, \/\/ \u30de\u30a4\u30af\u30e9\u3067\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff08\u3053\u3053\u3067\u306f\u30cb\u30ef\u30c8\u30ea\u3092\u30b9\u30dd\u30fc\u30f3\u3055\u305b\u308b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff09\\n    }\\n};\\n\\nmsg.payload = JSON.stringify(commandRequestMessageJSON);\\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;: 1100, &quot;y&quot;: 400, &quot;wires&quot;: [ [ &quot;17c76117e65faa44&quot; ] ] }, { &quot;id&quot;: &quot;48277ec9869a3af7&quot;, &quot;type&quot;: &quot;function&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;scoreboard\u306b\u30bb\u30c3\u30c8&quot;, &quot;func&quot;: &quot;const uuid = msg.payout;\\n\\nconst commandRequestMessageJSON = {\\n    \\&quot;header\\&quot;: {\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;requestId\\&quot;: uuid, \/\/ UUIDv4\u3092\u751f\u6210\u3057\u3066\u6307\u5b9a\\n        \\&quot;messageType\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n        \\&quot;messagePurpose\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n    },\\n    \\&quot;body\\&quot;: {\\n        \\&quot;origin\\&quot;: {\\n            \\&quot;type\\&quot;: \\&quot;player\\&quot; \/\/ \u8ab0\u304c\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u304b\u3092\u6307\u5b9a\uff08\u305f\u3060\u3057\u3001Player\u4ee5\u5916\u306b\u3069\u306e\u5024\u304c\u5229\u7528\u53ef\u80fd\u304b\u306f\u8981\u8abf\u67fb\uff09\\n        },\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;commandLine\\&quot;: \\&quot;scoreboard players set host:\u00a7c\u96e2\u5e2d\u4e2d test 1\\&quot;, \/\/ \u30de\u30a4\u30af\u30e9\u3067\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff08\u3053\u3053\u3067\u306f\u30cb\u30ef\u30c8\u30ea\u3092\u30b9\u30dd\u30fc\u30f3\u3055\u305b\u308b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff09\\n    }\\n};\\n\\nmsg.payload = JSON.stringify(commandRequestMessageJSON);\\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;: 1100, &quot;y&quot;: 280, &quot;wires&quot;: [ [ &quot;17c76117e65faa44&quot; ] ] }, { &quot;id&quot;: &quot;8ce45f8a7af475e1&quot;, &quot;type&quot;: &quot;uuid&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&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;payout&quot;, &quot;fieldType&quot;: &quot;msg&quot;, &quot;x&quot;: 910, &quot;y&quot;: 280, &quot;wires&quot;: [ [ &quot;48277ec9869a3af7&quot; ] ] }, { &quot;id&quot;: &quot;17c76117e65faa44&quot;, &quot;type&quot;: &quot;websocket out&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;&quot;, &quot;server&quot;: &quot;c838b41f45982027&quot;, &quot;client&quot;: &quot;&quot;, &quot;x&quot;: 1340, &quot;y&quot;: 360, &quot;wires&quot;: [] }, { &quot;id&quot;: &quot;4b57a733ed26feae&quot;, &quot;type&quot;: &quot;uuid&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&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;payout&quot;, &quot;fieldType&quot;: &quot;msg&quot;, &quot;x&quot;: 910, &quot;y&quot;: 440, &quot;wires&quot;: [ [ &quot;71b87a59800672cd&quot; ] ] }, { &quot;id&quot;: &quot;71b87a59800672cd&quot;, &quot;type&quot;: &quot;function&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;scoreboard\u3092\u30ea\u30bb\u30c3\u30c82&quot;, &quot;func&quot;: &quot;const uuid = msg.payout;\\n\\nconst commandRequestMessageJSON = {\\n    \\&quot;header\\&quot;: {\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;requestId\\&quot;: uuid, \/\/ UUIDv4\u3092\u751f\u6210\u3057\u3066\u6307\u5b9a\\n        \\&quot;messageType\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n        \\&quot;messagePurpose\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n    },\\n    \\&quot;body\\&quot;: {\\n        \\&quot;origin\\&quot;: {\\n            \\&quot;type\\&quot;: \\&quot;player\\&quot; \/\/ \u8ab0\u304c\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u304b\u3092\u6307\u5b9a\uff08\u305f\u3060\u3057\u3001Player\u4ee5\u5916\u306b\u3069\u306e\u5024\u304c\u5229\u7528\u53ef\u80fd\u304b\u306f\u8981\u8abf\u67fb\uff09\\n        },\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;commandLine\\&quot;: \\&quot;scoreboard players reset host:\u00a7c\u96e2\u5e2d\u4e2d test\\&quot;, \/\/ \u30de\u30a4\u30af\u30e9\u3067\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff08\u3053\u3053\u3067\u306f\u30cb\u30ef\u30c8\u30ea\u3092\u30b9\u30dd\u30fc\u30f3\u3055\u305b\u308b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff09\\n    }\\n};\\n\\nmsg.payload = JSON.stringify(commandRequestMessageJSON);\\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;: 1110, &quot;y&quot;: 440, &quot;wires&quot;: [ [ &quot;17c76117e65faa44&quot; ] ] }, { &quot;id&quot;: &quot;ba0ec42c10945ce3&quot;, &quot;type&quot;: &quot;uuid&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&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;payout&quot;, &quot;fieldType&quot;: &quot;msg&quot;, &quot;x&quot;: 910, &quot;y&quot;: 320, &quot;wires&quot;: [ [ &quot;5bf7a95e4ab0a66f&quot; ] ] }, { &quot;id&quot;: &quot;5bf7a95e4ab0a66f&quot;, &quot;type&quot;: &quot;function&quot;, &quot;z&quot;: &quot;94835f73f480d5e8&quot;, &quot;name&quot;: &quot;scoreboard\u3092\u30ea\u30bb\u30c3\u30c8&quot;, &quot;func&quot;: &quot;const uuid = msg.payout;\\n\\nconst commandRequestMessageJSON = {\\n    \\&quot;header\\&quot;: {\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;requestId\\&quot;: uuid, \/\/ UUIDv4\u3092\u751f\u6210\u3057\u3066\u6307\u5b9a\\n        \\&quot;messageType\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n        \\&quot;messagePurpose\\&quot;: \\&quot;commandRequest\\&quot;, \/\/ commandRequest\u3092\u6307\u5b9a\\n    },\\n    \\&quot;body\\&quot;: {\\n        \\&quot;origin\\&quot;: {\\n            \\&quot;type\\&quot;: \\&quot;player\\&quot; \/\/ \u8ab0\u304c\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u304b\u3092\u6307\u5b9a\uff08\u305f\u3060\u3057\u3001Player\u4ee5\u5916\u306b\u3069\u306e\u5024\u304c\u5229\u7528\u53ef\u80fd\u304b\u306f\u8981\u8abf\u67fb\uff09\\n        },\\n        \\&quot;version\\&quot;: 1, \/\/ \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f31.18.2\u6642\u70b9\u3067\u306f1\u3067OK\\n        \\&quot;commandLine\\&quot;: \\&quot;scoreboard players reset host:\u00a7b\u5728\u5e2d\u4e2d test\\&quot;, \/\/ \u30de\u30a4\u30af\u30e9\u3067\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff08\u3053\u3053\u3067\u306f\u30cb\u30ef\u30c8\u30ea\u3092\u30b9\u30dd\u30fc\u30f3\u3055\u305b\u308b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\uff09\\n    }\\n};\\n\\nmsg.payload = JSON.stringify(commandRequestMessageJSON);\\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;: 1100, &quot;y&quot;: 320, &quot;wires&quot;: [ [ &quot;17c76117e65faa44&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\n\n\n<p><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001OPTEX EnOcean \u30ef\u30a4\u30e4\u30ec\u30b9\u5b58\u5728\u691c\u77e5\u30bb\u30f3\u30b5\u30fc\uff08\u5728\u5e2d\u691c\u77e5\u30bb\u30f3\u30b5\u30fc\uff09 CPD-J\u3092\u4f7f\u7528\u3057\u3066\u3001\u5728\u5e2d\u72b6\u6cc1\u3092Minecraft\u306b\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002 \u958b\u767a\u74b0\u5883 PC\uff1aWindows 11 \u203bRasp<\/p>\n","protected":false},"author":10,"featured_media":3743,"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":[11,12],"tags":[16,14,13],"class_list":["post-3736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kobayashi","category-kobayashi-intern","tag-enocean","tag-minecraft","tag-node-red"],"jetpack_featured_media_url":"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2024\/01\/title3.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3736","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=3736"}],"version-history":[{"count":2,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3736\/revisions"}],"predecessor-version":[{"id":3775,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3736\/revisions\/3775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/media\/3743"}],"wp:attachment":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}