Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 4.13 KB

WATSON_IOT_SETUP.md

File metadata and controls

85 lines (55 loc) · 4.13 KB

Setting up the IBM Watson IoT Platform

In order for the Pyrrha Device to communicate with the internet, you need to create a device in the IBM Watson IoT Platform. Creating a device allows you to connect your an IoT device (in this case, Pyrrha) to IBM Watson. You are telling IBM Watson to let the device connect to the internet and receive its data.

Get started

Create IBM IoT Service

Follow these steps to create an IBM IoT service

  1. Create an IBM Cloud account through this link. Fill out all the required information and confirm your email address.

  2. Follow this link to provision an instance of the IBM Watson IoT Platform. Note: you can also find this by browsing through the catalog.

  3. Make sure the Lite plan is selected and click Create. You can change the Service Name if you want to, but it's not required. step3

  4. After the service provisions, click Launch. step4


Connect a Pyrrha device to IBM Watson IoT Platform

Follow these steps to connect a device to IBM Watson IoT Platform

  1. Click on Devices located on the left toolbar, and then select Add Device. step5

  2. Enter your Device Type and Device ID, then click Next. step6

  3. Filling out anything in the Device Information tab is optional, click Next. step7

  4. Leave the field for Authentication Token blank, as one will be generated automatically. You can specify your own if you prefer. Click Next. step8

  5. Ensure that the Summary page looks good, then click Finish. step9

  6. You'll see the authentication token listed, ensure that you do not misplace it, otherwise, you will have to regenerate a new token. step10


Connect an application to IBM Watson IoT Platform

Follow these steps to connect an application to IBM Watson IoT Platform.

  1. Click on Apps located on the left toolbar, and then select Generate API Key. step5b

  2. Write a description and once you are done click Next, Keep API Key Expires off. step6b

  3. The role should be Visualization Application, if not click on the toolbar and select it. Then click Generate Key. step7b

  4. The API Key is your IOT_USERNAME and the Authentication Token is your IOT_PASSWORD. step8b

  5. In the .env file , fill in the information of the IOT_USERNAME & IOT_PASSWORD from step 8^. step9b


Obtain organization ID from the IoT platform

Follow these steps to obtain your organization ID to use in environment files:

  1. Log into your IBM Cloud account.
  2. Look for the IoT service under resources and launch the IoT platform.
  3. Hover over the left menu to open it and then open Settings
  4. You can find your organization ID under Identity