Pako wrote:bengalih wrote:For now, I am going to continue to run with my version since I've implemented the SMS functionality which I need.
If you decide to integrate that feature officially I will certainly download your latest and test it out.
I understand.
I wrote that I will respond to your posts gradually.
But I've got no confirmation from you, that my implementation of dismissal feature is convenient for you.
The problem with SMS, we will deal with later. It will be difficult for me because I never met with "sms_changed" event (I use Textra and I in no way want to use Hangouts on my cell phone).
"sms_changed" event, this is the only reason why you can not use the official version of the plugin?
Pako
Pako -
Yes I understand you are taking your time - I'm not rushing you since I have things mostly working as I need. Just letting you know where I am app and giving any assistance I can.
To assist I went ahead and downloaded the latest copy and it is totally broken for me.
When the plugin starts I get the following:
PushBullet: Devices received: [{u'iden': XXXXXXXXXXXXXX', u'icon': u'phone', u'created': 1443735428.0476429, u'generated_nickname': True, u'nickname': u'HTC One M8', u'modified': 1444182021.619482, u'push_token': XXXXXXXXXXXXXXXXXX', u'fingerprint': u'{"android_id":"XXXXXXXXXXX"}', u'active': True, u'model': u'HTC6525LVW', u'pushable': True, u'type': u'android', u'kind': u'android', u'manufacturer': u'HTC'}, {u'iden': XXXXXXXXXXX', u'icon': u'system', u'created': 1442880057.7031491, u'nickname': u'EG-BTMOBILE', u'modified': 1442880057.7031529, u'active': True, u'model': u'plugin by Pako', u'app_version': 24, u'type': u'stream', u'kind': u'stream', u'pushable': True, u'manufacturer': u'EventGhost'}, {u'iden': XXXXXXXXXXXXX', u'icon': u'desktop', u'created': 1442879016.13519, u'nickname': u'BTMOBILE', u'modified': 1442879016.135196, u'fingerprint': u'{"cpu":"Intel64 Family 6 Model 42 Stepping 7, GenuineIntel","computer_name":"BTMOBILE"}', u'active': True, u'model': u'Windows 7 Enterprise', u'app_version': 370, u'type': u'windows', u'kind': u'windows', u'pushable': True, u'manufacturer': u'Microsoft'}]
PushBullet: Friends received: []
PushBullet: Channels received: []
PushBullet: Targets derived: [(u'HTC One M8', XXXXXXXXXXXX', 'pc'), (u'EG-BTMOBILE', XXXXXXXXXXXXXXXX', 'pc'), (u'BTMOBILE', XXXXXXXXXX', 'pc')]
PushBullet: Email address obtained
PushBullet: Adding push messaging listener
PushBullet: WebSocket error: [Errno 1] _ssl.c:480: error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
ERROR:root:'WebSocketClient' object has no attribute 'stopWatchdog'
PushBullet.WebSocketClosed
Based on the errors I thought it could be encryption, so I went ahead and disabled encryption and it still gives the error on start. Since it appears to close the WebSocket, I don't even see the packets come into EG, let alone be acted upon.
One strange thing to not however is that if you look in "Devices Received" you will see 3:
HTC M8 - my phone
EG-BTMOBILE - my EG instance
BTMOBILE - My computer
Thing is - there is no pushbullet running on my BTMOBILE right now - except for the EG instance. When I look at my devices on the PB website, it does not list there.
It is almost like somehow this device is being cached, but I know EG is just getting this info from the packet it receives - but I don't know how its getting that packet.
The instance I *did* have on my PC still probably has encryption enabled, and perhaps that's what is messing with the whole thing? But again I can't see how that should have any impact since it isn't running.
UPDATE: I went ahead and reloaded PushBullet on my PC and disabled encryption, still the errors above. I then shut it down and deleted the device from the webpage and now EG is only showing the two proper devices, but the error is the same.
So - in short - your copy is totally broken for me.
Regarding SMS_Changed -
This does NOT have to do with Hangouts. Hangouts provides standard mirror notifications. The only problem I had with Hangouts (from my posts the other week) was that it would send all queued notifications, so you would see the older text messages from the recipient on each new notification. This is why the dismiss function is needed, so that when the notification comes in we can dismiss it and on next text we only see the latest.
SMS_Changed is what happens when any standard SMS client gets messages. I did a quick look and it appears Textra has PushBullet support. But, most SMS clients don't - including almost every one I've seen that is stock on a phone.
My wife (for whatever reason) happens to like her stock messaging app.
So, in order for you to create the SMS_Changed events for testing you don't need to install hangouts, you just need to temporarily disable textra and use your stock message app.
To answer your question regarding my use... yes if dismissals and sms_changed were working that is my use scenario for now and I would revert back to your copies if those were running.
That being said, I am still experiencing hangs of EG. During these hangs most of my remote functionality (macros) seem to work - but not all. EG won't maximize from the system tray, so I can't see what is going on.
I have set EG to use maximum 50GB when minimized, and this initially seemed to deal with the memory leak issues I addressed previously. However something is messing up EG that wasn't before.
I recently upgraded from XBMC to Kodi and also installed a Roku, as such - I did some minor changes in my event tree and also implemented 3 new plugins:
1) Roku
2) My PortCheck plugin.
3) PushBullet
These were all done within a few days and at this point I can't say what is causing the issue. I expect that it is either my PortCheck of the PushBullet.
I am waiting to get a better pattern of when the error occurs and then start eliminating variables.
Unfortunately, it appears there is no way to have EG log to a file, and if I can't maximize EG from the system tray, then I can't see what it is doing :/
UPDATE:
def start(self):
#self.run_forever(sslopt = {"cert_reqs": CERT_NONE})
self.run_forever()
Seems the issue was above. I believe the above commented line tells it to disable SSL cert checking. When I flipped the comment to turn that back on your copy works.
I'm not sure why you disabled it, but that was the issue for me.
With that set to disable checking, the dismiss option appeared to work for me both for a test notification and for an incoming hangouts mirror notification.