Page 12 of 34
Re: PushBullet plugin (Pako)
Posted: Tue Sep 02, 2014 3:16 pm
by Pako
Automatic start at EventGhost startup:

- PB-demo_fokker70-01.png (13.17 KiB) Viewed 7984 times
Manual start:
Code: Select all
C:\EventGhost\EventGhost.exe -event PushNoteOnInit
Pako
Re: PushBullet plugin (Pako)
Posted: Tue Sep 02, 2014 3:42 pm
by fokker70
Brilliant Pako.

Big thanks I got it to work now.

Re: PushBullet plugin (Pako)
Posted: Tue Sep 02, 2014 4:06 pm
by Pako
You're welcome.
Over time you'll be able to do it alone.
Perhaps it would be nice to make some post ("it's resolved") in the original topic on redit.
Pako
Re: PushBullet plugin (Pako)
Posted: Tue Sep 02, 2014 7:24 pm
by fokker70
posted "its resolved" on Redit

Re: PushBullet plugin (Pako)
Posted: Thu Sep 04, 2014 5:43 pm
by piert
Hi Pako,
I promised to send you some test results. First of all: installation works as expected, only thing that happens when I open and save the configuration of the plugin I get this:
Code: Select all
19:20:39 C:\Program Files\EventGhost\plugins\PushBullet\lib\websocket\_core.py:843: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
19:20:39 message = getattr(e, 'strerror', getattr(e, 'message', ''))
For the rest, no problems.
It appears the messages from external source (Iphone) come in really, really fast. My feeling is that it is faster than before!!
I won't cheer too soon, as I have found the plugin to be working in the past, only to stop working after a certain time.
I will return with further feedback later in the weekend, but so far so good

My compliments.
I will also test the mirroring function, as I still do not quite understand how that works.
Thanks again, best regards,
Perry
Re: PushBullet plugin (Pako)
Posted: Sun Sep 07, 2014 7:06 am
by shawneric
Hi Pako,
I'm not a coder so I've found this whole process to be extremely frustrating, but I'm an IT so I've tried to figure it out.
I want to make a system so I can be 'properly welcomed into my home every day. After getting off work, I'm SO frustrated and tired and if I don't do the motivation myself, it just won't happen. SO, I use IFTTT and Philips Hue to set the lights (been trying to find an automation program for the Philips Hue lights, but everything seems to be extremely weak as far as what it can do, and not really all that exciting to be honest, so if you know of anything like that I can get, then it'd be great), but I also want to start some songs from spotify when I walk in, like "Eye of the Tiger".
So, here's the recipe I have right now:
GPS Into specific are --> Send pushbullet link to open spotify song to play automatically --> Eventghost to physically open link?
I was able to create the macro to open the chrome app with the specific link easy enough (just go to services, start application, browse to chrome.exe and paste the link in the commands section and it works fine), but I can't for the life of me figure out how to make pushbullet the trigger for this.
Any help at all would be appreciated, I think I've racked my brain on this for four to five hours now and I've nearly given up.
-Eric
Re: PushBullet plugin (Pako)
Posted: Sun Sep 07, 2014 7:21 am
by Pako
I would like to try to help you.
But I have two problems:
#1) I understand very little of what you need
#2) I know nothing about Spotify and I do not even interested to know something
So, the only way I can help you:
Split your task into a few simple steps.
Then we can solve these simple steps.
One important question:
Your smartphone is iPhone or Android?
Pako
Re: PushBullet plugin (Pako)
Posted: Sun Sep 07, 2014 7:26 am
by shawneric
Basically, I want to open a link in eventghost via pushbullet. So when a link is sent to pushbullet, it starts an application. That's all i'm trying to do.
Re: PushBullet plugin (Pako)
Posted: Sun Sep 07, 2014 7:33 am
by Pako
Yes, it's very simple task:

- OpenLink.png (3.5 KiB) Viewed 7924 times
Python Script:
Code: Select all
import webbrowser
webbrowser.open_new(eg.event.payload[0])
Pako
Re: PushBullet plugin (Pako)
Posted: Sun Sep 07, 2014 7:39 am
by shawneric
Awesome!!! That works perfect! Lol, somehow I screwed up and had a few loops going on, almost crashed my computer LOL! But it works fine now! YAY!!! I've been trying to do this for MONTHS! Thank you!
Re: PushBullet plugin (Pako)
Posted: Sun Sep 07, 2014 7:54 am
by Pako
shawneric wrote:Awesome!!! That works perfect! Lol, somehow I screwed up and had a few loops going on, almost crashed my computer LOL! But it works fine now! YAY!!! I've been trying to do this for MONTHS! Thank you!
You're welcome.
I have had a question, what type is your smartphone.
When would it be Android, then it would be very easy (for EventGhost) know that you're at home (without GPS).
I mean
Nmap plugin.
Pako
Re: PushBullet plugin (Pako)
Posted: Wed Sep 10, 2014 1:00 pm
by shawneric
Pako,
I've got another project I'd like to try. Can I do this:
Push a note and use event ghost to update the text in a text file (replace all text with new text in the pushbullet note). Is that possible?
Re: PushBullet plugin (Pako)
Posted: Wed Sep 10, 2014 3:00 pm
by Pako
shawneric wrote:Push a note and use event ghost to update the text in a text file (replace all text with new text in the pushbullet note). Is that possible?
As often happens, I do not understand the task.
Can you please describe it in other words?
Ideally, using some example.
Pako
Re: PushBullet plugin (Pako)
Posted: Wed Sep 10, 2014 3:13 pm
by shawneric
Sure. With pushbullet, you can push notes, not just links. I would like to write the contents of the note into a text file.
Step 1: Go to pushbullet.com, and create a note to push with the title of "Weather".
Step 2: EventGhost writes the contents of the note to a text file (in this example, that would be "Today's weather is 82F").
Here are some screenshots to help:
Re: PushBullet plugin (Pako)
Posted: Wed Sep 10, 2014 3:37 pm
by Pako
Well, I'm beginning to understand.
I have additional questions:
1) The file into which we will write is still the same?
2) If not, how will I know the path to it?
3) The contents of the file shall be overwritten or a new text shall be added ?
Note:
If the file is to be still the same, please type the full path (including the name and extension).
So I can create a specific example of a solution.
Pako