{"id":1782,"date":"2016-09-21T00:03:50","date_gmt":"2016-09-20T15:03:50","guid":{"rendered":"http:\/\/www.ktrick.com\/?p=1782"},"modified":"2016-09-21T00:03:50","modified_gmt":"2016-09-20T15:03:50","slug":"xpages-on-bluemix-iot-bb8-part2","status":"publish","type":"post","link":"https:\/\/www.ktrick.com\/en\/xpages-on-bluemix-iot-bb8-part2\/","title":{"rendered":"Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)"},"content":{"rendered":"<h2>Continue from previous post<\/h2>\n<p>This blog is the part 2 of <a href=\"\/xpages-on-bluemix-iot-bb8-part1\">Control BB-8 by XPages on bluemix and IBM IoT Foundation (1\/2)<\/a>.<\/p>\n<p>In the previous post, I explained how to configure Bluetooth device to use by node.js on windows.<\/p>\n<ul>\n<li>1. To control BLE on Windows<\/li>\n<li>2. Get UUID of Bluetooth<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>3. Get BB8-Bluemix project from GitHub<\/h2>\n<p>Surprisingly there is the project named <strong>BB8-Bluemix<\/strong> on the GitHub to manipulate the BB-8 via MQTT(IoT). So please get the project code from following URL.<\/p>\n<p><a href=\"https:\/\/github.com\/shamimshossain\/bb8-bluemix\" target=\"_blank\">https:\/\/github.com\/shamimshossain\/bb8-bluemix<\/a><\/p>\n<p>As the next step, open command prompt and change directory to project folder, then install by issuing &#8220;npm install&#8221;.I got some dependencies warning messages, but it didn&#8217;t interfere the BB-8 manipulation, so I just leave it as it is.<\/p>\n<p><a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-08.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1808 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-08-300x35.png\" alt=\"bluemix-xpages-bb8-08\" width=\"300\" height=\"35\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-08-300x35.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-08-1024x121.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-08-600x71.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-08.png 1121w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/35;\" \/><\/a><\/p>\n<p>After install is completed, open the spheroDemo.js file and replace the parameter of sphero() function on line 3 by Bluetooth UUID which you got from the previous step. The UUID seems to be more than 20 characters on MAC OS, but it was 12 characters on my windows OS.<\/p>\n[code highlight=&#8221;3&#8243; lang=&#8221;javascript&#8221;]\nvar mqtt = require(&#8216;.\/mqtt-wrapper.js&#8217;)();<br \/>\nvar sphero = require(&#8216;sphero&#8217;),<br \/>\nbb8 = sphero(&#8216;cxxxxxxxxxx3&#8217;); \/\/ change BLE address accordingly<\/p>\n<p>bb8.connect(function() {<\/p>\n<p> console.log(&#8216;**** Start debug info *****&#8217;);<br \/>\n console.log(&#8216;Connected to BB-8&#8217;);<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;..<br \/>\n&#8230; truncated &#8230;<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;..<\/p>\n[\/code]\n<p>&nbsp;<\/p>\n<h2>4. Create &#8220;Internet of Things Platform Starter&#8221; application on Bluemix<\/h2>\n<ol>\n<li>Login to bluemix.net<\/li>\n<li>Select &#8220;Internet of Things Platform Starter&#8221; from Catalog.<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-01.png\"><img decoding=\"async\" class=\"prettyPhoto size-medium wp-image-1791 aligncenter lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-01-300x157.png\" alt=\"bluemix-xpages-bb8-01\" width=\"300\" height=\"157\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-01-300x157.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-01-1024x536.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-01-600x314.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-01.png 1311w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/157;\" \/><br \/>\n<\/a><\/li>\n<li>Specify your preffered value to the name and host, then click Create button<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-02.png\"><img decoding=\"async\" class=\"prettyPhoto aligncenter size-medium wp-image-1792 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-02-300x161.png\" alt=\"bluemix-xpages-bb8-02\" width=\"300\" height=\"161\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-02-300x161.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-02-1024x551.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-02-600x323.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-02.png 1318w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/161;\" \/><\/a><\/li>\n<\/ol>\n<h2>5. Add device on IoT Foundation<\/h2>\n<ol>\n<li>After staging the application, select &#8220;Internet of Things Platform&#8221; from the left navigation.<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-03.png\"><img decoding=\"async\" class=\"prettyPhoto aligncenter size-medium wp-image-1793 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-03-300x177.png\" alt=\"bluemix-xpages-bb8-03\" width=\"300\" height=\"177\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-03-300x177.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-03-1024x604.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-03-600x354.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-03.png 1317w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/177;\" \/><br \/>\n<\/a><\/li>\n<li>Click &#8220;Launch Dashboard&#8221; from device connection.<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-04.png\"><img decoding=\"async\" class=\"prettyPhoto aligncenter size-medium wp-image-1794 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-04-300x179.png\" alt=\"bluemix-xpages-bb8-04\" width=\"300\" height=\"179\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-04-300x179.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-04-1024x612.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-04-600x358.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-04.png 1289w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/179;\" \/><br \/>\n<\/a><\/li>\n<li>Click &#8220;Add device&#8221; after &#8220;IBM Watson IoT Platform&#8221; page is opened.<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-05.png\"><img decoding=\"async\" class=\"prettyPhoto aligncenter size-medium wp-image-1795 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-05-300x116.png\" alt=\"bluemix-xpages-bb8-05\" width=\"300\" height=\"116\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-05-300x116.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-05-1024x395.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-05-600x231.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-05.png 1318w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/116;\" \/><br \/>\n<\/a><\/li>\n<li>After popup the wizard, select &#8220;Create Device Type&#8221;, then next.\/li>\n<li>&#8220;Create Device Type&#8221; \u2010 In &#8220;general information&#8221; Type &#8220;sphero&#8221; for the device name, then next.<\/li>\n<li>&#8220;Create Device Type&#8221; \u2010 In &#8220;Template definition&#8221; just click next.<\/li>\n<li>&#8220;Create Device Type&#8221; \u2010 In &#8220;Send information&#8221; just click next.<\/li>\n<li>&#8220;Create Device Type&#8221; \u2010 In &#8220;Metadata(Option)&#8221;just click create.<\/li>\n<li>Select the device type you created above for the &#8220;Select Device Type&#8221; field, then next.<\/li>\n<li>In &#8220;Device Information&#8221; Specify preferred value for &#8220;Device ID&#8221;, then next.<\/li>\n<li>In &#8220;Metadata&#8221; just click next.<\/li>\n<li>In &#8220;Security&#8221; just click next.<\/li>\n<li>In &#8220;Overview&#8221; just click add button.<\/li>\n<li>After displaying the device qualification information, Please copy and keep the values in the red color rectangle.<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-06.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1798 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-06-300x162.png\" alt=\"bluemix-xpages-bb8-06\" width=\"300\" height=\"162\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-06-300x162.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-06-1024x554.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-06-600x325.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-06.png 1305w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/162;\" \/><br \/>\n<\/a><\/li>\n<li>After all done the above steps, back to dashboard of &#8220;Internet of Things Platform Starter&#8221; then check apiKey and apiToken by clicking &#8220;display<br \/>\nqualification info&#8221;<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-07.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1800 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-07-300x252.png\" alt=\"bluemix-xpages-bb8-07\" width=\"300\" height=\"252\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-07-300x252.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-07-600x504.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-07.png 934w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/252;\" \/><\/a><\/li>\n<\/ol>\n<h2>6. Configure properties file of BB8-Bluemix project<\/h2>\n<p>Go to BB8-Bluemix project folder and open sphero-config.properties.<br \/>\nPlease edit the following lines:<\/p>\n[code highlight=&#8221;2,4,6,7&#8243;]\n#Device ID you use when you register with the IoT foundation<br \/>\ndeviceid=xxxxxxxxx-xxx<\/p>\n<p>#For controller (device)<br \/>\nauthtoken=grxxxxxxxxxxxjDt<br \/>\n#For the app (publisher)<br \/>\napikey=a-mxxxxu-gloxxxxxxc<br \/>\napitoken=tkxxxxx4_Wxxxxxxx@<br \/>\n[\/code]\n<ul class=\"ibm-bullet-list\">\n<li>deviceid: Specify the Device ID that you used when registering BB-8 on IBM Watson IoT Platform<\/li>\n<li>authtoken: Specify the authentication token that you got when registering the BB-8 on IBM Watson IoT Platform<\/li>\n<li>apikey, apitoken: Specify apikey and apiToken written in &#8220;IBM Watson IoT Platform&#8221; qualification info<\/li>\n<\/ul>\n<h2>7. Test via Node-Red<\/h2>\n<p>Find the Node-Red sample flow form the bottom of the link page <a href=\"https:\/\/github.com\/shamimshossain\/bb8-bluemix\" target=\"_blank\">bb8-bluemix<\/a>.<\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/shamimshossain\/bb8-bluemix\" target=\"_blank\">bb8-bluemix<\/a>\u00a0Copy the Node-Red json code.(below is the same sample flow)\n[code lang=&#8221;javascript&#8221;]\n[{&quot;id&quot;:&quot;180c60f4.e7f39f&quot;,&quot;type&quot;:&quot;ibmiot out&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;authentication&quot;:&quot;boundService&quot;,&quot;apiKey&quot;:&quot;&quot;,&quot;outputType&quot;:&quot;cmd&quot;,&quot;deviceId&quot;:&quot;spheroownedbyshamim&quot;,&quot;deviceType&quot;:&quot;sphero&quot;,&quot;eventCommandType&quot;:&quot;run&quot;,&quot;format&quot;:&quot;json&quot;,&quot;data&quot;:&quot;___&quot;,&quot;name&quot;:&quot;IBM IoT App Out&quot;,&quot;service&quot;:&quot;registered&quot;,&quot;x&quot;:756,&quot;y&quot;:361,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;b7792b22.4886d8&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;name&quot;:&quot;Run command&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;&quot;,&quot;payloadType&quot;:&quot;none&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;x&quot;:206,&quot;y&quot;:444,&quot;wires&quot;:[[&quot;f29b07a3.0d64f8&quot;]]},{&quot;id&quot;:&quot;f29b07a3.0d64f8&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;name&quot;:&quot;Construct RUN command&quot;,&quot;func&quot;:&quot;msg.payload = JSON.stringify({\\n    d: {\\n        action : \\&quot;#spherorun\\&quot;\\n      }\\n});\\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:468,&quot;y&quot;:449,&quot;wires&quot;:[[&quot;180c60f4.e7f39f&quot;,&quot;d1c575b9.2e3a88&quot;]]},{&quot;id&quot;:&quot;d313ea30.2cec18&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;name&quot;:&quot;Change color to RED&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;&quot;,&quot;payloadType&quot;:&quot;none&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;x&quot;:205,&quot;y&quot;:297,&quot;wires&quot;:[[&quot;26e811fe.d917ee&quot;]]},{&quot;id&quot;:&quot;26e811fe.d917ee&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;name&quot;:&quot;Construct RED command&quot;,&quot;func&quot;:&quot;msg.payload = JSON.stringify({\\n    d: {\\n        action : \\&quot;#red\\&quot;\\n      }\\n});\\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:473,&quot;y&quot;:287,&quot;wires&quot;:[[&quot;180c60f4.e7f39f&quot;,&quot;d1c575b9.2e3a88&quot;]]},{&quot;id&quot;:&quot;61c2c549.9e3d3c&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;name&quot;:&quot;Change color to BLUE&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;&quot;,&quot;payloadType&quot;:&quot;none&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;x&quot;:193,&quot;y&quot;:369,&quot;wires&quot;:[[&quot;18100517.e7effb&quot;]]},{&quot;id&quot;:&quot;18100517.e7effb&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;name&quot;:&quot;Construct BLUE command&quot;,&quot;func&quot;:&quot;msg.payload = JSON.stringify({\\n    d: {\\n        action : \\&quot;#blue\\&quot;\\n      }\\n});\\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:485,&quot;y&quot;:363,&quot;wires&quot;:[[&quot;180c60f4.e7f39f&quot;,&quot;d1c575b9.2e3a88&quot;]]},{&quot;id&quot;:&quot;d1c575b9.2e3a88&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;5fa8453c.a057bc&quot;,&quot;name&quot;:&quot;&quot;,&quot;active&quot;:true,&quot;console&quot;:&quot;false&quot;,&quot;complete&quot;:&quot;false&quot;,&quot;x&quot;:777,&quot;y&quot;:286,&quot;wires&quot;:[]}]\n[\/code]\n<\/li>\n<li>Launch Node-Red from the application URL of &#8220;Internet of Things Platform Starter&#8221; that you created in step 4.<\/li>\n<li>Paste the Node-Red flow by following the steps in the screenshot.<br \/>\n<a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-09.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1809 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-09-300x160.png\" alt=\"bluemix-xpages-bb8-09\" width=\"300\" height=\"160\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-09-300x160.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-09-600x320.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-09.png 807w\" data-sizes=\"(max-width: 300px) 100vw, 300px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/160;\" \/><\/a><\/li>\n<li>Configure the &#8220;IBM IoT App Out&#8221; node by double-click <a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-09.png\"><br \/>\n<\/a> <a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-10.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1810 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-10-235x300.png\" alt=\"bluemix-xpages-bb8-10\" width=\"235\" height=\"300\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-10-235x300.png 235w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-10.png 494w\" data-sizes=\"(max-width: 235px) 100vw, 235px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 235px; --smush-placeholder-aspect-ratio: 235\/300;\" \/><br \/>\n<\/a> &#8211; Specify Device Type &#8220;sphero&#8221; which you used in IoT Foundation.<br \/>\n &#8211; Specify device Id that you used when registering the device on IoT Foundation<\/li>\n<li>Save Node-Red flow by clicking &#8220;Deploy&#8221; button.<\/li>\n<\/ol>\n<p>As the final step, execute spheroDemo.js from command prompt and establish IoT on bluemix connection, then click &#8220;Change color to Red\/Blue&#8221; on Node-Red. If you succeed, you can see BB-8 color is changed.<\/p>\n<h2>8. Create XPages on Bluemix application<\/h2>\n<p>Finally I can write something about XPages! Please follow the steps to create the BB-8 xpages app.<\/p>\n<ol>\n<li>Select XPages runtime from Bluemix catalog.<\/li>\n<li>Specify preferred name and host and then create the new XPages application.<\/li>\n<li>After staging XPages application, please download starter code. You will be able to find application.nsf<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>9.Deploy BB-8 Xpages app<\/h2>\n<p>Please download the BB-8 xpages application template from the following link:<\/p>\n<p><a href=\"http:\/\/ktrick.com\/download\/xpages-bb8-tpl.zip\" target=\"_blank\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1816 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-download.png\" alt=\"bluemix-xpages-bb8-download\" width=\"131\" height=\"152\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 131px; --smush-placeholder-aspect-ratio: 131\/152;\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Download Link: <a href=\"http:\/\/ktrick.com\/download\/xpages-bb8-tpl.zip\" target=\"_blank\">http:\/\/ktrick.com\/download\/xpages-bb8-tpl.zip<\/a><\/p>\n<p style=\"text-align: left;\">Please simply replace the design against your bluemix-xpages application (application.nsf), or copy the design of XPages, scriptLibrary, resources(file), stylesheets from the template.<\/p>\n<p style=\"text-align: left;\">As the last step, please replace the red rectangle lines of sp_mqtt_bb8.js by your IoT information.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-13.png\"><img decoding=\"async\" class=\"aligncenter wp-image-1819 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-13-1024x557.png\" alt=\"bluemix-xpages-bb8-13\" width=\"600\" height=\"326\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-13-1024x557.png 1024w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-13-300x163.png 300w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-13-600x326.png 600w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-13.png 1223w\" data-sizes=\"(max-width: 600px) 100vw, 600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/326;\" \/><\/a><\/p>\n<p style=\"text-align: left;\">Information is also written in &#8220;IBM Watson IoT Platform&#8221; qualification info<\/p>\n<ul class=\"ibm-bullet-list\">\n<li>deviceid: Device ID<\/li>\n<li>pubTopic: If device type is not sphero, then replace as you need<\/li>\n<li>mqtt_host:\u00a0Specify &#8220;mqtt_host&#8221; of qualification info<\/li>\n<li>mqtt_s_port:\u00a0Specify &#8220;mqtt_s_port&#8221; of qualification info<\/li>\n<li>org: Specify &#8220;org&#8221; of qualification info<\/li>\n<li>apiKey:\u00a0Specify &#8220;apiKey&#8221; of qualification info<\/li>\n<li>apiToken:\u00a0Specify &#8220;apiToken&#8221; of qualification info<\/li>\n<\/ul>\n<p style=\"text-align: left;\">After replacing the design and deploy to the Bluemix, you will be able to see the following top page.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-12.png\"><img decoding=\"async\" class=\"aligncenter wp-image-1817 lazyload\" data-src=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-12.png\" alt=\"bluemix-xpages-bb8-12\" width=\"240\" height=\"479\" data-srcset=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-12.png 335w, https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bluemix-xpages-bb8-12-150x300.png 150w\" data-sizes=\"(max-width: 240px) 100vw, 240px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 240px; --smush-placeholder-aspect-ratio: 240\/479;\" \/><\/a><\/p>\n<h2>10. Test by XPage app<\/h2>\n<p>Step1, Execute spheroDemo.js to establish the connection between BB-8 and IoT Foundation.<\/p>\n<p>Step2, Open the xpages app by your smartphone device.<\/p>\n<p>In this XPAGES app, you can manipulate BB-8 by moving your smartphone like back-forward-right-left. Technically this app is using HTML5+Javascript for motion sensor and paho javascript client to publish MQTT to IoT Foundation.<\/p>\n<p>You can manipulate BB-8 like this movie:<\/p>\n<p><iframe width=\"560\" height=\"315\" data-src=\"https:\/\/www.youtube.com\/embed\/mKGrYomFF0c\" frameborder=\"0\" allowfullscreen src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><\/p>\n<p>I hope I can explain the inside technology of xpage app in my next blog, and maybe using Paho Java client as further more step. In fact this app does not need to be xpages since client side Javascript does everything. But I hope this helps some other imagination of using XPages, IoT, Bluemix other services.<br \/>","protected":false},"excerpt":{"rendered":"<p>Continue from previo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1760,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,26,104,105,114],"tags":[66,76,110,89,94],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2) | XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e<\/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.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[:ja]XPages on bluemix\u3068IoT\u3067BB-8\u3092\u52d5\u304b\u3057\u3066\u307f\u305f (2\/2)[:en]Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)[:] | XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e\" \/>\n<meta property=\"og:description\" content=\"Continue from previo [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/\" \/>\n<meta property=\"og:site_name\" content=\"XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ktrickLLC\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-20T15:03:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bb8-photo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tatsuki Kazunori\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KtrickL\" \/>\n<meta name=\"twitter:site\" content=\"@KtrickL\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tatsuki Kazunori\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/\"},\"author\":{\"name\":\"Tatsuki Kazunori\",\"@id\":\"https:\/\/www.ktrick.com\/#\/schema\/person\/b25791ee2e6e62d083128a2d8d723b54\"},\"headline\":\"Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)\",\"datePublished\":\"2016-09-20T15:03:50+00:00\",\"dateModified\":\"2016-09-20T15:03:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/\"},\"wordCount\":2537,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.ktrick.com\/#organization\"},\"keywords\":[\"XPages\",\"bluemix\",\"IoT\",\"Notes\/Domino\",\"XPages \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\"],\"articleSection\":[\"Notes\/Domino\",\"XPages \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\",\"Notes\/Domino \u65e5\u672c\u8a9e\",\"XPages\",\"Bluemix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/\",\"url\":\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/\",\"name\":\"[:ja]XPages on bluemix\u3068IoT\u3067BB-8\u3092\u52d5\u304b\u3057\u3066\u307f\u305f (2\/2)[:en]Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)[:] | XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e\",\"isPartOf\":{\"@id\":\"https:\/\/www.ktrick.com\/#website\"},\"datePublished\":\"2016-09-20T15:03:50+00:00\",\"dateModified\":\"2016-09-20T15:03:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/www.ktrick.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"XPages on bluemix\u3068IoT\u3067BB-8\u3092\u52d5\u304b\u3057\u3066\u307f\u305f (2\/2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ktrick.com\/#website\",\"url\":\"https:\/\/www.ktrick.com\/\",\"name\":\"XPages\u3001HCL Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e\",\"description\":\"HCL Notes\/Domino\u306e\u4fdd\u5b88\u3001\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u304b\u3089\u30a2\u30d7\u30ea\u958b\u767a\u3001\u30af\u30e9\u30a6\u30c9\u904b\u7528\u307e\u3067\u5168\u3066\u3092\u30b5\u30dd\u30fc\u30c8\",\"publisher\":{\"@id\":\"https:\/\/www.ktrick.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ktrick.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.ktrick.com\/#organization\",\"name\":\"\u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e\",\"url\":\"https:\/\/www.ktrick.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ktrick.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2019\/09\/KTRICK_300x300.png\",\"contentUrl\":\"https:\/\/www.ktrick.com\/wp-content\/uploads\/2019\/09\/KTRICK_300x300.png\",\"width\":300,\"height\":300,\"caption\":\"\u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e\"},\"image\":{\"@id\":\"https:\/\/www.ktrick.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ktrickLLC\",\"https:\/\/twitter.com\/KtrickL\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.ktrick.com\/#\/schema\/person\/b25791ee2e6e62d083128a2d8d723b54\",\"name\":\"Tatsuki Kazunori\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ktrick.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9638cc5f66ac38d785f171da94301196?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9638cc5f66ac38d785f171da94301196?s=96&d=mm&r=g\",\"caption\":\"Tatsuki Kazunori\"},\"description\":\"\u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e CEO &amp; CTO\u3092\u3057\u3066\u3044\u307e\u3059\u3002 Notes\/Domino\u306e\u958b\u767a\u3092\u5f97\u610f\u3068\u3057\u307e\u3059\u304c\u3001 C++ \/ Java \/ PHP \/ Javascript \u306a\u3069\u306e\u8a00\u8a9e\u3092\u4f7f\u3063\u3066WEB\u30a2\u30d7\u30ea\u3001iPhone \/ Android \u30a2\u30d7\u30ea\u958b\u767a\u306a\u3069\u3092\u3057\u305f\u308a\u3057\u307e\u3059\u3002 XPages\u306e\u4ed5\u4e8b\u3092\u3057\u3066\u3044\u308b\u3068\u30c6\u30f3\u30b7\u30e7\u30f3\u304c\u901a\u5e38\u306e1.25\u500d\u3050\u3089\u3044\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002 I am owner of KTrick Co., Ltd. and Notes\/Domino developer. HCL Ambassador (IBM Champion for 2015 - current). I am interested in web application development and preferred languages are Notes\/Domino, C++ \/ Java \/ PHP \/ Javascript.\",\"sameAs\":[\"http:\/\/www.ktrick.com\/wp\"],\"url\":\"https:\/\/www.ktrick.com\/en\/author\/ktatsuki\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[:ja]XPages on bluemix\u3068IoT\u3067BB-8\u3092\u52d5\u304b\u3057\u3066\u307f\u305f (2\/2)[:en]Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)[:] | XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e","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.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/","og_locale":"en_US","og_type":"article","og_title":"[:ja]XPages on bluemix\u3068IoT\u3067BB-8\u3092\u52d5\u304b\u3057\u3066\u307f\u305f (2\/2)[:en]Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)[:] | XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e","og_description":"Continue from previo [&hellip;]","og_url":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/","og_site_name":"XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e","article_publisher":"https:\/\/www.facebook.com\/ktrickLLC","article_published_time":"2016-09-20T15:03:50+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/www.ktrick.com\/wp-content\/uploads\/2016\/09\/bb8-photo.jpg","type":"image\/jpeg"}],"author":"Tatsuki Kazunori","twitter_card":"summary_large_image","twitter_creator":"@KtrickL","twitter_site":"@KtrickL","twitter_misc":{"Written by":"Tatsuki Kazunori","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#article","isPartOf":{"@id":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/"},"author":{"name":"Tatsuki Kazunori","@id":"https:\/\/www.ktrick.com\/#\/schema\/person\/b25791ee2e6e62d083128a2d8d723b54"},"headline":"Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)","datePublished":"2016-09-20T15:03:50+00:00","dateModified":"2016-09-20T15:03:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/"},"wordCount":2537,"commentCount":0,"publisher":{"@id":"https:\/\/www.ktrick.com\/#organization"},"keywords":["XPages","bluemix","IoT","Notes\/Domino","XPages \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a"],"articleSection":["Notes\/Domino","XPages \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a","Notes\/Domino \u65e5\u672c\u8a9e","XPages","Bluemix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/","url":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/","name":"[:ja]XPages on bluemix\u3068IoT\u3067BB-8\u3092\u52d5\u304b\u3057\u3066\u307f\u305f (2\/2)[:en]Control BB-8 by XPages on bluemix and IBM IoT Foundation (2\/2)[:] | XPages\u3001IBM Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e","isPartOf":{"@id":"https:\/\/www.ktrick.com\/#website"},"datePublished":"2016-09-20T15:03:50+00:00","dateModified":"2016-09-20T15:03:50+00:00","breadcrumb":{"@id":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ktrick.com\/xpages-on-bluemix-iot-bb8-part2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/www.ktrick.com\/"},{"@type":"ListItem","position":2,"name":"XPages on bluemix\u3068IoT\u3067BB-8\u3092\u52d5\u304b\u3057\u3066\u307f\u305f (2\/2)"}]},{"@type":"WebSite","@id":"https:\/\/www.ktrick.com\/#website","url":"https:\/\/www.ktrick.com\/","name":"XPages\u3001HCL Notes\/Domino\u306e\u30e2\u30d0\u30a4\u30eb\u30fbWEB\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3001\u6280\u8853\u652f\u63f4 - \u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e","description":"HCL Notes\/Domino\u306e\u4fdd\u5b88\u3001\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u304b\u3089\u30a2\u30d7\u30ea\u958b\u767a\u3001\u30af\u30e9\u30a6\u30c9\u904b\u7528\u307e\u3067\u5168\u3066\u3092\u30b5\u30dd\u30fc\u30c8","publisher":{"@id":"https:\/\/www.ktrick.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ktrick.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.ktrick.com\/#organization","name":"\u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e","url":"https:\/\/www.ktrick.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ktrick.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.ktrick.com\/wp-content\/uploads\/2019\/09\/KTRICK_300x300.png","contentUrl":"https:\/\/www.ktrick.com\/wp-content\/uploads\/2019\/09\/KTRICK_300x300.png","width":300,"height":300,"caption":"\u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e"},"image":{"@id":"https:\/\/www.ktrick.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ktrickLLC","https:\/\/twitter.com\/KtrickL"]},{"@type":"Person","@id":"https:\/\/www.ktrick.com\/#\/schema\/person\/b25791ee2e6e62d083128a2d8d723b54","name":"Tatsuki Kazunori","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ktrick.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9638cc5f66ac38d785f171da94301196?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9638cc5f66ac38d785f171da94301196?s=96&d=mm&r=g","caption":"Tatsuki Kazunori"},"description":"\u30b1\u30fc\u30c8\u30ea\u30c3\u30af\u682a\u5f0f\u4f1a\u793e CEO &amp; CTO\u3092\u3057\u3066\u3044\u307e\u3059\u3002 Notes\/Domino\u306e\u958b\u767a\u3092\u5f97\u610f\u3068\u3057\u307e\u3059\u304c\u3001 C++ \/ Java \/ PHP \/ Javascript \u306a\u3069\u306e\u8a00\u8a9e\u3092\u4f7f\u3063\u3066WEB\u30a2\u30d7\u30ea\u3001iPhone \/ Android \u30a2\u30d7\u30ea\u958b\u767a\u306a\u3069\u3092\u3057\u305f\u308a\u3057\u307e\u3059\u3002 XPages\u306e\u4ed5\u4e8b\u3092\u3057\u3066\u3044\u308b\u3068\u30c6\u30f3\u30b7\u30e7\u30f3\u304c\u901a\u5e38\u306e1.25\u500d\u3050\u3089\u3044\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002 I am owner of KTrick Co., Ltd. and Notes\/Domino developer. HCL Ambassador (IBM Champion for 2015 - current). I am interested in web application development and preferred languages are Notes\/Domino, C++ \/ Java \/ PHP \/ Javascript.","sameAs":["http:\/\/www.ktrick.com\/wp"],"url":"https:\/\/www.ktrick.com\/en\/author\/ktatsuki\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/posts\/1782"}],"collection":[{"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/comments?post=1782"}],"version-history":[{"count":26,"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/posts\/1782\/revisions"}],"predecessor-version":[{"id":1833,"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/posts\/1782\/revisions\/1833"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/media\/1760"}],"wp:attachment":[{"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/media?parent=1782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/categories?post=1782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktrick.com\/en\/wp-json\/wp\/v2\/tags?post=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}