{"id":10064,"date":"2016-10-30T15:27:54","date_gmt":"2016-10-30T06:27:54","guid":{"rendered":"https:\/\/www.appliot.co.jp\/lazurite-jp\/?p=10064"},"modified":"2016-10-31T10:03:26","modified_gmt":"2016-10-31T01:03:26","slug":"node-red%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e3%82%92%e8%bf%91%e3%80%85%e5%85%ac%e9%96%8b%e3%81%97%e3%81%be%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.appliot.co.jp\/lazurite-jp\/raspberry-pi%e9%96%a2%e9%80%a3\/10064.html","title":{"rendered":"node-red\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8fd1\u3005\u516c\u958b\u3057\u307e\u3059"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Raspberry Pi\u3067\u52d5\u4f5c\u3059\u308bnode-red\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u901a\u308a\u52d5\u304d\u59cb\u3081\u305f\u306e\u3067\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u8fd1\u3005\u30ea\u30ea\u30fc\u30b9\u3092\u4e88\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/nodered.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10065\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/nodered-300x182.png\" alt=\"nodered\" width=\"300\" height=\"182\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/nodered-300x182.png 300w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/nodered-640x388.png 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/nodered.png 1021w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u8a73\u7d30\u306a\u60c5\u5831\u306f\u6b63\u5f0f\u516c\u958b\u307e\u3067\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n<p>\u73fe\u5728\u3001npm\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u505c\u6b62\u3057\u3066\u3044\u307e\u3059<\/p>\n<p><del>1. node-red-contrib-lazurite\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/del><\/p>\n<p><del>npm install node-red-contrib-lazurite<\/del><\/p>\n<p><del>\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/del><br \/>\n<del>Raspberry Pi\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\/home\/pi)\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001&#8221;\/home\/pi\/node_modules\/node-red-contrib-lazurite&#8221;\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/del><\/p>\n<p><del>2. node-red\u306e\u74b0\u5883\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u3002<\/del><\/p>\n<p><del>node-red\u3092\u4e00\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u3001\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea &#8220;\/home\/pi\/&#8221;\u306b\u3001&#8221;.node-red&#8221;\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u51fa\u6765\u307e\u3059\u3002setting.js\u306e\u4e2d\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308bnodesDir\u306e\u8a2d\u5b9a\u3092\u3001<\/del><\/p>\n<p><del>nodesDir = \/home\/pi\/node_modules<\/del><\/p>\n<p><del>\u306b\u3059\u308b\u3068\u3001node-red\u306blazurite\u306e\u30ce\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/del><\/p>\n<p>\u4e00\u5ea6\u8d77\u52d5\u3057\u305fnode-red\u306e\u52d5\u4f5c\u3092\u505c\u6b62\u3059\u308b\u305f\u3081\u306b\u306f\u3001node-red-stop\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u25a0\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n<p>https:\/\/github.com\/LAPIS-Lazurite\/node-red-contrib-lazurite<\/p>\n<p>\u30d3\u30eb\u30c9\u65b9\u6cd5:<\/p>\n<p>[bash]<br \/>\nnode-gyp configure<br \/>\nnode-gyp build<br \/>\n[\/bash]<\/p>\n<h2>\u25a0\u516c\u958b\u307e\u3067\u306e\u5909\u66f4\u5185\u5bb9<\/h2>\n<p>\u73fe\u5728\u3001lazurite-rx\u306enode\u306f\u3001interval\u6bce\u306b\u547c\u3073\u51fa\u3057\u3066\u3001\u305d\u306e\u6642\u306b\u6700\u521d\u306b\u8aad\u307f\u51fa\u305b\u305f\u30c7\u30fc\u30bf\u3060\u3051\u3092\u901a\u77e5\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u4ed5\u69d8\u3092\u5909\u66f4\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002\u5909\u66f4\u65b9\u6cd5\u306f\u672a\u5b9a\u3067\u3059\u3002<\/p>\n<h2>\u25a0\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n<p>node-red\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001npm\u3068node-gyp\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>sudo apt-get insall npm node-gyp -y<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Raspberry Pi\u3067\u52d5\u4f5c\u3059\u308bnode-red\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u901a\u308a\u52d5\u304d\u59cb\u3081\u305f\u306e\u3067\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u8fd1\u3005\u30ea\u30ea\u30fc\u30b9\u3092\u4e88\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002 &nbsp; \u8a73\u7d30\u306a\u60c5\u5831\u306f\u6b63\u5f0f\u516c\u958b\u307e\u3067\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u3002 \u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5 \u73fe\u5728\u3001npm\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u505c\u6b62\u3057\u3066\u3044\u307e\u3059 1. node-red-contrib-lazurite\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb npm install node-red-contrib-lazurite \u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002 Raspberry Pi\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\/home\/pi)\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001&#8221;\/home\/pi\/node_modules\/node-red-contrib-lazurite&#8221;\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002 2. node-red\u306e\u74b0\u5883\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u3002 node-red\u3092\u4e00\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u3001\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea &#8220;\/home\/pi\/&#8221;\u306b\u3001&#8221;.node-red&#8221;\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u51fa\u6765\u307e\u3059\u3002setting.js\u306e\u4e2d\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308bnodesDir\u306e\u8a2d\u5b9a\u3092\u3001 nodesDir = \/home\/pi\/node_modules \u306b\u3059\u308b\u3068\u3001node-red\u306blazurite\u306e\u30ce\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 \u4e00\u5ea6\u8d77\u52d5\u3057\u305fnode [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-10064","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/10064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/comments?post=10064"}],"version-history":[{"count":0,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/10064\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/media?parent=10064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/categories?post=10064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/tags?post=10064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}