PushBullet plugin (Pako)

Questions and comments specific to a particular plugin should go here.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Sat May 10, 2014 8:42 am

Deliberately I did not do my own implementation of the OSD for PushBulet incoming messages because I assume,
that every user will want to process these messages differently.
However - of course, the message can also be displayed.
There are several possibilities. For example:
1) native action EventGhost-Show OSD
2) Growl plugin
3) Snarl plugin
Here is an example of how to use the Show OSD action:
PB-OSD-1.png
PB-OSD-1.png (4.72 KiB) Viewed 6214 times
PB-OSD-2.png
PB-OSD-3.png
PB-OSD-3.png (8.5 KiB) Viewed 6214 times
Pako
You know flattr ? You can Image

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

Re: PushBullet plugin

Post by izzy » Sat May 10, 2014 10:03 am

Thanks! I am trying to use Snarl, and I've stumbled upon your Snarl plugin. Unfortunately EG crashes when trying to import the plugin.

I have the two files in the plugins dir, _init_.py, and pySnarl.py and I am running Snarl 3.1 Any idea?

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Sat May 10, 2014 11:03 am

You can attach the relevant part of the log with the error message (red)?
But perhaps you do not have an error message available.
In this case, run EventGhost with the command line option -debug.
This should add additional information to the log. The log is called log.txt, and is stored with the EG config info.
In XP, that's C:\Documents and Settings\<USER>\Application Data\EventGhost\log.txt.
In Windows 7 it is located in C:\Users\<USER>\AppData\Roaming\EventGhost\Log.txt.

Pako
You know flattr ? You can Image

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

Re: PushBullet plugin

Post by izzy » Sun May 11, 2014 8:55 am

I do that, and the application immediately hangs (not sure if that is the desired outcome)
http://pastebin.com/Epkx0c8X

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Sun May 11, 2014 9:16 am

izzy wrote:

Code: Select all

  File "C:\Program Files (x86)\EventGhost\plugins\gntp\notifier.py", line 17, in <module>
    import gntp
ImportError: No module named gntp
It appears that you have (among other plugins) also (unknown to me) gntp plugin.
In the directory ...\plugins\gntp is missing file gntp.py.

Pako
You know flattr ? You can Image

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

Re: PushBullet plugin

Post by izzy » Sun May 11, 2014 9:21 am

That was a growl notification plugin I was testing. I may have found that on one of your threads as well. I have deleted it, it still hangs on debug.

http://pastebin.com/Er64ePAu

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Sun May 11, 2014 9:49 am

izzy wrote:

Code: Select all

  File "C:\Program Files (x86)\EventGhost\plugins\Snarl\pySnarl.py", line 1
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax
Yes now it's clear.
You made ​​a mistake when you're downloaded Snarl plugin.
It's like html page, but it is wrong.

Pako
You know flattr ? You can Image

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

Re: PushBullet plugin

Post by izzy » Sun May 11, 2014 10:26 am

Ugh. Im learning. Thank you for being patient.

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Thu May 15, 2014 2:14 pm

I found, that as a result of some changes (within the undocumented features that I am using) does not work PushBullet plugin now.
I'm busy now and I can not deal with it. As soon as possible, I will try to fix it.

Pako
You know flattr ? You can Image

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

Re: PushBullet plugin

Post by izzy » Fri May 16, 2014 6:08 pm

I suppose you're referring to the (attached) issue.
Attachments
Capture.PNG

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Sat May 17, 2014 9:47 am

The new version (0.0.10) is released.
I apologize for the delay.
Introduction of a new API has raised the need to make many changes.
The new API is better, since almost everything is already documented.
However, still not everything and it was very difficult.
It is very likely that some problem exists.
Please report it here.
New APIs allow to add a new action: Delete push.
Example of use:
PB_DeletePush.png
PB_DeletePush.png (3.64 KiB) Viewed 6226 times
Pako
You know flattr ? You can Image

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

Re: PushBullet plugin

Post by izzy » Sat May 17, 2014 1:41 pm

Now testing, thanks!

piert
Experienced User
Posts: 295
Joined: Tue Jun 14, 2011 2:53 pm

Re: PushBullet plugin

Post by piert » Sun May 18, 2014 8:49 am

Great, I will be testing this shortly.

What is the best upgrade procedure?
Should I delete the whole plugin folder and replace with the new one or is there a better procedure that maybe allows keeping previous settings?

Ps: I noticed that deleting the plugin in the Eventghost start-up tree is only possible after deleting all instances that use that plugin. That may require a lot of searching and deleting if one has been using the plugin in many separate instances! Also, if one has built 'clever' scenario's, having to delete the Pushbullet parts of them could mean it will be difficult to rebuild afterwards? Am I overlooking something?

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: PushBullet plugin

Post by Pako » Sun May 18, 2014 12:00 pm

piert wrote:What is the best upgrade procedure?
I think the best procedure is this:
1) Close EventGhost
2) Delete the folder ...\plugins\PushBullet
3) The ZIP file with a new plugin to unzip in the ..\plugins folder.
4) Start EventGhost

EDIT:
I forgot something important.
If you have any sounds in the "sounds" folder, you must do the following:
1) To back up the entire directory sounds
2) At the end of the procedure to return the contents of the directory "sounds" to its original location.


BTW:
I found that in the new version are still some problems with sending pushes to friends.
I'll try to fix it.

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

Post by Pako » Mon May 19, 2014 6:11 am

New version (0.0.11) released.
News:
  • pyPushBullet module from Azelphur no longer needed
  • fixed issue with sending pushes to friends
Pako
You know flattr ? You can Image

Post Reply