Search found 159 matches

by yokel22
Wed Jan 10, 2018 2:59 pm
Forum: General Support
Topic: Can I use the EG Webserver plugin to publish m3u lists
Replies: 12
Views: 77

Re: Can I use the EG Webserver plugin to publish m3u lists

It's eg anything's possible. I'd have to see a sample m3u playlist, but it wouldn't take a lot to get a ui for it going. I use a hdhomerun for ota broadcasts. What are you using to build the playlist?
by yokel22
Wed Jan 10, 2018 1:51 pm
Forum: General Support
Topic: Can I use the EG Webserver plugin to publish m3u lists
Replies: 12
Views: 77

Re: Can I use the EG Webserver plugin to publish m3u lists

When you say publish. Do you mean [1], display items in the m3u? Or [2], store the items for retrieval? If it's the latter. Store the m3u file in the web servers root folder. Then you can access it from any pc via html link like this.

'IP:Port/filename.m3u'
by yokel22
Fri Jan 05, 2018 8:27 pm
Forum: General Support
Topic: I would like EventGhost to perform an action when I plug in my phone
Replies: 8
Views: 115

Re: I would like EventGhost to perform an action when I plug in my phone

skribb wrote:
Fri Jan 05, 2018 7:42 pm
"A USB device that is plugged in identifies itself by its VID/PID combination. A VID is a 16-bit vendor number (Vendor ID). A PID is a 16-bit product number (Product ID). "
Good to know. We'll see.
by yokel22
Fri Jan 05, 2018 7:15 pm
Forum: General Support
Topic: I would like EventGhost to perform an action when I plug in my phone
Replies: 8
Views: 115

Re: I would like EventGhost to perform an action when I plug in my phone

Your right, it doesn't seem to be totally constant. When i plugged my phone in today. It gave me a similar, but not identical payload. So far for me it seems to be constant at the beginning with this portion unchanged. '\\\\?\\USB#VID_04E8&PID_6860#'. Everything after has changed though. I'll keep a...
by yokel22
Tue Jan 02, 2018 2:18 pm
Forum: General Support
Topic: Trigger only when event is detected 'x' times in 'y' seconds
Replies: 10
Views: 208

Re: Trigger only when event is detected 'x' times in 'y' seconds

See if this doesn't suite your purpose. I set it up to test with the keyboard plugin. It will generate an event when you type more than 3 keys in a second. Change the 'maxEvent' & 'timePeriod' variables at the top to fit your needs. <?xml version="1.0" encoding="UTF-8" ?> <EventGhost Version="0.5.0-...
by yokel22
Tue Jan 02, 2018 1:57 pm
Forum: General Support
Topic: I would like EventGhost to perform an action when I plug in my phone
Replies: 8
Views: 115

Re: I would like EventGhost to perform an action when I plug in my phone

You're on the right track, you'll need a bit of python to do this. You've got the correct event, you're just missing the payload values attached to it. When EG detects a device connect/disconnect it generates a single System.DeviceAttached event. However after the event you'll see something similar ...
by yokel22
Sat Dec 23, 2017 7:51 pm
Forum: Coding Corner
Topic: Use of Event wildcard in code ?
Replies: 3
Views: 115

Re: Use of Event wildcard in code ?

I'm not sure if what you want is possible from script. You can use startswith() or the re module to accomplish this though.

Code: Select all

string = "System.PowerProfile."
match = eg.event.string.startswith(string)
if match == True:
     # wildcard was met, execute code
     print 'wildcard'
by yokel22
Mon Oct 16, 2017 11:18 pm
Forum: Coding Corner
Topic: Anyone willing to collaborate on a Spotify Web API plugin?
Replies: 13
Views: 461

Re: Anyone willing to collaborate on a Spotify Web API plugin?

I think you've guys have got this covered. I think I'll just step back. I've got plenty on my plate as it is.
by yokel22
Mon Oct 16, 2017 2:53 pm
Forum: Coding Corner
Topic: Anyone willing to collaborate on a Spotify Web API plugin?
Replies: 13
Views: 461

Re: Anyone willing to collaborate on a Spotify Web API plugin?

Personally, I HATE plugins that self load all actions to the tree. I'd say allow the user to select scope from a dropdown or checkbox. Then seperate the scopes actions into seperate folders. That way the user knows which actions can be used. We can use a dict to hold the different scopes parameters....
by yokel22
Sun Oct 15, 2017 12:25 pm
Forum: Coding Corner
Topic: Anyone willing to collaborate on a Spotify Web API plugin?
Replies: 13
Views: 461

Re: Anyone willing to collaborate on a Spotify Web API plugin?

:D grammatical errors are my fortay. I kinda take pride in it. Seriously, change whatever you like, it's your plugin. I'm just trying to help where I can.
by yokel22
Sun Oct 15, 2017 6:07 am
Forum: Coding Corner
Topic: Anyone willing to collaborate on a Spotify Web API plugin?
Replies: 13
Views: 461

Re: Anyone willing to collaborate on a Spotify Web API plugin?

I cleaned up the config & fixed the self.variables. They weren't saving properly the way they were setup. Changed all instances of username to userName to fit rest of naming convention. I'm able to get the access token returned but it gives a 404 error on redirect. I didn't have time to delve into t...
by yokel22
Fri Oct 13, 2017 7:50 pm
Forum: Coding Corner
Topic: How can I use values from def Configure() in an eg.ActionBase class?
Replies: 3
Views: 232

Re: How can I use values from def Configure() in an eg.ActionBase class?

Take a look at this plugin here. It should help clarify a bit.
by yokel22
Fri Oct 13, 2017 7:20 pm
Forum: Coding Corner
Topic: How can I use values from def Configure() in an eg.ActionBase class?
Replies: 3
Views: 232

Re: How can I use values from def Configure() in an eg.ActionBase class?

I believe the syntax for that is gonna be "self.plugin.variableName". I'd have to check on a pc for sure.

So, in plugin base initialize as self.clientID . Then within the action base use self.plugin.clientID .

Take a look at some of the other plugins on your system for a quick example.
by yokel22
Fri Oct 13, 2017 3:19 pm
Forum: Coding Corner
Topic: Trying to use Spotipy [sic] in EventGhost
Replies: 12
Views: 452

Re: Trying to use Spotipy [sic] in EventGhost

That's not a problem. If it seems like i know what im doing 100% of the time. Its mearly an illusion. You pretty much have several actions done now. I'll get the base plugin setup with some of your code. Since you already know what it does, you'll be able to understand the plugin structure pretty qu...