PushBullet plugin (Pako)

Questions and comments specific to a particular plugin should go here.
Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil » Mon May 19, 2014 7:23 am

Thanks again Pako, im glad this is working properly again.

I have two questions.
- Does 'Push to everything' push to just your own devices or does it actually push to everything including friends?
- The delete push requires a push iden, where do you get this information from? If I just pushed a note and want to delete it a few seconds later how do I know its iden?

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Mon May 19, 2014 8:28 am

Phil wrote:Does 'Push to everything' push to just your own devices or does it actually push to everything including friends?
See PushBullet API:
device_iden - The identifiers of the device this push is to be routed to. If absent, the push goes to all of the account's devices.
A friend - he is not the account's device.
Phil wrote:The delete push requires a push iden, where do you get this information from? If I just pushed a note and want to delete it a few seconds later how do I know its iden?
Look carefully at the example that I have published.
Pako
You know flattr ? You can Image

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil » Mon May 19, 2014 9:06 am

Ah, ok, I've looked carefully and think I understand.
The delete function is for messages sent into eventghost. I was thinking it was a similar function to the mirror in the chrome plug-in where you could choose to dismiss the message from my phones notification area :oops:

thanks.

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Mon May 19, 2014 4:54 pm

Phil wrote:Ah, ok, I've looked carefully and think I understand.
The delete function is for messages sent into eventghost.
In the next version it will be available also an option to delete pushes, sent using EventGhost.
Pako
You know flattr ? You can Image

piert
Experienced User
Posts: 295
Joined: Tue Jun 14, 2011 2:53 pm

Re: PushBullet plugin

Post by piert » Tue May 20, 2014 7:13 am

That sounds promising, I will be looking out for the new version then!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Tue May 20, 2014 9:41 am

New version (0.0.12) released.
News:
  • added option to delete pushes, sent using this plugin
A more detailed description:
Action Push was expanded to include a new parameter - Event suffix:
NewPushAction.png
Note: If the field is left blank, the event will not be triggered.

If you are sending a Push to only one target, then it's simple to use:
PB_DeletePush2.png
PB_DeletePush2.png (4.45 KiB) Viewed 6298 times
If selected several targets simultaneously, it will require some scripting.
Here's example how the payload of event looks, when you select two targets:

Code: Select all

[
{'device_iden': u'0123abcd', 'type': 'device', 'nickname': u'EG_notebook', 'ok': True, 'push_iden': u'ujBlbIJ7TNcpjAtdrosor6'}, 
{'type': 'friend', 'ok': True, 'nickname': u'James', 'email': u'j.b.007@gmail.com', 'push_iden': u'ujyuu38KSs0pjz0Z1Zjaea'}
]
If "ok" = False, it means that sending failed and parameter "push_iden" will be missed.

Pako
You know flattr ? You can Image

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Wed May 21, 2014 4:24 am

New version (0.0.13) released.
News:
  • forced change of url, used to test connectivity
You know flattr ? You can Image

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil » Wed May 21, 2014 7:33 am

Thanks Pako, this plugin gets more useful by the day, you must not be sleeping much! :)

Would it be possible to explain what the push mirror option does? I notice I cant send a message to my phone from that only to other items but dont really understand its purpose. I've looked on the pushbullet website but cant see any explanation of its use there.

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Wed May 21, 2014 4:03 pm

Phil wrote:Would it be possible to explain what the push mirror option does?
I think in short it can be said as follows:
Primarily mirroring is designed to forward notifications from phone to PC
(for example: in your pocket the phone rings and you can see on the computer screen, who is calling).

Receive mirroring, it can for example Chrome extension or EventGhost with PushBullet plugin.
PushBullet service does not allow reverse function (phone as a recipient of mirroring).

However EventGhost/PushBullet plugin allows both receiving and sending.
How do you use it, it depends on you.
Note: Notice that only mirroring allows you to add an icon to the message.

Pako
You know flattr ? You can Image

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil » Thu May 22, 2014 9:46 am

With version 0.0.13 im getting the following message which I used to get with v0.0.10 I think but was cleared after that.
This just runs constantly though the log.

10:17:05 PushBullet: WebSocket closed
10:17:06 Starting new HTTPS connection (1): api.pushbullet.com
10:17:07 PushBullet: WebSocket opened
10:32:21 PushBullet: Haven't seen a nop lately, reconnecting
10:32:21 PushBullet: WebSocket closed
10:32:21 Starting new HTTPS connection (1): api.pushbullet.com
10:32:22 PushBullet: WebSocket opened
10:34:36 PushBullet: Haven't seen a nop lately, reconnecting
10:34:36 PushBullet: WebSocket closed

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Thu May 22, 2014 10:16 am

That's interesting, I have no such problem.
Also, I do not know why there is the message "Starting new HTTPS connection (1): api.pushbullet.com".
This (with 100% certainty) does not write PushBullet plugin.

Try the attached test version 0.0.13a.
If that fails, there came to me one option:
Try to also replace the file Scheduler.py (see this topic - post 2014 5 17 Sat, 12:21).
Scheduler.py file is located in the .../eg/Classes folder.

Pako
Attachments
__init__.py
test version 0.0.13a
(73.61 KiB) Downloaded 148 times
You know flattr ? You can Image

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil » Thu May 22, 2014 1:25 pm

Thanks but neither of those have stopped it.
I get this on start up
14:13:57 Starting new HTTPS connection (1): api.pushbullet.com
14:13:57 PushBullet: Devices received: [{u'iden': etc........
14:13:57 Starting new HTTPS connection (1): api.pushbullet.com
14:13:58 PushBullet: Friends received: [{u'status': u'invited', u'iden': etc...
14:13:58 PushBullet: Targets derived: [(u'Samsung S5', etc.....
14:13:58 Starting new HTTPS connection (1): api.pushbullet.com
14:13:59 Starting new HTTPS connection (1): api.pushbullet.com
14:14:00 PushBullet: WebSocket opened

then the same messages start almost 8 minutes later and look to be every couple of minutes.

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Thu May 22, 2014 1:33 pm

This passage is totally correct. I do not see anything objectionable.
Please set Logging level to a value of 5.
Then attach a long passage.

Pako
You know flattr ? You can Image

Phil
Experienced User
Posts: 110
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil » Thu May 22, 2014 1:49 pm

thanks, Will do. How to I change logging level?

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Thu May 22, 2014 1:58 pm

Phil wrote:thanks, Will do. How to I change logging level?
Attachments
PB_pluginDialog.png
You know flattr ? You can Image

Post Reply