Get Notified When Your Raspberry Pi is Booted with Pushbullet

When working with a headless Raspberry Pi, it’s nice to know when it’s back up and running during a restart. An easy way of becoming notified when your RPi is finished booting is to have it send a notification through the phenomenal service, Pushbullet. According to their website:

Pushbullet connects your devices, making it easy and automatic to share almost anything between them.


Through Pushbullet’s API, you can send yourself notifications to your desktop or to your phone.

Pushbullet Setup Instructions

The first thing you need to do is create a Pushbullet account.

Then install their mobile app for Android or iPhone, or Firefox or Chrome extension.

Grab your Pushbullet access token from your account page.

Test that Pushbullet is working from your RPi command line using curl.

$ curl -u <your_access_token_here>: https://api.pushbullet.com/v2/pushes -d type=note -d title="Raspberry Pi" -d body='Raspberry Pi is up!'

Raspberry Pi Setup Instructions

We’re going to send our Pushbullet command using the rc.local file which is executed once our RPi has finished booting.

Make a backup of your rc.local file.

$ sudo cp /etc/rc.local /etc/rc.local.backup

Open up the rc.local file using nano.

$ sudo nano /etc/rc.local

Add the curl command right before the exit 0 command.

...
curl -u <your_access_token_here>: https://api.pushbullet.com/v2/pushes -d type=note -d title="Raspberry Pi" -d body='Raspberry Pi is up!'

exit 0

Restart your RPi

$ sudo reboot

You should get a notification that your RPi is up.

pb-notification

Advertisements

5 responses to “Get Notified When Your Raspberry Pi is Booted with Pushbullet

  1. I followed your whole plan but when i start my pi i get the message I need to fill in my password and I can fill all i want like nothing or aslkfj and when i press enter he sends the message but i was wondering if he can automatically send the message to me

  2. Pingback: Push Notifacations…. | CodingByChance

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s