Purpose: To monitor a person's temperate and guide them to reach the nearest hospital in case of emergency. This will be done by tracking their location, sending them the routing instructions and showing the route on map.
This code Pattern will help you understand how an IoT endpoint communicates with the IBM cloud using MQTT protocol over publish-subscribe architecture. You will get an overview of HERE Location Services and learn how to integrate HERE Location service with your IoT device.
- IBM Cloud account
- HERE Developer accuont
- Python installed (3.8 prefered)
- Any text editor (We are using VS Code)
- Singup/login to IBM Cloud
- Create 'Internet of Things Platform' service on IBM Cloud
- Connect IoT endpoint with IBM Cloud
- MQTT protocol in publish-subscribe architecture
- Integrating HERE Location Services in IoT endpoint
To create a Free IBM Cloud account click https://ibm.biz/HERETech5 You will be redirected to a Sign up page, if you haven't created one yet , Just fill out all the relevant fields and Click on the Create Account button
An email from IBM Cloud is sent to your Email address that you mentioned when signing up
You will have to check your inbox on the email ID that you mentioned when creating the IBM Cloud account. There you will received an confirmation email from IBM Cloud.Click on Confirm Account Button to activate your Free IBM Cloud account.
Congrats !, you have now landed on the dashboard of IBM Cloud now we can get started with our workshop
From the IBM Cloud console, click on Catalog, Select services, Internt of Things, and then select Internet of Things Platform. From here, you can choose a service plan. The Lite plan is free of charge and provides enough capability for most small projects.
Once you create an IoT platform service instance, you can click on the “Launch” button from the “manage” section to launch it.
Note down the “Organization ID” of your platform instance in the “Settings” screen.
We’ll be using a Raspberry Pi as a gateway between the devices and the IoT Platform service. We need to create a new gateway device type and register it in our IoT Platform service that we just created. You can follow the instructions in the Watson IoT Platform documentation for registering your device.
From the Watson IoT Platform dashboard, select Devices from the sidebar, and then select Device Types. Click Add Device Type.
Add your device with the selected device type, and use the wizard to register your gateway device.
On the final wizard screen, copy the device credentials, as you’ll not be able to see them again, and we’ll be needing them later on.
To access any of the APIs, first get your credentials by signing up for a freemium account
Register for a free developer account