

{"id":125194,"date":"2018-08-17T12:35:28","date_gmt":"2018-08-17T07:05:28","guid":{"rendered":"https:\/\/analyticstraining.com\/?p=13470"},"modified":"2020-06-11T15:12:16","modified_gmt":"2020-06-11T09:42:16","slug":"getting-started-with-ibm-watson-iot-and-connecting-raspberry-pi-as-a-gateway-part-1","status":"publish","type":"post","link":"https:\/\/www.jigsawacademy.com\/getting-started-with-ibm-watson-iot-and-connecting-raspberry-pi-as-a-gateway-part-1\/","title":{"rendered":"Getting Started with IBM Watson IoT and connecting Raspberry Pi as a Gateway &#8211; Part 1"},"content":{"rendered":"<p>Here, we will be connecting Raspberry Pi as a gateway to IBM Watson IoT platform. Then Arduino Nano is connected to Raspberry Pi as a device. We acquire some device events from the Arduino Nano and send commands from IBM Watson to the device via the gateway.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13449\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/Watson.png\" alt=\"\" width=\"906\" height=\"368\" title=\"\"><\/p>\n<p>In this part, we will be doing the preliminary settings to get started with the IBM Watson IoT platform.<\/p>\n<p>Create an account in <a href=\"https:\/\/console.bluemix.net\/catalog\/services\/internet-of-things-platform\" target=\"_blank\" rel=\"noopener\">https:\/\/console.bluemix.net\/catalog\/services\/internet-of-things-platform<\/a><\/p>\n<p>Go to Catalog and Select Starter Kits<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13453\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/Catalog.png\" alt=\"\" width=\"1321\" height=\"528\" title=\"\"><\/p>\n<p>Select Internet of Things Platform Starter<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13461\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/Starter.png\" alt=\"\" width=\"1326\" height=\"491\" title=\"\"><\/p>\n<p>This will create a Cloud Foundry App. Provide a unique name for the app.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13451\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/App.png\" alt=\"\" width=\"1333\" height=\"491\" title=\"\"><\/p>\n<p>Select Dashboard.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13454\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/Dashboard.png\" alt=\"\" width=\"1334\" height=\"517\" title=\"\"><\/p>\n<p>We will find an app and two services connected to the app.<\/p>\n<p>Click on RaspberryGatewayNanoDevice-iotf-service<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13460\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/Service.png\" alt=\"\" width=\"1340\" height=\"533\" title=\"\"><\/p>\n<p>Launch the service<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13459\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/Launch.png\" alt=\"\" width=\"1343\" height=\"623\" title=\"\"><\/p>\n<p>You will obtain a page as given below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13452\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/Below.png\" alt=\"\" width=\"1332\" height=\"500\" title=\"\"><\/p>\n<p>We have to create a device type to add the devices as a gateway or device.<\/p>\n<p>Go to Devices and create a new device type.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13465\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/type.png\" alt=\"\" width=\"1366\" height=\"768\" title=\"\"><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13462\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/type-2.png\" alt=\"\" width=\"979\" height=\"402\" title=\"\"><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13463\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/type-3.png\" alt=\"\" width=\"1320\" height=\"446\" title=\"\"><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13464\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/type-4.png\" alt=\"\" width=\"1019\" height=\"513\" title=\"\"><\/p>\n<p>After selecting the gateway and giving a unique name, create a device type by having other settings at default.<\/p>\n<p>Then go to \u2018browse\u2019 and create a Device.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13455\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/device.png\" alt=\"\" width=\"1322\" height=\"363\" title=\"\"><\/p>\n<p>Select \u2018Add Device\u2019<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13450\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/add-device.png\" alt=\"\" width=\"1314\" height=\"410\" title=\"\"><\/p>\n<div class=\"_form_11\"><\/div>\n<p><script src=\"https:\/\/jigsawacademy67103.activehosted.com\/f\/embed.php?id=11\" type=\"text\/javascript\" charset=\"utf-8\"><\/script><br \/>\nSelect the Device Type created previously and give a unique Device ID.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13458\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/ID.png\" alt=\"\" width=\"1122\" height=\"410\" title=\"\"><\/p>\n<p>Keep other settings at default.<\/p>\n<p>The auth token can be manually set or auto generated. Either way, ensure that it is noted down.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13457\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/down.png\" alt=\"\" width=\"1165\" height=\"532\" title=\"\"><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13456\" src=\"https:\/\/analyticstraining.com\/wp-content\/uploads\/2018\/08\/down-2.png\" alt=\"\" width=\"1318\" height=\"498\" title=\"\"><\/p>\n<p>Here, we developed an IoT Platform starter project which created an app and two services. Then we created a device type and added Raspberry Pi to it as a gateway.<\/p>\n<p>In Part &#8211; 2 of the tutorial, we will see how to communicate with a device connected to Raspberry Pi from IBM Watson IoT platform. We will be using Node-RED for the communication with the help of IBM specific nodes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here, we will be connecting Raspberry Pi as a gateway to IBM Watson IoT platform. Then Arduino Nano is connected to Raspberry Pi as a device. We acquire some device events from the Arduino Nano and send commands from IBM Watson to the device via the gateway. In this part, we will be doing the [&hellip;]<\/p>\n","protected":false},"author":105,"featured_media":13471,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[997],"tags":[1150,534,1151,259,258,1128,1026],"form":[1499],"acf":[],"_links":{"self":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts\/125194"}],"collection":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/users\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/comments?post=125194"}],"version-history":[{"count":0,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/posts\/125194\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/media?parent=125194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/categories?post=125194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/tags?post=125194"},{"taxonomy":"form","embeddable":true,"href":"https:\/\/www.jigsawacademy.com\/wp-json\/wp\/v2\/form?post=125194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}