{"id":1801,"date":"2020-06-19T18:37:43","date_gmt":"2020-06-19T18:37:43","guid":{"rendered":"https:\/\/www.it-react.com\/?p=1801"},"modified":"2021-03-17T12:31:14","modified_gmt":"2021-03-17T12:31:14","slug":"create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1","status":"publish","type":"post","link":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/","title":{"rendered":"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED &#8211; Part 1"},"content":{"rendered":"\n<p>This will be the first post out of series of posts about creating a smart home system with Raspberry Pi, different kind of sensors and the powerful visual tool for wiring sensor data &#8211; Node-RED. <br><br><a href=\"https:\/\/nodered.org\/\">Node-RED<\/a> is a flow-based development tool for visual programming for wiring together hardware devices, APIs and online services in new and interesting ways. It provides a browser-based editor which can be used to wire together flows using the wide range of nodes in the palette. <\/p>\n\n\n\n<p>Today I would like to show you the logic and the first steps in creating this smart home system. Raspberry Pi is the central device that will collect, interpret and display graphically the data received from the sensors and will also control the relays\/contacts connected to it. I&#8217;ve used in my projects Raspberry Pi Zero W because is very compact and in the same time has enough power to run this kind of systems . As wi-fi modules for transmitting\/receiving data to\/from Raspi, I am using ESP8266 ESP-01 and ESP8266 D1 mini. <\/p>\n\n\n\n<p>Here is the logical diagram of the system. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"634\" height=\"404\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/Node-Red.jpg\" alt=\"\" class=\"wp-image-1820\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/Node-Red.jpg 634w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/Node-Red-300x191.jpg 300w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/figure>\n\n\n\n<p>Raspberry Pi Zero is running Node-RED and the mqtt broker &#8211; mosquitto. <\/p>\n\n\n\n<p><strong>MQTT<\/strong> (<strong>MQ Telemetry Transport<\/strong> or <strong>Message Queuing Telemetry Transport<\/strong>) is a lightweight, publish-subscribe network protocol that transports messages between devices. The protocol usually runs over TCP\/IP. It is designed for connections with remote locations where a &#8220;small code footprint&#8221; is required or the network bandwidth is limited.<\/p>\n\n\n\n<p>As you can see in the diagram, the sensors and relays could be connected directly to the GPIO pins of the Raspi or via wi-fi using mqtt protocol mentioned above. <\/p>\n\n\n\n<p>Now that we presented the logic, I would like to go ahead and show you how to prepare the Raspberry Pi.<\/p>\n\n\n\n<p><strong>Requirements:<\/strong><br>1. Raspberry Pi Zero W<br>2. SD Card &#8211; minimum 16GB<br>3. Power supply for Raspberry<br> <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step one &#8211; install Raspberry Pi OS on Raspberry Pi Zero W <\/strong><\/h3>\n\n\n\n<p>1. Download <strong>Raspberry Pi OS (32-bit) with desktop and recommended software<\/strong> (zip file) from this link &#8211; <a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-os\/\">https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-os\/<\/a>.   <br><br>2. Unzip the zip file using <a href=\"https:\/\/www.7-zip.org\/\">7zip<\/a>.<br><br>3. Insert SD Card into the Laptop\/card reader <br><br>4. Write iso file using <a href=\"https:\/\/sourceforge.net\/projects\/win32diskimager\/\">Win32Disk Imager<\/a>. Select the SD Card partition (E:\\ in my case) and the unpacked img file &#8211; <strong>2020-05-27-raspios-buster-full-armhf.img<\/strong> and then press Write.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"482\" height=\"342\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/win32disk.jpg\" alt=\"\" class=\"wp-image-1840\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/win32disk.jpg 482w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/win32disk-300x213.jpg 300w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/figure><\/div>\n\n\n\n<p>Wait around 8-10 minutes and the SD card will be ready. <\/p>\n\n\n\n<p>5. Once done, open Windows Explorer, access the E:\\ partition and create a file named <strong>wpa_supplicant.conf<\/strong> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"194\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/supplicant-1024x194.jpg\" alt=\"\" class=\"wp-image-1856\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/supplicant-1024x194.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/supplicant-300x57.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/supplicant-768x145.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/supplicant-1536x291.jpg 1536w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/supplicant.jpg 1565w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>open it with <a href=\"https:\/\/notepad-plus-plus.org\/downloads\/v7.8.7\/\">Notepad++<\/a> , convert it to Unix (LF)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"654\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/notepadpp-1024x654.jpg\" alt=\"\" class=\"wp-image-1855\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/notepadpp-1024x654.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/notepadpp-300x192.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/notepadpp-768x490.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/notepadpp.jpg 1084w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>and add the following text:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>country=de<\/strong>\n<strong>update_config=1<\/strong>\n<strong>ctrl_interface=\/var\/run\/wpa_supplicant<\/strong>\n<strong>&nbsp;<\/strong>\n<strong>network={<\/strong>\n<strong>&nbsp;scan_ssid=1<\/strong>\n<strong>&nbsp;ssid=\"MyNetworkSSID\"<\/strong>\n<strong>&nbsp;psk=\"Pa55w0rd1234\"<\/strong>\n<strong>}<\/strong><\/pre>\n\n\n\n<p>Replace <strong>ssid<\/strong> and <strong>psk<\/strong> with your SSID name and your password and save it. Raspberry Pi will use this file to connect to the wi-fi AP. <\/p>\n\n\n\n<p>6. To enable SSH, create on partition E:\\, a file named ssh (without any extension). There is no need to add any text in this file, leave it empty.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"194\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/ssh-1024x194.jpg\" alt=\"\" class=\"wp-image-1861\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/ssh-1024x194.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/ssh-300x57.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/ssh-768x145.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/ssh-1536x291.jpg 1536w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/ssh.jpg 1565w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step two &#8211; connect to Raspberry Pi and update it<\/strong><\/h3>\n\n\n\n<p>1. Remove the card from card reader, introduce it to Raspberry Pi and power it up.<br><br>2. Wait a few minutes, then Raspberry Pi should be connected to Wi-Fi AP and you should be able to connect to it via SSH.<br>Default username is <strong>pi<\/strong> and the password is <strong>raspberry<\/strong>. <br><br>3. After successfully login, please change the default password.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~ $ sudo passwd pi\nNew password:\nRetype new password:\npasswd: password updated successfully<\/pre>\n\n\n\n<p>4. Update repository and then upgrade the installed packets using following commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~ $ sudo apt-get update\npi@raspberrypi:~ $ sudo apt-get upgrade<\/pre>\n\n\n\n<p>5. After upgrade, reset Raspi<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~ $ sudo reboot<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step three &#8211; install Node-RED<\/strong><\/h3>\n\n\n\n<p>1. Login back to Raspi and issue the following command to install Node-RED:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash &lt;(curl -sL https:\/\/raw.githubusercontent.com\/node-red\/linux-installers\/master\/deb\/update-nodejs-and-nodered)<\/pre>\n\n\n\n<p>2. Answer yes to Are you really sure you want to do this and Would you like to install the Pi-specific nodes?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-script-1024x511.jpg\" alt=\"\" class=\"wp-image-1896\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-script-1024x511.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-script-300x150.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-script-768x383.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-script.jpg 1085w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"461\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red_install.jpg\" alt=\"\" class=\"wp-image-1886\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red_install.jpg 935w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red_install-300x148.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red_install-768x379.jpg 768w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/figure>\n\n\n\n<p>3. Add this command to start Node-RED at startup:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:\/usr\/bin $ sudo systemctl enable nodered.service\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/nodered.service \u2192 \/lib\/systemd\/system\/nodered.service.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step four &#8211; Install Node-RED Dashboard<\/strong><\/h3>\n\n\n\n<p>This provides a set of nodes in Node-RED to quickly create a live data dashboard.<\/p>\n\n\n\n<p>1. Start Node-RED with command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~ $ node-red-start<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"869\" height=\"738\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-start.jpg\" alt=\"\" class=\"wp-image-1939\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-start.jpg 869w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-start-300x255.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-start-768x652.jpg 768w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/figure><\/div>\n\n\n\n<p>2. Point a browser at http:\/\/Raspberry-IP-Address:1880<\/p>\n\n\n\n<p>3. Once in Node-RED, go to the Menu in the right-top corner and access <strong>Manage palette<\/strong> <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"475\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard.jpg\" alt=\"\" class=\"wp-image-1937\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard.jpg 438w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard-277x300.jpg 277w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/figure><\/div>\n\n\n\n<p>4. Select Install tab, search for dashboard and install node-red-dashboard<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"499\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard-install-1024x499.jpg\" alt=\"\" class=\"wp-image-1936\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard-install-1024x499.jpg 1024w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard-install-300x146.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard-install-768x374.jpg 768w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/node-red-dashboard-install.jpg 1038w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step five &#8211; Secure Node-Red<\/strong><\/h3>\n\n\n\n<p>1. Install node-red-admin command line tool to generate a password hash.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm install -g --unsafe-perm node-red-admin<\/pre>\n\n\n\n<p>2. Generate password hash<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~ $ sudo node-red-admin hash-pw\nPassword:[insert password]\n$2b$08$rDXofaBQ3H5fRFBfAqOWW.gGPWnBwOr0swXXeu183m<\/pre>\n\n\n\n<p>3. Edit ~\/.node-red\/settings.js to set a password for management interface &#8211; username <strong>admin<\/strong> and dashboard &#8211; username <strong>user<\/strong>. Uncomment folowing block of code and replace password hash with the one generated at the previous step.<\/p>\n\n\n\n<p>For management interface, username <strong>admin<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;&nbsp;&nbsp; adminAuth: {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: \"credentials\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; users: [{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; username: \"admin\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password: \"$2b$08$rDXofaBQ3H5fRFBfAqOWW.gGPWnBwOr0swXXeu183m\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; permissions: \"*\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }]\n&nbsp;&nbsp;&nbsp; },<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>For Dashboard, username <strong>user<\/strong>. Will use the same pasword hash:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">httpNodeAuth: {user:\"user\",pass:\"$2a$08$7B4EeF6HMnsk9m23cxBMH.X2nSkY3q1MmmsBip5h.zSJbzp\/EBdsu\"},\nhttpStaticAuth: {user:\"user\",pass:\"$2a$08$7B4EeF6HMnsk9m23cxBMH.X2nSkY3q1MmmsBip5h.zSJbzp\/EBdsu\"},<\/pre>\n\n\n\n<p>4. In order for the changes to take effect, restart node-red.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step six (optional) &#8211; Activate Debug in case of problems<\/strong><\/h3>\n\n\n\n<p>In case of problems,you can increase the level of logs to debug.<\/p>\n\n\n\n<p>1. Edit settings file &#8211; ~\/.node-red\/settings.js. Change level from info to debug and restart Node-RED.   <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>&nbsp;&nbsp;&nbsp; \/\/ Configure the logging output\n&nbsp;&nbsp;&nbsp; logging: {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Only console logging is currently supported\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; console: {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Level of logging to be recorded. Options are:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ fatal - only those errors which make the application unusable should be recorded\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ error - record errors which are deemed fatal for a particular request + fatal errors\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ warn - record problems which are non fatal + errors + fatal errors\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ info - record information about the general running of the application + warn + error + fa$\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ debug - record information which is more verbose than info + info + warn + error + fatal e$\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ trace - record very detailed logging + debug + info + warn + error + fatal errors\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;\/\/ off - turn off all logging (doesn't affect metrics or audit)\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; level: \"debug\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Whether or not to include metric events in the log output\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; metrics: false,\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Whether or not to include audit events in the log output\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; audit: false\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }\n&nbsp;&nbsp;&nbsp; },<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step seven &#8211; Install MQTT Broker<\/strong><\/h3>\n\n\n\n<p>Install MQTT Broker mosquitto to be able to communicate between the sensors and Raspberry Pi via wi-fi.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~ $ sudo apt-get install mosquitto mosquitto-clients -y<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>I will end here the first post of the series. We&#8217;ve learned about the logic of the system, the components and how to  prepare the software for the central server &#8211; Raspberry Pi. In the <a class=\"effect1\" href=\"https:\/\/www.it-react.com\/index.php\/2020\/08\/16\/create-a-smart-home-system-with-a-raspberry-pi-a-few-sensors-and-node-red-part-2\/\">next post<\/a> we&#8217;ll see how to configure the client side of the system &#8211; the sensors and relays.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will be the first post out of series of posts about creating a smart home system with Raspberry Pi, different kind of sensors and the powerful visual tool for wiring sensor data &#8211; Node-RED. Node-RED is a flow-based development tool for visual programming for wiring together hardware devices, APIs and online services in new [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1957,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","footnotes":""},"categories":[16,7],"tags":[57,56,55,18,53,54],"class_list":["post-1801","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iot","category-linux","tag-mosquitto","tag-mqtt","tag-node-red","tag-raspberry","tag-sensors","tag-smarthome"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED - Part 1 - IT-REACT<\/title>\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.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED - Part 1 - IT-REACT\" \/>\n<meta property=\"og:description\" content=\"This will be the first post out of series of posts about creating a smart home system with Raspberry Pi, different kind of sensors and the powerful visual tool for wiring sensor data &#8211; Node-RED. Node-RED is a flow-based development tool for visual programming for wiring together hardware devices, APIs and online services in new [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/\" \/>\n<meta property=\"og:site_name\" content=\"IT-REACT\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-19T18:37:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-17T12:31:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"299\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ioan Penu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ioan Penu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/\"},\"author\":{\"name\":\"Ioan Penu\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"headline\":\"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED &#8211; Part 1\",\"datePublished\":\"2020-06-19T18:37:43+00:00\",\"dateModified\":\"2021-03-17T12:31:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/\"},\"wordCount\":874,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"image\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg\",\"keywords\":[\"mosquitto\",\"mqtt\",\"node-red\",\"raspberry\",\"sensors\",\"smarthome\"],\"articleSection\":[\"IoT\",\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/\",\"url\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/\",\"name\":\"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED - Part 1 - IT-REACT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg\",\"datePublished\":\"2020-06-19T18:37:43+00:00\",\"dateModified\":\"2021-03-17T12:31:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg\",\"contentUrl\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg\",\"width\":1080,\"height\":299,\"caption\":\"Photo by Breno Assis on Unsplash\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/06\\\/19\\\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.it-react.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED &#8211; Part 1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#website\",\"url\":\"https:\\\/\\\/www.it-react.com\\\/\",\"name\":\"it-react\",\"description\":\"Ctrl\u2022Alt\u2022Automate\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.it-react.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\",\"name\":\"Ioan Penu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"caption\":\"Ioan Penu\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED - Part 1 - IT-REACT","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.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/","og_locale":"en_US","og_type":"article","og_title":"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED - Part 1 - IT-REACT","og_description":"This will be the first post out of series of posts about creating a smart home system with Raspberry Pi, different kind of sensors and the powerful visual tool for wiring sensor data &#8211; Node-RED. Node-RED is a flow-based development tool for visual programming for wiring together hardware devices, APIs and online services in new [&hellip;]","og_url":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/","og_site_name":"IT-REACT","article_published_time":"2020-06-19T18:37:43+00:00","article_modified_time":"2021-03-17T12:31:14+00:00","og_image":[{"width":1080,"height":299,"url":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg","type":"image\/jpeg"}],"author":"Ioan Penu","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ioan Penu","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#article","isPartOf":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/"},"author":{"name":"Ioan Penu","@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"headline":"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED &#8211; Part 1","datePublished":"2020-06-19T18:37:43+00:00","dateModified":"2021-03-17T12:31:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/"},"wordCount":874,"commentCount":2,"publisher":{"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"image":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#primaryimage"},"thumbnailUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg","keywords":["mosquitto","mqtt","node-red","raspberry","sensors","smarthome"],"articleSection":["IoT","Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/","url":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/","name":"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED - Part 1 - IT-REACT","isPartOf":{"@id":"https:\/\/www.it-react.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#primaryimage"},"image":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#primaryimage"},"thumbnailUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg","datePublished":"2020-06-19T18:37:43+00:00","dateModified":"2021-03-17T12:31:14+00:00","breadcrumb":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#primaryimage","url":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg","contentUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/06\/breno-assis-r3WAWU5Fi5Q-unsplash-scaled-e1592591807293.jpg","width":1080,"height":299,"caption":"Photo by Breno Assis on Unsplash"},{"@type":"BreadcrumbList","@id":"https:\/\/www.it-react.com\/index.php\/2020\/06\/19\/create-a-smart-home-system-with-raspberry-pi-sensors-and-node-red-part-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.it-react.com\/"},{"@type":"ListItem","position":2,"name":"Create a Smart Home System with a Raspberry Pi, a few sensors and Node-RED &#8211; Part 1"}]},{"@type":"WebSite","@id":"https:\/\/www.it-react.com\/#website","url":"https:\/\/www.it-react.com\/","name":"it-react","description":"Ctrl\u2022Alt\u2022Automate","publisher":{"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.it-react.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0","name":"Ioan Penu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","caption":"Ioan Penu"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/1801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/comments?post=1801"}],"version-history":[{"count":141,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/1801\/revisions"}],"predecessor-version":[{"id":2397,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/1801\/revisions\/2397"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/media\/1957"}],"wp:attachment":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/media?parent=1801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/categories?post=1801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/tags?post=1801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}