Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Add Pushbullet support ! #21

Closed
akileos opened this issue Feb 18, 2014 · 18 comments
Closed

Feature - Add Pushbullet support ! #21

akileos opened this issue Feb 18, 2014 · 18 comments

Comments

@akileos
Copy link

akileos commented Feb 18, 2014

Hi,

Are there any plan to add PushBullet support ?

https://www.pushbullet.com/api

Thanks !

-RB

@akileos
Copy link
Author

akileos commented Feb 18, 2014

With this we could send doorbell pictures to mobile devices :)

If you do not plan doing it I may be able to do it in March.

@jpmens
Copy link
Collaborator

jpmens commented Feb 18, 2014

No plans.

If you, or somebody else, do it, I'll take it. :-)

@akileos
Copy link
Author

akileos commented Feb 19, 2014

Possible quick win : https://github.com/Azelphur/pyPushBullet

@jpmens
Copy link
Collaborator

jpmens commented Feb 20, 2014

If I do this for you, will you test it?

@sumnerboy12
Copy link
Collaborator

I can test JP. Just installed PB the other day to give it a try.

jpmens added a commit that referenced this issue Feb 20, 2014
@jpmens
Copy link
Collaborator

jpmens commented Feb 20, 2014

Fire away @sumnerboy12, and please attach a screenshot for me, will you? :)

@akileos
Copy link
Author

akileos commented Feb 20, 2014

2014-02-20 09:39:28,956 mqttwarn Message received on EDF/IINST: 013
2014-02-20 09:39:28,956 mqttwarn Topic [EDF/IINST] going to ['pushbullet:ChromeMAC']
2014-02-20 09:39:28,957 mqttwarn New pushbullet:ChromeMAC' job: EDF/IINST 2014-02-20 09:39:28,957 mqttwarn processor is handling:pushbullet' for ChromeMAC
2014-02-20 09:39:28,957 pushbullet *** MODULE=services/pushbullet.pyc: service=pushbullet, target=ChromeMAC
2014-02-20 09:39:29,566 pushbullet Cannot notify pushbullet: HTTP Error 400: Bad Request
2014-02-20 09:39:29,566 mqttwarn Notification of pushbullet for `EDF/IINST' FAILED

Maybe failed on my side, hope it works for summerboy :)

@jpmens
Copy link
Collaborator

jpmens commented Feb 20, 2014

2014-02-20 09:39:26,864 pushbullet Cannot notify pushbullet: HTTP Error 400: Bad Request

It looks like either the python module is doing something wrong, or your apikey/deviceID are incorrect ... According to their Web page:

400 Bad Request - Often missing a required parameter.

@akileos
Copy link
Author

akileos commented Feb 20, 2014

My bad, works correctly. Typo on DEVICE ID, shame on me.

image

( Also went to the API page to crosscheck what I might have done wrong )

@jpmens
Copy link
Collaborator

jpmens commented Feb 20, 2014

Great, thanks!

@jpmens jpmens closed this as completed in d073a31 Feb 20, 2014
@sumnerboy12
Copy link
Collaborator

Where did you get your device id from? I tried the 'name' but it returned with HTTP Error 400: Bad request.

@akileos
Copy link
Author

akileos commented Feb 20, 2014

Use the pushbullet_cmd.py getdevices:

% python pushbullet_cmd.py v1uHJv4EQG1lK4fwetwetwetwemYNujBN6JwE9qC getdevices
56294qwert4213120 HP TouchPad
5707rewrwe8738688 Chrome
57410twetwe955648 Enspert CINK SLIM

@sumnerboy12
Copy link
Collaborator

Thanks - yeah that is working now.

@akileos
Copy link
Author

akileos commented Feb 20, 2014

That's me to thank you both for the quick job, I'm really happy 👍

@sumnerboy12
Copy link
Collaborator

Just added some extra notes to the README to give more detail about how to obtain the device id etc. Great stuff JP.

@snauth
Copy link

snauth commented Feb 20, 2014

Sorry, I know this is not a mqttwarn question, but where did you install the pushbullet library? I tried PYTHONPATH but to no avail. I am on Debian.

@sumnerboy12
Copy link
Collaborator

Just copy pushbullet.py to the mqttwarn folder and it will pick it up from there.

@snauth
Copy link

snauth commented Feb 20, 2014

Working now thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants