From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Pushbullet API for LabVIEW

Code and Documents

Attachment

Here is an alpha version of an Object-based API for the Pushbullet notification service.

It could use a little re-organization and documentation, but it woks.

Note:  You need a Pushbullet account; on your Account Settings page you can access your API_KEY which you need to send notifications.

Issues:

They don't have the best documentation.  I used a blank device ID to assume that you wanted to pull the last ID from a cached disk file.  First off, it turns out that a blank ID will cause the PB API to notify all your devices, so that functionality is not there.  Secondly, this is better off handled at the application level, not in the API.  So that's the first thing I will strip out.

Also, Icons are not great.

There is a good example that shows how to use the service.

Also, if anyone knows how to get a PRoject started on the community boards, please let me know.  Eventually I would like to upload this to the VIPM Tools Network with a GPL license.


Pushbullet Website: https://www.pushbullet.com

Pushbullet API Documentation: https://www.pushbullet.com/api

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
D*
Member
Member
on

Pushbullet = Android only? or iOS too?

Jed_Davidow
Active Participant
Active Participant
on

They have free clients for both iOS and Android.

Check them out; they have some cool features, including the mirroring of mobile notificaitons through chrome to your desktop; so notifications from your phone can selectively pop up on your desktop.

I am not using this to send 30 minute mobile notifications whenever the heaters on one of my systems are >50C.

Robo__Mike
Member
Member
on

What LabView version is this in? I failed to install for version 2012. Would it be possible to build a version for 2012? I would like to try it out.

Jed_Davidow
Active Participant
Active Participant
on

I think it's 2013; but I can save for previous and re-build.  MAybe I'll bump it back to 2011 if that works.  Give me a couple days.

Justy this week I noticed that the PB API went to v2, so my code broke (I didn't get an email from them, what's up with that?!)

Jed_Davidow
Active Participant
Active Participant
on

Also, a year ago I was wrong, they didn't have an iOS client.  They do now, released a few weeks ago.

I beleive the new API has methods for managing and reading older pushes, managing devices, not just making pushes- so I am going to spend a little time to get that stuff coded up too.

Robo__Mike
Member
Member
on

Brilliant, thanks! Not very up with web services, and want to integrate Pushbullet as a trial.

Contributors