Click here to Skip to main content
15,671,149 members
Articles / Internet of Things
Posted 19 Jul 2016

Tagged as



Connecting Intel® IoT Gateways To IBM Watson

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
19 Jul 2016CPOL2 min read
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.


  • 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
  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
    Image 1
  5. Add the IoT Cloud repository.
  6. Go to the Packages section and click the Add Repo + button.
    Image 2
  7. Populate the fields with the following information, then click Add Repository:
    Name: IoT_Cloud
  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.
    Image 3
  2. Search for cloud ibm using the search box at the top of the package window.
    Image 4
  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.
    Image 5
  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.
    Image 6
  5. Add the Time Inject example to the current flow and click the red Deploy button to start running the flow.
    Image 7
  6. Double-click the IBM IoT Device node to open the configuration dialogue.
    Image 8
  7. Click the link button in the configuration dialogue to take you to the IBM Watson Quickstart dashboard for your Quickstart Id.
    Image 9
  8. When the IBM Watson Quickstart dashboard loads you will be able to view the live data being sent from the gateway.
    Image 10

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


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

Written By
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.
This is a Organisation

42 members

Comments and Discussions

-- There are no messages in this forum --