Let's have a look at the step-by-step implementation:
- Set up a Pushbullet account on your PC and Phone
- For PC
- Go to Pushbullet.com
- Create an account
- For Phone
- Install the Pushbullet app on your phone.
- Log in using the same email address that you used to log in to your PC.
- For PC
- Let's begin applying this script once we've set up the account on both devices.
-
Install the following modules listed below
pip install pushbullet.py==0.9.1 # Used for sending the Push notifications. pip install pywebio # Used for the interface at the output window.
-
Import the following modules
from pushbullet import PushBullet # pip install pushbullet.py==0.9.1 from pywebio.input import * # pip install pywebio from pywebio.output import * from pywebio.session import * import time
-
Go to Pushbullet and obtain the access token.
-
Get your Access Token and use the PushBullet method to create an instance by providing the Access Token in the PushBullet function.
-
Use the push_note function to send data and text inside the function. push_note will take two arguments i.e. data and text. the first argument will work as a Heading in the notification where second argument is a text.
-