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.
izzy
Posts: 22
Joined: Sat May 10, 2014 8:01 am

Re: PushBullet plugin (Pako)

Post by izzy »

PushBullet: Push to everything: note to Everything
PushBullet: Push to everything: note to Everything
PushBullet: WebSocket message: {"type": "tickle", "subtype": "push"}
PushBullet: Getting pushes, modified_after = 1407040455.8520000
PushBullet: Push results: [{'device_iden': None, 'type': 'device', 'nickname': 'Everything', 'ok': True, 'push_iden': u'ujDxoZjtLKCpjAs6Zz95r2'}]
PushBullet: Response = {u'pushes': []}
PushBullet: Push: note to "eleanor-ghost"
PushBullet: Push: note to "eleanor-ghost"
PushBullet: WebSocket message: {"type":"tickle","subtype":"push"}
PushBullet: Getting pushes, modified_after = 1407040455.8520000
PushBullet: Push results: [{'device_iden': u'ujDxoZjtLKCdjz1Mck4hbg', 'type': 'device', 'nickname': u'eleanor-ghost', 'ok': True, 'push_iden': u'ujDxoZjtLKCpjz2Jip7C4O'}]
PushBullet: Response = {u'pushes': []}
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin (Pako)

Post by Pako »

When you send something "To everything", then your other devices (smartphone, Chrome ...) received that message right?
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 (Pako)

Post by Pako »

I still have one question:
Do you have in your computer the correct time and date ?

Pako
You know flattr ? You can Image
izzy
Posts: 22
Joined: Sat May 10, 2014 8:01 am

Re: PushBullet plugin (Pako)

Post by izzy »

To answer your first: yes.

To answer your second: No! You are good. I had my system time set incorrectly under a different timezone (not sure how that happened). I've corrected it and restarted EventGhost but actions are still not getting triggered

PushBullet: Response = {u'pushes': [{u'iden': u'ujDxoZjtLKCpjAkIausZ52', u'title': u'lights off', u'receiver_email': u'[email protected]', u'created': 1407005315.56182, u'sender_email_normalized': u'[email protected]', u'dismissed': False, u'target_device_iden': u'ujDxoZjtLKCdjz1Mck4hbg', u'sender_email': u'[email protected]', u'modified': 1407005315.56183, u'active': True, u'receiver_iden': u'ujDxoZjtLKC', u'sender_iden': u'ujDxoZjtLKC', u'type': u'note', u'receiver_email_normalized': u'[email protected]'}]}
PushBullet: modified_after updated: 1407005315.5618300
PushBullet: WebSocket message: {"type": "nop"}
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin (Pako)

Post by Pako »

izzy wrote:To answer your second: No! You are good.
It was obvious.
izzy wrote:I've corrected it and restarted EventGhost but actions are still not getting triggered
Now it's just fine, it seems.
What exactly you have a problem?

Pako
You know flattr ? You can Image
izzy
Posts: 22
Joined: Sat May 10, 2014 8:01 am

Re: PushBullet plugin (Pako)

Post by izzy »

Macros are not being executed.

Code: Select all

PushBullet: Push to everything: note to Everything
PushBullet: Response = {u'pushes': []}
PushBullet: WebSocket message: {"type": "nop"}
PushBullet: WebSocket message: {"type": "tickle", "subtype": "push"}
PushBullet: Getting pushes, modified_after = 1407091894.6200600
PushBullet: Push results: [{'device_iden': None, 'type': 'device', 'nickname': 'Everything', 'ok': True, 'push_iden': u'ujDxoZjtLKCpjzYO1AGpB6'}]
PushBullet: Response = {u'pushes': [{u'iden': u'ujDxoZjtLKCpjzYO1AGpB6', u'source_device_iden': u'ujDxoZjtLKCdjz1Mck4hbg', u'title': u'lightsoft', u'receiver_email': u''******@gmail.com', u'created': 1407091919.6080899, u'sender_email_normalized': u'******@gmail.com', u'dismissed': False, u'modified': 1407091919.60811, u'sender_email': u''******@gmail.com', u'active': True, u'receiver_iden': u'ujDxoZjtLKC', u'sender_iden': u'ujDxoZjtLKC', u'type': u'note', u'receiver_email_normalized': u''******@gmail.com'}]}
PushBullet: modified_after updated: 1407091919.6081100
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin (Pako)

Post by Pako »

What macros?
It would be good, if you put a screenshot here.
Maybe you have not noticed, that the suffix following the "Note", now always begins with a capital letter...
PushBullet.Note.Lightsoff

Pako
You know flattr ? You can Image
cableghost
Posts: 37
Joined: Thu Oct 10, 2013 9:43 pm

Re: PushBullet plugin (Pako)

Post by cableghost »

I would like to use this plugin to handle Windows sessions, i.e. Lock, Log Off, etc. I've attempted to send a Note with 'Lock' in 'Message' with the following macro in EG, but it is not recognized. What am I missing, or is the syntax wrong?

AutoRemote.Message.Lock (see attached screenshot)

Second issue is if I have Chrome Open with PB active, Chrome/PB grabs the 'push'...is there a way to send to EG from within Chrome? Basically, I want EG to handle this, regardless of where the push comes from.
Attachments
eg-pb.JPG
eg-pb.JPG (12.59 KiB) Viewed 6386 times
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin (Pako)

Post by Pako »

cableghost wrote:I've attempted to send a Note with 'Lock' in 'Message' with the following macro in EG, but it is not recognized.
If you want to achieve, that event had the form PushBullet.Note.Lock, then you have to send a note, where Title = Lock. It does not matter what is in the box "message" (which may be empty).
cableghost wrote:AutoRemote.Message.Lock (see attached screenshot)
I do not understand how Autoremote related to PushBullet.
cableghost wrote:I want EG to handle this, regardless of where the push comes from.
It does not matter from which device you send the note.

Pako
You know flattr ? You can Image
cableghost
Posts: 37
Joined: Thu Oct 10, 2013 9:43 pm

Re: PushBullet plugin (Pako)

Post by cableghost »

Pako wrote:If you want to achieve, that event had the form PushBullet.Note.Lock, then you have to send a note, where Title = Lock. It does not matter what is in the box "message" (which may be empty).
Thanks @Pako. I entered Lock as Title instead of Message, though I had to upgrade the __ init__.py file to get it working.
izzy
Posts: 22
Joined: Sat May 10, 2014 8:01 am

Re: PushBullet plugin (Pako)

Post by izzy »

All of these macros used to work before, and were not case sensitive.

Here is a screenshot.
Attachments
Untitled.png
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin (Pako)

Post by Pako »

izzy wrote:All of these macros used to work before, and were not case sensitive.
Python is case sensitive.
Capital letters are there now in every case (since the new version).
So it should be earlier, but there was a bug, that prevented it.
I'm sorry, but I think it's better now (clearer and especially if it is more than one word).
I think that it not be a lot of work to edit all events.

Remove (at least temporarily) check of checkbox "Log only assigned and activated events".

Pako
You know flattr ? You can Image
shaggy79
Experienced User
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: PushBullet plugin (Pako)

Post by shaggy79 »

Can someone please tell me what this means :?: :-

Traceback (most recent call last) (1669):
File "C:\Program Files\EventGhost\plugins\PushBullet\__init__.py", line 1728, in requestPushes
self.processPush(push)
File "C:\Program Files\EventGhost\plugins\PushBullet\__init__.py", line 1596, in processPush
part3 = push[u'body']
KeyError: u'body'


I can send a note etc to my phone.
when I try and send from my phone to PushBullet I get that error :?:

Cheers Paul.
izzy
Posts: 22
Joined: Sat May 10, 2014 8:01 am

Re: PushBullet plugin (Pako)

Post by izzy »

Error on one macro

Code: Select all

PushBullet: Push to everything: note to Everything
   PushBullet: Push to everything: note to Everything
Exception in thread Thread-57681:
Traceback (most recent call last):
  File "threading.pyc", line 532, in __bootstrap_inner
  File "threading.pyc", line 484, in run
  File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 2008, in push
    res, flag = self.request("POST", API + "pushes", data = payload)
  File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1778, in request
    resp = request(method, url, **kwargs)
  File "C:\Program Files (x86)\EventGhost\lib26\site-packages\requests\api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Program Files (x86)\EventGhost\lib26\site-packages\requests\sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files (x86)\EventGhost\lib26\site-packages\requests\sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files (x86)\EventGhost\lib26\site-packages\requests\adapters.py", line 375, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/pushes (Caused by <class 'socket.error'>: [Errno 10054] An existing connection was forcibly closed by the remote host)
And no action on the others.
Attachments
Untitled.png
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin (Pako)

Post by Pako »

izzy wrote:Error on one macro
This happens every time you run the macro?
I need the macro.
It is possible that when this error occurs, you need to restart EventGhost.
izzy wrote:And no action on the others.
Can you describe using more words?
I would have understood that in all other macros will not execute any action?


Your posts are too short, you provide little information.
The solution then takes too long. I'm not clairvoyant.

Pako
You know flattr ? You can Image
Post Reply