{"id":1056,"date":"2026-04-10T18:35:04","date_gmt":"2026-04-10T09:35:04","guid":{"rendered":"https:\/\/sakae-shokai.com\/wordpress\/?p=1056"},"modified":"2026-04-10T18:35:04","modified_gmt":"2026-04-10T09:35:04","slug":"node-red%e3%81%a7iot-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/sakae-shokai.com\/wordpress\/?p=1056","title":{"rendered":"NODE-RED\u3067IoT \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7de8"},"content":{"rendered":"\n<p>\u4e09\u83f1\u306ePLC\u306e\u30c7\u30fc\u30bf\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u53ce\u96c6\u3059\u308b\u76ee\u7684\u3067\u3001\u3044\u308d\u3044\u308d\u63a2\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001<a href=\"https:\/\/nodered.jp\" target=\"_blank\" rel=\"noopener\" title=\"\">NODE -RED<\/a>\u3067modbus\u30d7\u30ed\u30c8\u30b3\u30eb\u3068MC\u30d7\u30ed\u30c8\u30b3\u30eb\u304c\u4f7f\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u8272\u3005\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u30c6\u30b9\u30c8\u3068\u3057\u3066\u3001\u624b\u6301\u3061\u306e\u30e9\u30ba\u30d1\u30a402W\u306b\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<a href=\"https:\/\/nodered.jp\/docs\/getting-started\/raspberrypi\" target=\"_blank\" rel=\"noopener\" title=\"\">\u516c\u5f0f<\/a>\u306b\u6e96\u3058\u3066\u3001\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash &lt;(curl -sL https:\/\/raw.githubusercontent.com\/node-red\/linux-installers\/master\/deb\/update-nodejs-and-nodered)<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u82e5\u5e72\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u304c\u3001\u7126\u3089\u305a\u306b\u5f85\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Running Node-RED install for user **** at \/home\/**** on debian\n\n\nThis can take 20-30 minutes on the slower Pi versions - please wait.\n\n  Stop Node-RED                       \u2714\n  Remove old version of Node-RED      \u2714\n  Remove old version of Node.js       \u2714   \n  Install Node v22.22.2               \u2714   v22.22.2   Npm 10.9.7\n  Clean npm cache                     \u2714\n  Install Node-RED core               \u2714   4.1.8\n  Move global nodes to local          -\n  Npm rebuild existing nodes          \u2714\n  Install extra Pi nodes              \u2714\n  Add shortcut commands               \u2714\n  Update systemd script               \u2714\n                                      \n\nAny errors will be logged to   \/var\/log\/nodered-install.log\nAll done.\nYou can now start Node-RED with the command  node-red-start\n  or using the icon under   Menu \/ Programming \/ Node-RED\nThen point your browser to localhost:1880 or http:\/\/{your_pi_ip-address}:1880\n\nStarted :  2026\u5e74  4\u6708 10\u65e5 \u91d1\u66dc\u65e5 17:59:35 JST \nFinished:  2026\u5e74  4\u6708 10\u65e5 \u91d1\u66dc\u65e5 18:16:22 JST\n \n**********************************************************************************\n ### WARNING ###\n DO NOT EXPOSE NODE-RED TO THE OPEN INTERNET WITHOUT SECURING IT FIRST\n \n Even if your Node-RED doesn't have anything valuable, (automated) attacks will\n happen and could provide a foothold in your local network\n \n Follow the guide at https:\/\/nodered.org\/docs\/user-guide\/runtime\/securing-node-red\n to setup security.\n \n ### ADDITIONAL RECOMMENDATIONS ###\n  - Remove the \/etc\/sudoers.d\/010_pi-nopasswd file to require entering your password\n    when performing any sudo\/root commands:\n \n      sudo rm -f \/etc\/sudoers.d\/010_pi-nopasswd\n \n  - You can customise the initial settings by running:\n \n      node-red admin init\n \n**********************************************************************************\n \n\nNode-RED Settings File initialisation\n=====================================\nThis tool will help you create a Node-RED settings file.\n\n\u2714 Settings file \u00b7 \/home\/****\/.node-red\/settings.js\n\nShare Anonymouse Usage Information\n==================================\n\u2714 Node-RED can notify you when there is a new version available.\nThis ensures you keep up to date with the latest features and fixes.\nThis requires sending anonymised data back to the Node-RED team.\nIt does not include any details of your flows or users.\nFor full information on what information is collected and how it is used,\nplease see https:\/\/nodered.org\/docs\/telemetry\n \u00b7 No, do not send my usage data\n\nUser Security\n=============\n\u2714 Do you want to setup user security? \u00b7 Yes\n\u2714 Username \u00b7 ****\n\u2714 Password \u00b7 ********\n\u2714 User permissions \u00b7 full access\n\u2714 Add another user? \u00b7 No\n\nProjects\n========\nThe Projects feature allows you to version control your flow using a local git repository.\n\n\u2714 Do you want to enable the Projects feature? \u00b7 No\n\nFlow File settings\n==================\n\u2714 Enter a name for your flows file \u00b7 flows.json\n\u2714 Provide a passphrase to encrypt your credentials file \u00b7 \n\nEditor settings\n===============\n\u2714 Select a theme for the editor. To use any theme other than \"default\", you will need to install @node-red-contrib-themes\/theme-collection in your Node-RED user directory. \u00b7 default\n\n\n\u2714 Select the text editor component to use in the Node-RED Editor \u00b7 monaco (default)\n\nNode settings\n=============\n\u2714 Allow Function nodes to load external modules? (functionExternalModules) \u00b7 Yes\n\n\nSettings file written to \/home\/****\/.node-red\/settings.js<\/code><\/pre>\n\n\n\n<p>\u4eca\u56de\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u3001\u30ed\u30b0\u306b\u3042\u308b\u901a\u308a\u7d0420\u5206\u304b\u304b\u308a\u307e\u3057\u305f\u3002\u9014\u4e2d\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3057\u3066\u308b\u304b\u3068\u601d\u3046\u304f\u3089\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>node-red-pi --max-old-space-size=256\n10 Apr 18:22:50 - &#91;info] \n\nWelcome to Node-RED\n===================\n\n10 Apr 18:22:50 - &#91;info] Node-RED \u30d0\u30fc\u30b8\u30e7\u30f3: v4.1.8\n10 Apr 18:22:50 - &#91;info] Node.js  \u30d0\u30fc\u30b8\u30e7\u30f3: v22.22.2\n10 Apr 18:22:50 - &#91;info] Linux 6.12.75+rpt-rpi-v8 arm64 LE\n10 Apr 18:22:51 - &#91;info] \u30d1\u30ec\u30c3\u30c8\u30ce\u30fc\u30c9\u306e\u30ed\u30fc\u30c9\n10 Apr 18:22:58 - &#91;info] \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb: \/home\/****\/.node-red\/settings.js\n10 Apr 18:22:58 - &#91;info] \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30a2 : 'default' &#91;module=memory]\n10 Apr 18:22:58 - &#91;info] \u30e6\u30fc\u30b6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea : \/home\/****\/.node-red\n10 Apr 18:22:58 - &#91;warn] \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u7121\u52b9\u5316\u3055\u308c\u3066\u3044\u307e\u3059 : editorTheme.projects.enabled=false\n10 Apr 18:22:58 - &#91;info] \u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb     : \/home\/****\/.node-red\/flows.json\n10 Apr 18:22:58 - &#91;info] flow \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\n10 Apr 18:22:58 - &#91;warn] \u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\n10 Apr 18:22:58 - &#91;info] \u30b5\u30fc\u30d0\u306f http:\/\/127.0.0.1:1880\/ \u3067\u5b9f\u884c\u4e2d\u3067\u3059\n10 Apr 18:22:58 - &#91;info] \u30d5\u30ed\u30fc\u3092\u958b\u59cb\u3057\u307e\u3059\n10 Apr 18:22:58 - &#91;info] \u30d5\u30ed\u30fc\u3092\u958b\u59cb\u3057\u307e\u3057\u305f<\/code><\/pre>\n\n\n\n<p>\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/127.0.0.1:1880\/\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"634\" src=\"https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/560432fbf8c7c6d4a3989e6d30ad1628-1024x634.png\" alt=\"\" class=\"wp-image-1059\" srcset=\"https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/560432fbf8c7c6d4a3989e6d30ad1628-1024x634.png 1024w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/560432fbf8c7c6d4a3989e6d30ad1628-300x186.png 300w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/560432fbf8c7c6d4a3989e6d30ad1628-768x476.png 768w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/560432fbf8c7c6d4a3989e6d30ad1628-1536x951.png 1536w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/560432fbf8c7c6d4a3989e6d30ad1628.png 1944w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5148\u306b\u767b\u9332\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u672c\u4f53\u306e\u753b\u9762\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"778\" src=\"https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/5ef6fd35f2721f7d5341e46bba7f44e6-1024x778.png\" alt=\"\" class=\"wp-image-1060\" srcset=\"https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/5ef6fd35f2721f7d5341e46bba7f44e6-1024x778.png 1024w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/5ef6fd35f2721f7d5341e46bba7f44e6-300x228.png 300w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/5ef6fd35f2721f7d5341e46bba7f44e6-768x583.png 768w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/5ef6fd35f2721f7d5341e46bba7f44e6-1536x1167.png 1536w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2026\/04\/5ef6fd35f2721f7d5341e46bba7f44e6.png 1946w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5de6\u306e\u5217\u306b\u30ce\u30fc\u30c9\u6b04\u3001\u771f\u3093\u4e2d\u304c\u30d5\u30ed\u30fc\u30b7\u30fc\u30c8\u3001\u53f3\u306e\u5217\u304c\u60c5\u5831\u6b04\u306b\u306a\u308a\u307e\u3059\u3002<br>\u4eca\u5f8c\u3001\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u901a\u3057\u3066\u3001\u89e3\u8aac\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e09\u83f1\u306ePLC\u306e\u30c7\u30fc\u30bf\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u53ce\u96c6\u3059\u308b\u76ee\u7684\u3067\u3001\u3044\u308d\u3044\u308d\u63a2\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001NODE -RED\u3067modbus\u30d7\u30ed\u30c8\u30b3\u30eb\u3068MC\u30d7\u30ed\u30c8\u30b3\u30eb\u304c\u4f7f\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u8272\u3005\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u307e\u305a\u306f\u3001\u30c6\u30b9\u30c8\u3068\u3057\u3066\u3001\u624b\u6301\u3061\u306e\u30e9\u30ba\u30d1\u30a4 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sakae-shokai.com\/wordpress\/?p=1056\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;NODE-RED\u3067IoT \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7de8&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[142,143,15,8],"tags":[],"class_list":["post-1056","post","type-post","status-publish","format-standard","hentry","category-node-red","category-plc","category-15","category-archive"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1056"}],"version-history":[{"count":5,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1056\/revisions"}],"predecessor-version":[{"id":1063,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1056\/revisions\/1063"}],"wp:attachment":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}