Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello to all IoT friends :smile:

In this blog I want to introduce you Pebble @SAP. This blog is just for give ideas to people what can be done with Pebble Timeline.

Let's move... There are 2 parts of application.

  1. Pebble Watchapp
  2. ABAP Package

Pebble Watchapp shows notifications from SAP ABAP and sends Pebble user token using configuration page to SAPUI5 application for the first time. In Pebble Timeline API if you want to send notifications to a user you need to know users Pebble watch token. So this is done by configuration page. I store this token in ABAP table which maps with SAP username. So when you want to send a notification to a user you could just get token this table.

ABAP package contain methods to send notification to Pebble, user token table, log table and an SAPUI5 application to get user token that I mentioned above.

Step-by-step:

  • User installs Pebble Watchapp and opens configuration time just one time for registration. And now we know users token for sending notifications.
  • Now we are to use ABAP methods to send notification. We can call method wherever you want in ABAP system. We have to fill some parameters(usern name, data to send etc). Method prepares JSON data and pass this data to Pebble Timeline API. That’s all!

I’ll make project open source in future. Before that I need to make ABAP classes and methods better :smile: Also I need to get my Pebble Time for better testing :smile:

Note: Pebble Watchapp and ABAP package is a personal project, SAP and I don’t give any guarantee and/or support for this app, class and methods or any developments.

And the screenshots:

Pebble Watchapp on emulator:

Configuration page that gets Pebble user token

ABAP Test program that can send notification to Pebble. You don't need to use this app, just for test purposes.

Notification on Pebble

Note to moderators: If this is not the right place, please move.

7 Comments