pushbullet#

class platypush.plugins.pushbullet.PushbulletPlugin(token: str | None = None, **kwargs)[source]#

Bases: Plugin

This plugin allows you to send pushes and files to your PushBullet account. Note: This plugin will only work if the platypush.backend.pushbullet backend is configured.

Requires:

__init__(token: str | None = None, **kwargs)[source]#
Parameters:

token – Pushbullet API token. If not set the plugin will try to retrieve it from the Pushbullet backend configuration, if available

get_device(device) dict | None[source]#
Parameters:

device – Device ID or name

get_devices()[source]#

Get the list of available devices

send_clipboard(text: str)[source]#

Copy text to the clipboard of a device.

Parameters:

text – Text to be copied.

send_file(filename: str, device: str | None = None)[source]#

Send a file.

Parameters:
  • device – Device ID or name (default: None, all devices)

  • filename – Path to the local file

send_note(device: str | None = None, body: str | None = None, title: str | None = None, url: str | None = None, **kwargs)[source]#

Send a note push.

Parameters:
  • device – Device ID or name (default: None, all devices)

  • body – Note body

  • title – Note title

  • url – URL attached to the note

  • kwargs – Push arguments, see https://docs.pushbullet.com/#create-push