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.
- Setting up the IBM Watson IoT Platform
- Get started
- Create IBM IoT Service
- Connect a Pyrrha device to IBM Watson IoT Platform
- Connect an application to IBM Watson IoT Platform
- Obtain organization ID from the IoT platform
Follow these steps to create an IBM IoT service
-
Create an IBM Cloud account through this link. Fill out all the required information and confirm your email address.
-
Follow this link to provision an instance of the IBM Watson IoT Platform. Note: you can also find this by browsing through the catalog.
-
Make sure the Lite plan is selected and click
Create
. You can change theService Name
if you want to, but it's not required.
Follow these steps to connect a device to IBM Watson IoT Platform
-
Click on
Devices
located on the left toolbar, and then selectAdd Device
. -
Filling out anything in the
Device Information
tab is optional, clickNext
. -
Leave the field for
Authentication Token
blank, as one will be generated automatically. You can specify your own if you prefer. ClickNext
. -
You'll see the authentication token listed, ensure that you do not misplace it, otherwise, you will have to regenerate a new token.
Follow these steps to connect an application to IBM Watson IoT Platform.
-
Click on
Apps
located on the left toolbar, and then selectGenerate API Key
. -
Write a description and once you are done click
Next
, KeepAPI Key Expires
off. -
The role should be
Visualization Application
, if not click on the toolbar and select it. Then clickGenerate Key
. -
The
API Key
is yourIOT_USERNAME
and theAuthentication Token
is yourIOT_PASSWORD
. -
In the
.env
file , fill in the information of theIOT_USERNAME
&IOT_PASSWORD
from step 8^.
Follow these steps to obtain your organization ID to use in environment files: