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: - subject (str) – The subject.
- message (str) – The message.
- sender (str) – The sender.
- source (LegacyNotification.Source) – The source of the notification
:param actions Actions to be sent with a notification (list of TimelineAction objects) :type actions list