Notifications

This sends simple notifications to the watch. It could probably use some improvement.

class libpebble2.services.notifications.Notifications(pebble, blobdb=None)

Sends notifications.

Parameters:
  • pebble (PebbleConnection) – The Pebble to send a notification to.
  • blobdb – An existing BlobDBClient, if any. If necessary, one will be created.
send_notification(subject='', message='', sender='', source=None, actions=None)

Sends a notification. Blocks as long as necessary.

Parameters:

:param actions Actions to be sent with a notification (list of TimelineAction objects) :type actions list