Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

PushBullet plugin (Pako)

Questions and comments specific to a particular plugin should go here.
Post Reply
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: PushBullet plugin

Post by therealbiglou »

I was wondering if I could get a little help. Is it possible to copy just the URL of a push to the clipboard? If so, how could I go about doing this?
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 »

What do you mean, when you write "URL of a push"?

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 »

@therealbiglou:
Thank you for the log that you sent me using PM.
It appears that you've encountered a bug.
I will try to find it and fix it. Unfortunately, right now I do not have time.

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 »

You know flattr ? You can Image
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil »

I have a new error this morning when trying to send a link

Code: Select all

10:03:22   Exception in thread Thread-14565:
10:03:22   Traceback (most recent call last):
10:03:22     File "threading.pyc", line 532, in __bootstrap_inner
10:03:22     File "threading.pyc", line 484, in run
10:03:22     File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1354, in push
10:03:22       payload['body'] = eg.ParseString(data[2]) if data[2] else None
10:03:22   IndexError: list index out of range
10:03:22   
This is with trying to pass variables into the link. It worked fine last week.
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 »

Phil wrote:I have a new error this morning when trying to send a link
I need to know the content of the payload.
Please add (to the macro where the action Push is located) Python Command action with the following content:
print repr(eg.event.payload).
Then (when the error occurs) attach here the relevant snippet of EventGhost log.

Pako
You know flattr ? You can Image
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil »

The link to be sent in pushbullet is

http://somewebaddress.org.uk/{eg.global ... atsOn_File}

the log is showing

14:52:08 ---> Welcome to EventGhost <---
14:52:11 DirectoryWatcher5.Created (u'C:\\TEST\\2014_05_25_whats_on.pdf',)
14:52:11 CCM Upload
14:52:11 Upload Media and Whats on
14:52:11 Carry on
14:52:11 2014_05_25_whats_on.pdf
14:52:11 Its a file for a Sunday
14:52:11 Process Media - This is a pdf
14:52:11 eg.globals.WhatsOn_File = 2014_05_25_whats_on.pdf
14:52:11 eg.globals.WhatsOn_Dir = whats_on
14:52:11 ****
14:52:11 (u'C:\\TEST\\2014_05_25_whats_on.pdf',)
14:52:11 PushBullet: Push
14:52:11 print repr(eg.event.payload)
14:52:11 (u'C:\\TEST\\2014_05_25_whats_on.pdf',)
14:52:11 Exception in thread Thread-18081:
14:52:11 Traceback (most recent call last):
14:52:11 File "threading.pyc", line 532, in __bootstrap_inner
14:52:11 File "threading.pyc", line 484, in run
14:52:11 File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1354, in push
14:52:11 payload['body'] = eg.ParseString(data[2]) if data[2] else None
14:52:11 IndexError: list index out of range
14:52:11
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: PushBullet plugin

Post by therealbiglou »

Pako wrote:What do you mean, when you write "URL of a push"?

Pako
When I send a link via pushbullet, there is more information in the push than just the URL. I was wondering if I could extract just the URL and copy it to the clipboard.
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 »

I'm sorry, but I had some obligations and I did not have time to EventGhost.
Phil wrote: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 ...
This problem should be solved in the new version (0.0.14).
Phil wrote:I have a new error this morning when trying to send a link ...
I'm not sure, but it might help:
Open the configuration dialog of Push action, check or correct the settings and save.
therealbiglou wrote:When I send a link via pushbullet, there is more information in the push than just the URL. I was wondering if I could extract just the URL and copy it to the clipboard.
I still do not understand your situation. You have in mind a push sent using EventGhost or received using EventGhost?

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 »

They write about us:
On this page you can see, that one of the developers PushBullet also mentions EventGhost. It makes me happy. :D

Pako
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: PushBullet plugin

Post by krambriw »

Another cool example is a great EventGhost integration...
Yes Pako, all credits to you my friend! Very well done!
(I'm still happy with your NMS, it serves my need also very good, I have not moved to PushBullet yet))

Best regards, Walter
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil »

Hi
Opening and closing the event seems to have cleared the sending issue, thanks.
However im still getting some issues.
I've removed a friend who was showing as 'invited' and re added them with a different email address, now when I start the plugin I get

Code: Select all

08:52:56   Starting new HTTPS connection (1): api.pushbullet.com
08:52:57   PushBullet: Devices received: [{u'iden': u'ujzuqqgatfEdjA etc.....
08:52:57   Starting new HTTPS connection (1): api.pushbullet.com
08:52:57   PushBullet: Friends received: [{u'status': u'user', u'iden': u'ujzuqqgatf**********', u'name': u'Lynda', u'created': 14444177050.17588, u'modified': 1477177050.1759, u'source': u'user', u'email_normalized': u'[email protected]', u'active': True, u'email': u'[email protected]'}, {u'active': False, u'iden': u'ujzuqqga*********', u'modified': 1401333031.29831, u'created': 1397031155.1175699}, {u'status': u'invited', u'iden': u'ujzuqqg**********', u'name': u'Rich', u'created': 1397111639.39503, u'modified': 1397048639.9748199, u'source': u'user', u'email_normalized': u'[email protected]', u'has_phone_number': False, u'active': True, u'email': u'[email protected]'}]
08:52:57   Exception in thread Thread-29584:
08:52:57   Traceback (most recent call last):
08:52:57     File "threading.pyc", line 532, in __bootstrap_inner
08:52:57     File "threading.pyc", line 484, in run
08:52:57     File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1288, in updateDevices
08:52:57       if fr['status'] == 'not_user':
08:52:57   KeyError: 'status'
08:52:57   
Now all the options in the pushbullet event are greyed out and I notice the second person on my friends list does not appear.
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 »

That is absolutely clear. A similar case I have not met and therefore I was not prepared for it.
You can try the new version (0.0.16).

Pako
You know flattr ? You can Image
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: PushBullet plugin

Post by Phil »

Great job, thats back up and working now, thanks again Pako.
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: PushBullet plugin

Post by therealbiglou »

Pako wrote:
therealbiglou wrote:When I send a link via pushbullet, there is more information in the push than just the URL. I was wondering if I could extract just the URL and copy it to the clipboard.
I still do not understand your situation. You have in mind a push sent using EventGhost or received using EventGhost?

Pako
To clarify, if I were to send a push a link of this forum to Eventghost, I would get

Code: Select all

14:11:43   PushBullet.Link.EventGhostÔÇóViewforum-PluginSupport [u'http://www.eventghost.org/forum/', '', u'udk3ApjzXH1mtXd6', '', '2014-05-27 14:11:43']
as the event in the log.

I was wondering how I would extract just the http://www.eventghost.org/forum/ part of the push and then copy that URL to the clipboard.

Thanks for your help.
Post Reply