Use Pushbullet with RaspberryPi

Posted on Sat 30 March 2019 in Guides

I use Pushbullet for pretty much everything.

It lets me know when downloads have finished, cameras have detected motion, lights have been switched on and followers gained.

I have the add-ins installed on various devices and am able to see push notifications from other devices, send small files and messages. It's quite handy.

I think its owned by Google.

I'm of the opinion that freemium services come at a cost. Data privacy. I wouldn't personally use it for any sensitive data.

One of the things I do however use it for is motion notifications. When out of the house, my Pi based CCTV is able to detect motion and using pushbullet, let me know.



Setting Pushbullet notifications on the Raspberry Pi is very easy.

Set up a free Pushbullet account

Login and click the setting menu

Under Account, click generate access token

Copy and save the API code for later

Install curl

sudo apt-get -y install curl libcurl3

Create a script

API="enter your API key here"
MSG="Your Message Here"
curl -u $API: -d type=note -d title="Message Title" -d body="$MSG"

Call the script directly to send a push notification.

In the settings of my motion cameras, there is an option "on motion detect" - I call the script.

Super simple, push notifications from the RaspberryPi!