Page 5 of 34

Re: PushBullet plugin

Posted: Thu May 22, 2014 8:43 pm
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?

Re: PushBullet plugin

Posted: Fri May 23, 2014 3:38 am
by Pako
What do you mean, when you write "URL of a push"?

Pako

Re: PushBullet plugin

Posted: Fri May 23, 2014 4:01 am
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

Re: PushBullet plugin

Posted: Fri May 23, 2014 4:17 am
by Pako

Re: PushBullet plugin

Posted: Fri May 23, 2014 9:09 am
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.

Re: PushBullet plugin

Posted: Fri May 23, 2014 1:19 pm
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

Re: PushBullet plugin

Posted: Fri May 23, 2014 1:51 pm
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

Re: PushBullet plugin

Posted: Fri May 23, 2014 4:14 pm
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.

Re: PushBullet plugin

Posted: Sun May 25, 2014 8:36 am
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

Re: PushBullet plugin

Posted: Mon May 26, 2014 7:53 am
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

Re: PushBullet plugin

Posted: Mon May 26, 2014 11:01 am
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

Re: PushBullet plugin

Posted: Tue May 27, 2014 8:02 am
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.

Re: PushBullet plugin

Posted: Tue May 27, 2014 11:06 am
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

Re: PushBullet plugin

Posted: Tue May 27, 2014 12:57 pm
by Phil
Great job, thats back up and working now, thanks again Pako.

Re: PushBullet plugin

Posted: Tue May 27, 2014 7:14 pm
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.