Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Connecting Intel® IoT Gateways to IBM Watson*

$
0
0

This guide will walk you through adding the IoT Cloud repository to your Intel® IoT Gateway and adding support for IBM Watson* so you can begin developing applications for this platform in your programming language of choice.

Prerequisites

  • Intel® IoT Gateway Technology running IDP 3.1 or above with internet access
  • A development device (such as a laptop) on the same network as the Intel® IoT Gateway
  • Terminal access to the Intel® IoT Gateway from your development device

Please see the following documentation for setting up your Intel® IoT Gateway: Getting Started with Intel® IoT Gateways with Intel® IoT Developer Kit 3.5

Adding the IoT Cloud repository to your Intel® IoT Gateway

  1. Access the console on your gateway either using a monitor and keyboard connected directly or SSH
  2. Add the GPG key for the cloud repository using the following command:
    rpm --import http://iotdk.intel.com/misc/iot_pub.key
  3. On your development device, open a web browser and load the IoT Gateway Developer Hub interface by entering the IP address of your gateway in the address bar.
    Tip: You can find your gateway’s IP address using the ‘ifconfig’ command
  4. Login to the IoT Gateway Developer Hub interface using the credentials root:root
  5. Add the IoT Cloud repository.
  6. Go to the Packages section and click the Add Repo + button.
  7. Populate the fields with the following information, then click Add Repository:
    Name: IoT_Cloud
    URL:http://iotdk.intel.com/repos/iot-cloud/wrlinux7/rcpl13
  8. Finally, click the Update Repositories button to update the package list.

Adding IBM Watson* support to your Intel® IoT Gateway

  1. Click the Add Packages + button to bring up the list of packages you can install.
  2. Search for cloud ibm using the search box at the top of the package window.
  3. Click the ‘Install’ button next to the packagegroup-cloud-ibm entry.

Connecting to IBM Watson with Node-RED*

  1. After installing the IBM* cloud package, the Node-RED* service needs to be restarted so it can pick up the newly installed nodes. Run the following command from the gateway’s console:
    systemctl restart node-red-experience
  2. Load the Node-RED interface
  3. Go to the Administration section of the IoT Gateway Developer Hub and click Launch under the Node-RED icon.
  4. In the Node-RED interface click the menu icon on the right of the window and navigate to Import – Examples - ibm watson-iot and select Time Inject.
  5. Add the Time Inject example to the current flow and click the red Deploy button to start running the flow.
  6. Double-click the IBM IoT Device node to open the configuration dialogue.
  7. Click the link button in the configuration dialogue to take you to the IBM Watson Quickstart dashboard for your Quickstart Id.
  8. When the IBM Watson Quickstart dashboard loads you will be able to view the live data being sent from the gateway.

Congratulations! Your gateway is now connected to Watson.

Dig Deeper into the Intel® IoT Developer Kit with IBM Watson* - Sensor to Cloud: Connecting the Intel® NUC and Arduino 101* Board to the IBM Watson* IoT Platform


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>