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.
bengalih
Posts: 48
Joined: Sat Feb 25, 2012 1:13 am

Re: PushBullet plugin (Pako)

Post by bengalih »

Thanks Pako - no I just updated EG to the latest versions available like 2 weeks ago. Didn't realize that a newer version was *just* released.

I will test upgrade and test again, though as I stated things seemed to work on the dismiss with that change, so I think we are good there.
I didn't really look into detail as to how you implemented it, I see it is delivering the negative index (last) entry in the event, but should be flexible enough I think.

FYI, I've been running a memory test this morning (with v .1700) where ALL I have done is install the plugin and configure it.
I let it settle after start and it was about at 37,480K. After about 4 hours we are at 50,268. That means we are growing at about 3MB/hour or about 36MB/day.
This is from doing nothing at all...it isn't even receiving events (as i turned them off on my phone).

When it does receive events it could jump by 20-30KB/event.

I don't know enough about the finer points of python, but I expect it is probably something with the websockets. I don't know if this is something you can even fix or if it is an issue with the python libraries.

I'm still monitoring to see if I start getting those crash/hang/not fully working on my production box, it takes a day or two before I see an issue.
Again, I'm currently running to limit to 50MB and it seems to limit it, but I honestly don't know how EG "reclaims" the memory and if doing so is making the issue worse.
So, while I can't say that the memory usage of this plugin is causing my issues - there is clearly a leak.

Honestly, I'd be fine with EG taking up half a GB on this system for what it provides me - but I can't have it flaking out on me.
Right now it is looking like the only solution is a scheduled restart of the PC (or at least EG) nightly until I can figure out what exactly is causing the issue.

Thanks also for the logging info... I will look to set that up... another reason we need a good plugin repo :)
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: PushBullet plugin (Pako)

Post by kgschlosser »

to be honest with ya. what I think is need is an android app that will report to EG. these couple of things.....


maybe i am wrong. but cut through all the other garbage that pushbullet is sending and K.I.S.S. it

send and receive sms... receive mms.... including attachments

notification of calls incoming (with contact name if it exists)


I mean. that is what I would like to see.... and that's all

and possibly incoming email. (but in all honesty if i want to know that i will sit at my computer)

little spin on it..

knowing abouts where the phone is located in the house also??? (location services using GPS)


I think it would be kick @^$ if an incoming mms that had a picture attachment i could have pop up on a screen that is closest to me...

i don't think that is to far out of the realm of possibility.
If you like the work I have been doing then feel free to Image
bengalih
Posts: 48
Joined: Sat Feb 25, 2012 1:13 am

Re: PushBullet plugin (Pako)

Post by bengalih »

kgschlosser wrote:to be honest with ya. what I think is need is an android app that will report to EG. these couple of things.....
...
Perhaps...but this is the thread for the PB plugin... so you might as well be asking for a ham sandwich :)
cparker15
Posts: 5
Joined: Thu Sep 03, 2015 11:40 pm

Re: PushBullet plugin (Pako)

Post by cparker15 »

Pako wrote:
cparker15 wrote:So, when I see my Growl notifications mirrored via Pushbullet, they show up as coming from the "Main" app, meaning the title of the push is prepended with the string "Main: " and I get an option to "Mute Main" on the mirror notification.

Could this please be changed so that a custom application_name can be specified via the PushBullet Mirror action?
Unfortunately, I did not understand your problem (my English is weak).
Can you explain it in other words?
Probably would help an image attached to it.
I'm going to provide a series of annotated screenshots to illustrate the issue I'm talking about. Please let me know if this clarifies my meaning.
00 EventGhost Growl Events Pushbullet Mirror Action.png
01 Growl EventGhost Display Preview.png
02 EventGhost Growl PushBullet Event Log.png
(more than three screenshots, which is post maximum; remaining screenshots in next post)
cparker15
Posts: 5
Joined: Thu Sep 03, 2015 11:40 pm

Re: PushBullet plugin (Pako)

Post by cparker15 »

(continued from previous)
03 EventGhost PushBullet application_name eg_event_prefix.png
03 EventGhost PushBullet application_name eg_event_prefix.png (6.19 KiB) Viewed 5321 times
04 Pushbullet Popup Growl EventGhost Display Preview.png
04 Pushbullet Popup Growl EventGhost Display Preview.png (12.58 KiB) Viewed 5321 times
05 EventGhost PushBullet Action Proposal Application Name Field.png
I hope this clarifies things. It would be helpful if the application_name could be customized, other than using either the event prefix or 'EventGhost'.
Pako wrote:
cparker15 wrote:However, in the Pushbullet Windows application and the Pushbullet Chrome extension, I see empty space where the icon should be, next to the push title.
I tried it now and it's true. Previously it worked, something probably been changed.
I'll try to make some adjustments to make it work again.
This works great now! Thanks so much for the quick turnaround on this bugfix! :D
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 »

cparker15 wrote:I hope this clarifies things. It would be helpful if the application_name could be customized, other than using either the event prefix or 'EventGhost'.
I created a new version of the "Display for Growl".
It can be downloaded here (version 1.1).
Unlike the original version, there is no longer a prefix "Main".
I understand that this does not solve your problem.
I could, of course, add a textbox to define the application name.
But I still do not understand what's the point.
Are you aware that the "mute feature" is not available in this case (it only works for Android applications)?
This is intended only to supplement the information?

Pako
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 »

bengalih wrote:FYI, I've been running a memory test this morning (with v .1700) where ALL I have done is install the plugin and configure it.
I let it settle after start and it was about at 37,480K. After about 4 hours we are at 50,268. That means we are growing at about 3MB/hour or about 36MB/day.
This is from doing nothing at all...it isn't even receiving events (as i turned them off on my phone).

Right now it is looking like the only solution is a scheduled restart of the PC (or at least EG) nightly until I can figure out what exactly is causing the issue.
EG_Options.png
EG_Options.png (7.85 KiB) Viewed 5292 times
Maybe it would be worth considering to test the existing options of settings.

Pako
bengalih
Posts: 48
Joined: Sat Feb 25, 2012 1:13 am

Re: PushBullet plugin (Pako)

Post by bengalih »

Pako -

Yes I mentioned I have tried to use the limit memory consumption. And, while that does keep memory low, I'm not sure what effect that is having on the strange hangs I have had, since those hangs were happening with that option on.

Right now, I am running WITHOUT that option and I am going to see how high my memory climbs over a few days and if my EG remains fully responsive.
If it does, then I am going to switch that option back on to limit memory and see if after a few days EG is still responsive.

I have no idea how that memory option functions, but if it is aggressively clipping memory my concern is that it somehow is closing down things which might be active in some way which is why I was having very strange behavior with EG (not being able to maximize, not all functions replying to remote commands, etc.).

Suffice to say, everything is inconclusive at this point, except to say that many functions of EG appear to leak excessively, and this plugin (especially when receiving events) is a very large culprit of that.
Until I can definitely recreate a concern where the memory capping function is not causing issues, I will not address it again.

I will let you know when I have more evidence either way.

Thanks.
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 »

New version (0.2.12) released.
News:
  • - 'sms_changed' handler added
  • - bugfixes
bengalih wrote:Regarding SMS_Changed -
This does NOT have to do with Hangouts. Hangouts provides standard mirror notifications.
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.
So I discovered that it's a little different with the 'sms_changed' message.
Because in this way it only works for Android 4.4 and higher.
In addition, support of SMS functionality for Android 4.3 was now closed, so it seemed that I will (with respect PB) completely cut off from the SMS functions.
But luckily I found a solution. I switched to a custom ROM (CyanogenMod) and my OS is Android 5.0 now!
But this changeover, it was not at all an easy task and I have spent many hours on it ...

I decided that I will not use your modifications (I even did not download it) and I'll do everything myself.
Maybe it will seem strange, but for me it's an easier way.
So it is possible that it will work differently than you expect. Please let me know how it suits you.

Pako
You know flattr ? You can Image
Frosty1981
Posts: 4
Joined: Fri Nov 20, 2015 5:53 am

Re: PushBullet plugin (Pako)

Post by Frosty1981 »

*dbl post
Last edited by Frosty1981 on Fri Nov 20, 2015 5:38 pm, edited 1 time in total.
Frosty1981
Posts: 4
Joined: Fri Nov 20, 2015 5:53 am

Re: PushBullet plugin (Pako)

Post by Frosty1981 »

Not sure if I am supposed to post in here since this is PB related, or if I should start a new thread in this section of the forum instead.

I am trying to send SMS to a phone. I just installed the newest version of EG 0.4.1r1710 and the newest plugin for PB 0.2.9. When trying to set up the SMS recipient groups tab within the Plugin Item Settings in EG I am running into troubles. I used Add new for groups and entered in a name. I then clicked Add new on the device side. The drop down menu is empty for device and simply typing a recipient name doesn't allow me to complete the setup and I am not seeing any way to enter a device, name or phone number.
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 »

Frosty1981 wrote:The drop down menu is empty for device...
Which version of Android do you have?
SMS features works only for Android 4.4+.

Pako
You know flattr ? You can Image
Frosty1981
Posts: 4
Joined: Fri Nov 20, 2015 5:53 am

Re: PushBullet plugin (Pako)

Post by Frosty1981 »

Pako wrote:
Frosty1981 wrote:The drop down menu is empty for device...
Which version of Android do you have?
SMS features works only for Android 4.4+.

Pako
I am trying to send sms to an iPhone, ios 9.1. However, the empty drop down menu where I am trying to enter a device is in the plugin in EG. I don't see how my phone even plays into the equation yet as I can't choose anything at all. Not an iphone, or android based or any other phone. Would a screen shot help things out at all?

Also sorry about the double post. I didnt realize my first post had said waiting for review so when I came back to check on the post and it wasn't here I thought I messed something up as it was 1 in the morning and I was a wee bit tired :)
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 »

It is true, that using Pushbullet you can send SMS from your PC.
But it has some limitations:
1) You must have Android (4.4+) smartphone, associated with your Pushbullet account.
2) This phone must be switched on and connected to the internet in the moment that you want to send SMS.
So in the Eventghost pop-up menu you can ONLY see your Android (4.4+) devices, associated with your Pushbullet account.

Pako
You know flattr ? You can Image
Frosty1981
Posts: 4
Joined: Fri Nov 20, 2015 5:53 am

Re: PushBullet plugin (Pako)

Post by Frosty1981 »

Is there any plan to implement iPhone support as well from the PC end of things for sending sms from pc to smartphone?
Post Reply