Click here to Skip to main content
14,091,993 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3.2K views
Posted 19 Jul 2016
Licenced CPOL

Connecting Intel® IoT Gateways To IBM Watson

, 19 Jul 2016
Rate this:
Please Sign up or sign in to vote.
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.

This article is for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers

Get access to the new Intel® IoT Developer Kit, a complete hardware and software solution that allows developers to create exciting new solutions with the Intel® Galileo and Intel® Edison boards. Visit the Intel® Developer Zone for IoT.

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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Intel Corporation
United States United States
You may know us for our processors. But we do so much more. Intel invents at the boundaries of technology to make amazing experiences possible for business and society, and for every person on Earth.

Harnessing the capability of the cloud, the ubiquity of the Internet of Things, the latest advances in memory and programmable solutions, and the promise of always-on 5G connectivity, Intel is disrupting industries and solving global challenges. Leading on policy, diversity, inclusion, education and sustainability, we create value for our stockholders, customers and society.
Group type: Organisation

43 members


You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web05 | 2.8.190518.1 | Last Updated 19 Jul 2016
Article Copyright 2016 by Intel Corporation
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid