{"id":357,"date":"2021-03-15T16:55:46","date_gmt":"2021-03-15T16:55:46","guid":{"rendered":"https:\/\/www.sydspost.nl\/?p=357"},"modified":"2021-03-15T16:55:46","modified_gmt":"2021-03-15T16:55:46","slug":"node-red","status":"publish","type":"post","link":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/","title":{"rendered":"Node-RED"},"content":{"rendered":"<p>In deze tutorial gaan we Node-RED, een grafische programmeeromgeving, op de Raspberry Pi installeren.<\/p>\n<p>Node-RED (NR) is een applicatie waarmee je zonder (veel) programmeerervaring toch krachtige automatiseringen kan maken vanuit je browser, met een eenvoudige grafische interface. Daarnaast heeft het volledige ondersteuning voor Javascript ingebouwd, zodat je in zogenaamde &#8216;function nodes&#8217; eigen krachtige logica kan programmeren indien gewenst.<\/p>\n<p>Node-RED is ontworpen voor internet of things (IoT)-toepassingen en is met name populair op het gebied van home automation \/ domotica.<\/p>\n<h2><strong>Installatie van de software<\/strong><\/h2>\n<p>Als eerste gaan we de juiste installatie software (NPM) installeren met onderstaande commando:<\/p>\n<pre>pi@raspberry:~ $ sudo apt install build-essential git<\/pre>\n<p>Je moet Y typen en op Enter drukken om de installatie te bevestigen. Voer vervolgens de volgende stappen uit om Node-RED te installeren<\/p>\n<pre class=\"highlight\"><span style=\"color: #000000;\"><code>pi@raspberry:~ $ sudo bash &lt;(curl -sL https:\/\/raw.githubusercontent.com\/node-red\/linux-installers\/master\/deb\/update-nodejs-and-nodered)<\/code><\/span><\/pre>\n<p>Dit script voert de volgende acties uit:<\/p>\n<ul>\n<li>remove the pre-packaged version of Node-RED and Node.js if they are present<\/li>\n<li>install the current Node.js LTS release using the\u00a0<a href=\"https:\/\/github.com\/nodesource\/distributions\/blob\/master\/README.md\">NodeSource<\/a>. If it detects Node.js is already installed from NodeSource, it will ensure it is at least Node 8, but otherwise leave it alone<\/li>\n<li>install the latest version of Node-RED using npm<\/li>\n<li>optionally install a collection of useful Pi-specific nodes<\/li>\n<li>setup Node-RED to run as a service and provide a set of commands to work with the service<\/li>\n<\/ul>\n<p>Node-RED is bereikbaar via de browser op het IP-adres van je Raspberry PI, en op poortnummer 1880, dus bijv. http:\/\/192.168.2.29:1880\/<\/p>\n<p>Bij het ontwikkelen van mijn flows heb ik een aantal aanvullende Node-RED modules ge\u00efnstalleerd:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-358\" src=\"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/Knipsel-11-183x300.jpg\" alt=\"\" width=\"402\" height=\"659\" srcset=\"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/Knipsel-11-183x300.jpg 183w, https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/Knipsel-11.jpg 479w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/p>\n<p>Optioneel kun je \u00e9\u00e9n of meerdere van deze modules installeren via Hoofdmenu, Manage Palette tabblad Install. Zoek op module naam, en volg de instructies om de module te installeren.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In deze tutorial gaan we Node-RED, een grafische programmeeromgeving, op de Raspberry Pi installeren. Node-RED (NR) is een applicatie waarmee<\/p>\n<p><a href=\"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/\" class=\"more-link\">Verder lezen<span class=\"screen-reader-text\">Node-RED<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":359,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[43],"tags":[20],"class_list":["post-357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotica-software","tag-node-red"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Node-RED - Mijn domotica projecten<\/title>\n<meta name=\"description\" content=\"Tutorial waarin beschreven wordt hoe je Node-RED kunt installeren op een Raspberry PI\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node-RED - Mijn domotica projecten\" \/>\n<meta property=\"og:description\" content=\"Tutorial waarin beschreven wordt hoe je Node-RED kunt installeren op een Raspberry PI\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/\" \/>\n<meta property=\"og:site_name\" content=\"Mijn domotica projecten\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/syds.post\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-15T16:55:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/200px-Node-red-icon.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Syds\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschreven door\" \/>\n\t<meta name=\"twitter:data1\" content=\"Syds\" \/>\n\t<meta name=\"twitter:label2\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/\"},\"author\":{\"name\":\"Syds\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/person\\\/429f92898f98d9c4e01b8fad60975b21\"},\"headline\":\"Node-RED\",\"datePublished\":\"2021-03-15T16:55:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/\"},\"wordCount\":270,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/200px-Node-red-icon.png\",\"keywords\":[\"Node Red\"],\"articleSection\":[\"Software\"],\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/\",\"name\":\"Node-RED - Mijn domotica projecten\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/200px-Node-red-icon.png\",\"datePublished\":\"2021-03-15T16:55:46+00:00\",\"description\":\"Tutorial waarin beschreven wordt hoe je Node-RED kunt installeren op een Raspberry PI\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/200px-Node-red-icon.png\",\"contentUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/200px-Node-red-icon.png\",\"width\":200,\"height\":200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/2021\\\/03\\\/15\\\/node-red\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sydspost.nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node-RED\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#website\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/\",\"name\":\"Mijn domotica projecten\",\"description\":\"met Domoticz\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sydspost.nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#organization\",\"name\":\"Mijn domotica projecten\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Domoticz-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sydspost.nl\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Domoticz-logo.png\",\"width\":256,\"height\":256,\"caption\":\"Mijn domotica projecten\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sydspost.nl\\\/#\\\/schema\\\/person\\\/429f92898f98d9c4e01b8fad60975b21\",\"name\":\"Syds\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g\",\"caption\":\"Syds\"},\"sameAs\":[\"https:\\\/\\\/www.sydspost.nl\",\"https:\\\/\\\/www.facebook.com\\\/syds.post\\\/\"],\"url\":\"https:\\\/\\\/www.sydspost.nl\\\/index.php\\\/author\\\/wp_admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Node-RED - Mijn domotica projecten","description":"Tutorial waarin beschreven wordt hoe je Node-RED kunt installeren op een Raspberry PI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/","og_locale":"nl_NL","og_type":"article","og_title":"Node-RED - Mijn domotica projecten","og_description":"Tutorial waarin beschreven wordt hoe je Node-RED kunt installeren op een Raspberry PI","og_url":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/","og_site_name":"Mijn domotica projecten","article_author":"https:\/\/www.facebook.com\/syds.post\/","article_published_time":"2021-03-15T16:55:46+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/200px-Node-red-icon.png","type":"image\/png"}],"author":"Syds","twitter_card":"summary_large_image","twitter_misc":{"Geschreven door":"Syds","Geschatte leestijd":"2 minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#article","isPartOf":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/"},"author":{"name":"Syds","@id":"https:\/\/www.sydspost.nl\/#\/schema\/person\/429f92898f98d9c4e01b8fad60975b21"},"headline":"Node-RED","datePublished":"2021-03-15T16:55:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/"},"wordCount":270,"commentCount":4,"publisher":{"@id":"https:\/\/www.sydspost.nl\/#organization"},"image":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/200px-Node-red-icon.png","keywords":["Node Red"],"articleSection":["Software"],"inLanguage":"nl-NL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/","url":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/","name":"Node-RED - Mijn domotica projecten","isPartOf":{"@id":"https:\/\/www.sydspost.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#primaryimage"},"image":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/200px-Node-red-icon.png","datePublished":"2021-03-15T16:55:46+00:00","description":"Tutorial waarin beschreven wordt hoe je Node-RED kunt installeren op een Raspberry PI","breadcrumb":{"@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#primaryimage","url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/200px-Node-red-icon.png","contentUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/200px-Node-red-icon.png","width":200,"height":200},{"@type":"BreadcrumbList","@id":"https:\/\/www.sydspost.nl\/index.php\/2021\/03\/15\/node-red\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sydspost.nl\/"},{"@type":"ListItem","position":2,"name":"Node-RED"}]},{"@type":"WebSite","@id":"https:\/\/www.sydspost.nl\/#website","url":"https:\/\/www.sydspost.nl\/","name":"Mijn domotica projecten","description":"met Domoticz","publisher":{"@id":"https:\/\/www.sydspost.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sydspost.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/www.sydspost.nl\/#organization","name":"Mijn domotica projecten","url":"https:\/\/www.sydspost.nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/www.sydspost.nl\/#\/schema\/logo\/image\/","url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2020\/12\/Domoticz-logo.png","contentUrl":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2020\/12\/Domoticz-logo.png","width":256,"height":256,"caption":"Mijn domotica projecten"},"image":{"@id":"https:\/\/www.sydspost.nl\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.sydspost.nl\/#\/schema\/person\/429f92898f98d9c4e01b8fad60975b21","name":"Syds","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/secure.gravatar.com\/avatar\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fe78554f84c2c27fe1c643dcb3f2d0231d9a2dcdb96cc25f3538e38d9465e24d?s=96&d=mm&r=g","caption":"Syds"},"sameAs":["https:\/\/www.sydspost.nl","https:\/\/www.facebook.com\/syds.post\/"],"url":"https:\/\/www.sydspost.nl\/index.php\/author\/wp_admin\/"}]}},"modified_by":"Syds","jetpack_featured_media_url":"https:\/\/www.sydspost.nl\/wp-content\/uploads\/2021\/03\/200px-Node-red-icon.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":1,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/posts\/357\/revisions\/360"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/media\/359"}],"wp:attachment":[{"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sydspost.nl\/index.php\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}