platypush.backend.pushbullet

class platypush.backend.pushbullet.PushbulletBackend(token: str, device: str = 'Platypush', proxy_host: Optional[str] = None, proxy_port: Optional[int] = None, **kwargs)[source]

This backend will listen for events on a Pushbullet (https://pushbullet.com) channel and propagate them to the bus. This backend is quite useful if you want to synchronize events and actions with your mobile phone (through the Pushbullet app and/or through Tasker), synchronize clipboards, send pictures and files to other devices etc. You can also wrap Platypush messages as JSON into a push body to execute them.

Triggers:

Requires:

  • requests (pip install requests)
  • pushbullet.py (pip install git+https://github.com/rbrcsk/pushbullet.py)
__init__(token: str, device: str = 'Platypush', proxy_host: Optional[str] = None, proxy_port: Optional[int] = None, **kwargs)[source]
Parameters:
  • token – Your Pushbullet API token, see https://docs.pushbullet.com/#authentication
  • device – Name of the virtual device for Platypush (default: Platypush)
  • proxy_host – HTTP proxy host (default: None)
  • proxy_port – HTTP proxy port (default: None)
on_stop()[source]

Callback invoked when the process stops

run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.