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.
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
$ sudo cp /etc/rc.local /etc/rc.local.backup
Open up the
rc.local file using nano.
$ sudo nano /etc/rc.local
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.