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

Automatic start at EventGhost startup:
PB-demo_fokker70-01.png
PB-demo_fokker70-01.png (13.17 KiB) Viewed 7995 times
Manual start:

Code: Select all

C:\EventGhost\EventGhost.exe -event PushNoteOnInit
Pako
You know flattr ? You can Image
fokker70
Posts: 6
Joined: Tue Sep 02, 2014 11:43 am

Re: PushBullet plugin (Pako)

Post by fokker70 »

Brilliant Pako. :D Big thanks I got it to work now. :roll:
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 »

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
You know flattr ? You can Image
fokker70
Posts: 6
Joined: Tue Sep 02, 2014 11:43 am

Re: PushBullet plugin (Pako)

Post by fokker70 »

posted "its resolved" on Redit :D
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: PushBullet plugin (Pako)

Post 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 :D My compliments.

I will also test the mirroring function, as I still do not quite understand how that works.
Thanks again, best regards,
Perry
shawneric
Posts: 16
Joined: Sun Sep 07, 2014 6:59 am

Re: PushBullet plugin (Pako)

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

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
You know flattr ? You can Image
shawneric
Posts: 16
Joined: Sun Sep 07, 2014 6:59 am

Re: PushBullet plugin (Pako)

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

Yes, it's very simple task:
OpenLink.png
OpenLink.png (3.5 KiB) Viewed 7935 times
Python Script:

Code: Select all

import webbrowser
webbrowser.open_new(eg.event.payload[0])
Pako
You know flattr ? You can Image
shawneric
Posts: 16
Joined: Sun Sep 07, 2014 6:59 am

Re: PushBullet plugin (Pako)

Post 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!
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 »

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
You know flattr ? You can Image
shawneric
Posts: 16
Joined: Sun Sep 07, 2014 6:59 am

Re: PushBullet plugin (Pako)

Post 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?
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 »

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
You know flattr ? You can Image
shawneric
Posts: 16
Joined: Sun Sep 07, 2014 6:59 am

Re: PushBullet plugin (Pako)

Post 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:
Attachments
Untitled2.png
Untitled2.png (9.84 KiB) Viewed 7887 times
Untitled.png
Untitled.png (4.73 KiB) Viewed 7887 times
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 »

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
You know flattr ? You can Image
Post Reply