Page 27 of 34

Re: PushBullet plugin (Pako)

Posted: Sun May 21, 2017 5:07 pm
by chris3g
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.

Re: PushBullet plugin (Pako)

Posted: Mon May 22, 2017 7:34 am
by Pako
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

Re: PushBullet plugin (Pako)

Posted: Thu Jun 01, 2017 5:58 am
by Possessed
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

Re: PushBullet plugin (Pako)

Posted: Thu Jun 01, 2017 1:45 pm
by chris3g
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!

Re: PushBullet plugin (Pako)

Posted: Mon Jun 26, 2017 10:21 am
by HenryMast
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)

Re: PushBullet plugin (Pako)

Posted: Mon Jun 26, 2017 11:19 am
by HenryMast
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.)

Re: PushBullet plugin (Pako)

Posted: Mon Jun 26, 2017 1:10 pm
by Pako
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

Re: PushBullet plugin (Pako)

Posted: Fri Jun 30, 2017 8:13 pm
by seftjk2
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)

Re: PushBullet plugin (Pako)

Posted: Sat Jul 01, 2017 2:26 pm
by Pako
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

Re: PushBullet plugin (Pako)

Posted: Sat Jul 01, 2017 3:42 pm
by chris3g
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.

Re: PushBullet plugin (Pako)

Posted: Sat Jul 01, 2017 4:51 pm
by Pako
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

Re: PushBullet plugin (Pako)

Posted: Sun Jul 02, 2017 12:38 pm
by piert
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.

Re: PushBullet plugin (Pako)

Posted: Mon Jul 03, 2017 1:35 pm
by piert
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.

Re: PushBullet plugin (Pako)

Posted: Mon Jul 03, 2017 2:46 pm
by Pako
piert wrote:TypeError: run_forever() got an unexpected keyword argument 'http_proxy_auth'
Pako wrote:That problem should be resolved in 0.2.19.

Re: PushBullet plugin (Pako)

Posted: Mon Jul 03, 2017 3:11 pm
by piert
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 :?