PushBullet plugin (Pako)

Questions and comments specific to a particular plugin should go here.
chris3g
Posts: 5
Joined: Mon May 08, 2017 2:36 pm

Re: PushBullet plugin (Pako)

Post by chris3g » Sun May 21, 2017 5:07 pm

My situation is the same, nothing is logged other than the plugin loaded message (on level 5), unless a push is attempted, in which case I get the same no connectivity message.

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

Re: PushBullet plugin (Pako)

Post by Pako » Mon May 22, 2017 7:34 am

It is difficult for me to find a cause, when it works smoothly for me (and I believe that for most users too). I hope you understand me.
At this point, I have only one idea: can you temporarily disable firewall (for a short while) and then try it out ?

EDIT:
Maybe we could take advantage of the fact that you are two who have exactly the same problem.
I need to know what you have the same.
For example, a network, router, internet provider, firewall, antivirus, windows version and so on (everything that comes to mind).

Pako
You know flattr ? You can Image

Possessed
Posts: 2
Joined: Thu Jun 01, 2017 5:35 am

Re: PushBullet plugin (Pako)

Post by Possessed » Thu Jun 01, 2017 5:58 am

Great work Pako

I had no output either - perhaps they may be seeing similar issues as I saw:
running version = "0.2.18"

def connectivity(self):
c = pycurl.Curl()
c.setopt(pycurl.URL, 'http://www.google.com')
c.setopt(pycurl.CONNECTTIMEOUT, 5)
c.setopt(pycurl.TIMEOUT, 5)
if self.proxy[0]:
c.setopt(pycurl.PROXY, str(self.proxy[0]))
c.setopt(pycurl.PROXYPORT, self.proxy[1])
if self.proxy[2]:
c.setopt(
pycurl.PROXYUSERPWD,
"%s:%s" % (str(self.proxy[2]), str(self.proxy[3].Get()))
)
try:
---- Exception here caught and never connected / no messges ----
c.perform()

status_code = c.getinfo(c.RESPONSE_CODE)
c.close()
except:
status_code = None

return status_code in (200, 302)

this is the result when I do perform() outside the try block:

00:43:25 Exception in thread Thread-4:
00:43:25 Traceback (most recent call last):
00:43:25 File "threading.pyc", line 532, in __bootstrap_inner
00:43:25 File "threading.pyc", line 484, in run
00:43:25 File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 3769, in updateDevices
00:43:25 if not self.connectivity():
00:43:25 File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 2764, in connectivity
00:43:25 c.perform()
00:43:25 error: (23, 'Failed writing body (415 != 1460)')
00:43:25


So, I just returned True to bypass. Then the next error:

def start(self):
auth = None
auth = ''
if self.plugin.proxy[0] != "":
host = str(self.plugin.proxy[0])
port = self.plugin.proxy[1]
if self.plugin.proxy[2] != "":
auth = (
str(self.plugin.proxy[2]),
str(self.plugin.proxy[3].Get())
)
else:
host = None
port = None
---Exception here-----------
self.run_forever(
http_proxy_host = host,
http_proxy_port = port,
http_proxy_auth = auth
)



00:46:00 Exception in thread Thread-5:
00:46:00 Traceback (most recent call last):
00:46:00 File "threading.pyc", line 532, in __bootstrap_inner
00:46:00 File "threading.pyc", line 484, in run
00:46:00 File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1604, in start
00:46:00 http_proxy_auth = auth
00:46:00 TypeError: run_forever() got an unexpected keyword argument 'http_proxy_auth'
00:46:00


replaced with:

self.run_forever()

runs and gets messages now. have not tried much else

chris3g
Posts: 5
Joined: Mon May 08, 2017 2:36 pm

Re: PushBullet plugin (Pako)

Post by chris3g » Thu Jun 01, 2017 1:45 pm

Possessed wrote:Great work Pako

I had no output either - perhaps they may be seeing similar issues as I saw:
running version = "0.2.18"


runs and gets messages now. have not tried much else

this worked for me!

HenryMast
Posts: 7
Joined: Sat Jun 24, 2017 4:40 am

Re: PushBullet plugin (Pako)

Post by HenryMast » Mon Jun 26, 2017 10:21 am

Have problems installing the plugin. After having set the thing up, getting this kind of red stuff:
Image

Any ideas what the solution might be?

(EDIT: the above red is generated with the version 0.2.18)
Last edited by HenryMast on Mon Jun 26, 2017 12:41 pm, edited 2 times in total.

HenryMast
Posts: 7
Joined: Sat Jun 24, 2017 4:40 am

Re: PushBullet plugin (Pako)

Post by HenryMast » Mon Jun 26, 2017 11:19 am

Yea, got it working, to a degree that I can now send info back and forth. Great! However, I still get this part of the red one at startup, PushBullet: Request error: {"error":{"code":"insufficient_authorization","type":"invalid_request","message":"Insufficient authorization.","cat":"(=^‥^=)"},"error_code":"insufficient_authorization"}

(EDIT: I got it working with Version 0.2.16 - thinking that the red line of text might be caused due the function that is obselete externally, as for removed with the version 0.2.18. All-in-all, very happy with 0.2.16, works very well for me.)

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

Re: PushBullet plugin (Pako)

Post by Pako » Mon Jun 26, 2017 1:10 pm

New version 0.2.19 released.
Please pay attention to the upgrade method. You must upgrade the libraries (contained in the PushBulletPluginFolder.zip file) too !

Pako
You know flattr ? You can Image

seftjk2
Posts: 1
Joined: Fri Jun 30, 2017 8:04 pm

Re: PushBullet plugin (Pako)

Post by seftjk2 » Fri Jun 30, 2017 8:13 pm

I installed the new version, but have the same problem.

I just wanted to add that when you try let's say to send push (all of them) all the fields in the form are either gray or noneditable. (I attached screenshot)
Attachments
233.png

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

Re: PushBullet plugin (Pako)

Post by Pako » Sat Jul 01, 2017 2:26 pm

It seems that the panel is disabled. This happens when there is no websocket connection.
The reason may be that you have the main configuration dialog of the plugin incorrectly filled (or blank).
Are you sure you have the correct API key there?

Pako
You know flattr ? You can Image

chris3g
Posts: 5
Joined: Mon May 08, 2017 2:36 pm

Re: PushBullet plugin (Pako)

Post by chris3g » Sat Jul 01, 2017 3:42 pm

It looks like the same issue i have with no connection. The only way I've been able to get it working was to make the code changes that were posted above to bypass the proxy section.

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

Re: PushBullet plugin (Pako)

Post by Pako » Sat Jul 01, 2017 4:51 pm

chris3g wrote:It looks like the same issue i have with no connection. The only way I've been able to get it working was to make the code changes that were posted above to bypass the proxy section.
That problem should be resolved in 0.2.19.

Pako
You know flattr ? You can Image

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

Re: PushBullet plugin (Pako)

Post by piert » Sun Jul 02, 2017 12:38 pm

Hi Pako,

Unfortunately, same issue for me.
Pushing note from EG gives 'Pushbullet: No connectivity, waiting...'
Sending test note from IPhone to EG: nothing is received in EG event log.

EG 0.4.1 r1710
Win 7 Home Premium
PushBullet 0.2.19, updated as instructed
Tried with original PB API key and newly generated 'Access token'

Regards,
Perry

EDIT: HOLD - THERE MAY BE AN ISSUE WITH MY INTERNET CONNECTIVITY UNRELATED TO THE PB PLUGIN
I will investigate and report back asap.

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

Re: PushBullet plugin (Pako)

Post by piert » Mon Jul 03, 2017 1:35 pm

OK, I had an internet connection issue, but after solving that, there is still a Pushbullet problem.

I am able to send notes from Eventghost using the PB plugin to my other devices.
I am NOT able to send notes from my other devices to Eventghost.

Every minute or so, the following appears in the EG log:

15:29:54 PushBullet: Haven't seen a nop lately, reconnecting
15:29:54 PushBullet.InternetConnection.Restored
15:29:55 Exception in thread Thread-300:
15:29:55 Traceback (most recent call last):
15:29:55 File "threading.pyc", line 532, in __bootstrap_inner
15:29:55 File "threading.pyc", line 484, in run
15:29:55 File "C:\Program Files\EventGhost\plugins\PushBullet\__init__.py", line 1607, in start
15:29:55 http_proxy_auth = auth
15:29:55 TypeError: run_forever() got an unexpected keyword argument 'http_proxy_auth'

I have tried with using a password for 'end to end encryption' and without a password. The problem remains the same.

EDIT: updated post after finding out the above red text appears periodically in the EventGhost log rather than after attempting to send a PB note to EG.

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

Re: PushBullet plugin (Pako)

Post by Pako » Mon Jul 03, 2017 2:46 pm

piert wrote:TypeError: run_forever() got an unexpected keyword argument 'http_proxy_auth'
Pako wrote:That problem should be resolved in 0.2.19.
You know flattr ? You can Image

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

Re: PushBullet plugin (Pako)

Post by piert » Mon Jul 03, 2017 3:11 pm

Hi Pako,

Thanks for the reply.
I know it should be solved in 0.2.19, but it actually appears not to be since I am using 0.2.19 and the problem remains :?

Post Reply