Page 9 of 34
Re: PushBullet plugin (Pako)
Posted: Sat Aug 02, 2014 5:37 pm
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': []}
Re: PushBullet plugin (Pako)
Posted: Sat Aug 02, 2014 5:52 pm
by Pako
When you send something "To everything", then your other devices (smartphone, Chrome ...) received that message right?
Re: PushBullet plugin (Pako)
Posted: Sat Aug 02, 2014 6:12 pm
by Pako
I still have one question:
Do you have in your computer the correct time and date ?
Pako
Re: PushBullet plugin (Pako)
Posted: Sat Aug 02, 2014 6:52 pm
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"}
Re: PushBullet plugin (Pako)
Posted: Sat Aug 02, 2014 7:05 pm
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
Re: PushBullet plugin (Pako)
Posted: Sun Aug 03, 2014 6:52 pm
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
Re: PushBullet plugin (Pako)
Posted: Sun Aug 03, 2014 7:43 pm
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
Re: PushBullet plugin (Pako)
Posted: Wed Aug 06, 2014 1:22 am
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.
Re: PushBullet plugin (Pako)
Posted: Wed Aug 06, 2014 4:52 am
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
Re: PushBullet plugin (Pako)
Posted: Wed Aug 06, 2014 1:42 pm
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.
Re: PushBullet plugin (Pako)
Posted: Wed Aug 06, 2014 4:27 pm
by izzy
All of these macros used to work before, and were not case sensitive.
Here is a screenshot.
Re: PushBullet plugin (Pako)
Posted: Wed Aug 06, 2014 4:56 pm
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
Re: PushBullet plugin (Pako)
Posted: Thu Aug 07, 2014 12:10 am
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.
Re: PushBullet plugin (Pako)
Posted: Thu Aug 07, 2014 3:02 am
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.
Re: PushBullet plugin (Pako)
Posted: Thu Aug 07, 2014 4:18 am
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