Skip to content

Use pushbullet from the command line. Featuring `sms 'contactname' 'message-to-send'`

Notifications You must be signed in to change notification settings

j6k4m8/pybullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybullet

Use pushbullet from the command line. Featuring sms [contact] [message]

Currently a work in progress — contributions welcome!

Setup

Clone this repo and rename the settings-file. Install requirements.

git clone git@github.com:j6k4m8/pybullet.git pybullet
cd pybullet
mv demo-settings.py settings.py
pip install requirements

Now edit settings.py with your own account data. Your account access token is here. Device identifiers can be found by navigating to the Pushbullet devices page and clicking on your phone: The url of that page is then:

https://www.pushbullet.com/#devices/XXXXXzzzzzzzzzzz

The XXXXX is your user_iden, the full X and z string is your device_iden.

Usage

Command Description
sms 2015555555 "hi there!" Send a message to a phone number
contacts add jordan 9739039945 Create a new contact
sms jordan "you're a nerd!" Send a message to a contact
sms jordan and you look goofy too No quotes needed!
sms jordan `ls` Send a contact the output of a bash script! Useful!
contacts ls Also contacts list or contacts l: List contacts
contacts ls jor Lists all contacts that contain the string jor

In another shell (I use tmux), run python ./stream.py. This will open your Pushbullet stream and print the contact name (red) and their message (blue). (Currently working on how to make this an interactive shell.)

contacts add adds a line to a file called .contacts. The contents are hand-editable: Simply add a name, a tab (\t) and a phonenumber. No spaces in the number. If you get a no such file error when running contacts for the first time, simply touch .contacts and you're good to go.

Contributing

Pull-requests welcome! Bug reports (via the Issues page) also welcome.

About

Use pushbullet from the command line. Featuring `sms 'contactname' 'message-to-send'`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages