Skip to content

vidhanbhonsle/IoT-with-HERE-and-IBM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a location aware IoT Ecosystem with HERE and IBM Cloud – Part 1

Introduction

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.

Pre-requisites

  • IBM Cloud account
  • HERE Developer accuont
  • Python installed (3.8 prefered)
  • Any text editor (We are using VS Code)

Learning outcomes

  • 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

Step 1: IBM Cloud Signup/Login

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

image

An email from IBM Cloud is sent to your Email address that you mentioned when signing up

image1

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.

image2

Congrats !, you have now landed on the dashboard of IBM Cloud now we can get started with our workshop

image4

Step 2: Create 'Internet of Things Platform' service on IBM Cloud

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.

1

Once you create an IoT platform service instance, you can click on the “Launch” button from the “manage” section to launch it.

2

Note down the “Organization ID” of your platform instance in the “Settings” screen.

3

Step 3: Connect IoT endpoint with IBM Cloud

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.

4

Add your device with the selected device type, and use the wizard to register your gateway device.

iotplatform-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.

iotplatform-device-credentials

Step 2: Acquire credentials from HERE Developer Portal

To access any of the APIs, first get your credentials by signing up for a freemium account

Register for a free developer account

Step 3: Generate apikeys

RegistrationGif

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published