Publish your Pulse to Cloud using Lyfas App – Powered by Watson IoT

IoT in healthcare plays a prominent role in managing health of an individual. There are many solutions around this in terms of getting  alert, predictive analytics , health card  and things like that.

The basis for this is moving the data out to cloud for further data analytics.

In this blog, I will be describing how in quick 15 mins you can move your own pulse rate data to Watson IoT platform using the Mobile app developed by Lyfas (

Step 1:

Download the Lyfas Mobile App from playstorelyfas_logo

Step 2: Register the device (Smart phone ) with Watson IoT platform

Here we will deploy the Watson IoT platform through Bluemix and then access the console of Watson IoT platform to register the device.

  • Login to
  • Go to catalog page and select “Boilerplates” as shown
  • boiler
  • Select “Internet of Things Platform starter”  which has the “watson IoT platform” , “Node Red Runtime” and “Cloudant” database available as service
  • iot_platform_starter
  • Provide a name to the application that gets deployed – a unique name. Through this you can access the Watson Iot Platform and also the Node Red.
  • app_name
  • Proceed to deploy the boiler plate. Scroll down to get the Create Button
  • It takes couple of minutes to deploy the Watson IoT platform and the runtime
  • Go back to the dashboard and verify the status of the application. The green button shows that the app is deployed successfully
  • dashboard
  • mypulserunning
  • Note

At this stage, the Watson IoT platform and the runtime is deployed and we are ready to register the device with the platform

  • As a next step, open the application to get into IoT platform
  • Double click on the recently deployed application “mypulserate”, in this case
  • You will see the dashboard of the app with IoT platform, Cloudant and Node Red as a service deployed.
  • Double click on the Watson IoT platform to open the console of it. Here is where we need to register the device
  • platform
  • Launch the IoT console
  • launch_watson
  • Post launching the console, you will get the dashboard of the Watson IoT Platform. Here we need to register the device.
  • To register the device, on the left side menu, select the “Device” Tab as shown below:
  • devices
  • In the devices tab , click on ‘Add Device”
  • add_device
  • Here we need to provide 3 details:
  • (1) Device Type
  • (2) Device ID and
  • (3)Auth Token
  • Start with providing a device type- It should be either a device or a gateway. In this case, we consider the mobile as Device and NOT as gateway. Hence configure it for Device as shown below:
  • Click on Create Device:
  • create_device
  • Provide the device name . It can be any unique name.
  • device_name
  • Click Next and proceed to provide device ID details
  • Provide any unique ID to identify the device, in this case mobile
  • device_id
  • Proceed further and take the default for the next screen. Provide the authentication details in the screen that follows:Though it is optional, better to provide a known password so that it can be referred in the configuration file @ the mobile end
  • password
  • Thats it !! proceed and add the device. Once this step is completed, you will have the device registered and the following details are to be noted down:
  • (1) Device Type
  • (2) Device ID
  • (3) Authentication Token (Password)
  • (4) Organization ID (which is created by default)
  • cred
  • We are proceeding to configure the Mobile App with the above parameter values


Step 3: Configure the client (Mobile App ) with the Watson IoT platform device registration details

  • Open the App and go to “Settings” as shown below:
  • mob_settings


  • Provide the Watson IoT platform device registration details as shown:


  • mob_device_config

Thats it !!…We are all set to publish our pulse data to Watson IoT platform


Step 4: Start tracking your Pulse and publish to cloud

  • Start your Mobile app
  • Go to settings and select ‘Start pulse”. You will see the Mobile flash light turned on
  • Place your index finger on top of the flash
  • Notice that the pulse rate started displaying on the screen.
  • pulse
  • At this stage the pulse is local to your device and now it needs to be moved out to Watson IoT platform
  • Select the “Stream button” to on position. That’s it, you will see the pulse data been published to Watson IoT platform.
  • stream
  • To visualize the data back in Watson IoT platform, go back to the Watson IoT platform console and select the registered device .
  • pulse_connected
  • As shown above, the device will be shown as connected. Double click on that to see that the data is published as json object
  • data_on_cloud
  • Content of each json payload is shown below…
  • data_on_cloud_1


Note: As a next step, using the Node Red editor available, we can move the data to cloudant seamlessly Also once the data is available in the cloud, it can be used to various data analytics like visualization, plotting , predictive analytics using various tools and platform available at Bluemix like Watson machine Learning and Data Science Experience (DSX)

Plotting the data using DSX is covered in the blog :

Soon we are planning to come out with a developer journey to demonstrate the predictive capability using Watson platform and Lyfas device data..Watch out for details…

Hope you find this post quite useful..The UI pertaining to the modules may change in future , but the logic of moving the data out to cloud will remain same.


Author: Rajesh K Jeyapaul

Currently working as Developer Advocate and Startup Mentor @ IBM India,Bangalore. Having primary focus around IoT, Cognitive and Data Science.Apart from technical ,having Interest in exploring bibilical histories, love to play Basket Ball . Having Interest in in Piano and Violin. Loves spends time with Family .Native of Tuticorin.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s