Skip to Content
Author's profile photo Ashish Ahire

HCP Iot Service – CPU Sensor live data

Purpose of this blog is to create simplest HCP Iot service example so that everyone can use it , try it and adapt it 😀

In my last blog i’d shown keyboard led and laptop control via HCP iot service and it was bidirectional (–keyboard-led-and-laptop-control)  so i was thinking can we create more easy blog to understand SAP HCP IOT service 😕

I got idea why not used same our cpu data as sensor data and show it via HCP Iot services 😉 same no Raspberry Pi is require and most of people can easily configure and test it simply without any issue.

Initial Phase design –

IOT design.JPG

What you need to run this example –

Prerequisite – Configure your IOT service – Awesome blog from @Rui Nogueira RaspberryPi on SAP HCP – IoT blog series part 6.1: Getting productive with IoT Services

Step 1) Create Device Type / Device and Message Type


Step 2) Create VBS script / Batch File and Python program ( download from my git hub – http:// )

Note :- keep your all three files in same folder and adjust path in all three files –

Prerequisite – Download python 3.5.1


Step 3) Create UI5 Application and deploy it on HCP . ( Download code from my github


Step 4 – Test it.

Open CMD and run your VBS file and Run your UI5 app which was deployed on HCP.

Run VBS  – cscript //nologo getCPUUsage.vbs

Final Execution – Watch this video

You can create mobile app as well for checking your CPU reading 🙂


Are you ready for predictive analytics and AI space ? if yes you’re on right track …. will post on PA / AI with IOT 🙂

Thanks for reading my blog 🙂 Just try it ….



SAPUI5 Developer Center

ABAP Development

SAP Gateway

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.