Have a virtual switch flip when Winamp in playing?

Is it possible to have a virtual switch in Vera track whether or not Winamp is playing on my PC? And by possible I mean possible for me. Not possible for you very talented folks who populate this board and can whip up all kinds of interesting things over lunch. Remember the most sophisticated thing I can do with my computer is play Simpsons jeopardy and and type poorly worded and spelled posts on this forum. :o

Some Google trawling hasn’t turned up anything too encouraging. If there is another player than con accomplish this a little more easily I’m not opposed to switching to it. I just use Winamp because, 1.) I’ve been using it for over a decade and if it aint broke don’t fix it, and 2,) the way it allows one to create playlists dynamically on the fly is of the utmost importance to me.

+1 for still using WinAmp

I’ll look around the net as I know you can write plug-ins for WinAmp, but it might take something like Event Ghost. I haven’t used WinAmp in years and I hear the llama calling me now, I’ll install it and take a look.

As Shady noted, I use EventGhost to do a virtual switch flip with winamp & xbmc.

[quote=“shady, post:2, topic:180510”]+1 for still using WinAmp

I’ll look around the net as I know you can write plug-ins for WinAmp, but it might take something like Event Ghost. I haven’t used WinAmp in years and I hear the llama calling me now, I’ll install it and take a look.[/quote]

I just felt nostalgic reading that :stuck_out_tongue:

Oh Snap! EventGhost where have you been for the past X years?! Control of WinAmp and MPC!

I wonder what else is out there that I’m completely unaware of that could revolutionize my world like this can.

Great. There goes my night, and probably my day tomorrow, as I try to figure out how this all works.

EDIT:

It appears as though the EG plugin can’t control MultiSwitches. :confused:

It can run a scene, which can do whatever you wish though.

Or you can bypass the plugin altogether and just use a python command with:

import urllib; urllib.urlopen('http://192.168.0.50:3480/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=19, 5')

where your Vera IP is 192.168.0.50 and the scene is 19.

import urllib; urllib.urlopen('http://192.168.0.50:3480/data_request?id=lu_action&output_format=xml&DeviceNum=12&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1')

where your Vera IP is 192.168.0.50 and the device is 12. Value=0 for off, Value =1 for on.

import urllib; urllib.urlopen('http://192.168.0.50:3480/data_request?id=variableset&DeviceNum=57&serviceId=urn:dcineco-com:serviceId:MSwitch1&Variable=Status8&Value=1')

For the multiswitch no.57 , switch 8 on:
From: http://forum.micasaverde.com/index.php/topic,14453.msg167125.html#msg167125

@ conchordian,

Thanks! Gives me some good food for thought. I just made some scenes but I will eventually move to your suggestion.

One question though: How do you specify an event for WinAmp Playing/Paused/Stopped? When I play, etc. WinAmp nothing shows up in the EG log to copy as an event.

The winamp plugin for EG.

The latest version I can see is here:

http://www.eventghost.net/forum/viewtopic.php?f=9&t=201&start=15#p28466, but the one included in EG will do what you want to.

Here’s a little EG example config file that might help.

Wow. I was using the WinAmp plugin that came with EventGhost and it didn’t expose any of these great new things!

Thanks for pulling my bacon out of the fire conchordian! I’ll report back once I tinker with this a little bit more.

Well.

One more question and then I think (Hope ::slight_smile: ) I will have my sea legs here.

How does one exactly specify a python command as an action? I and Google fail myself on this one… also. Surprise, surprise.

I’ve got EG reliably (and lightning fast! And thanks to you!) tripping the switch via scenes but I’d like to do away with as many scenes as is reasonable or possible.

EDIT:

Oh Yeah. I got it all figured out. Not sure in any way, what so ever, how I actually got to the bottom of it, but, well, I did. (Do I take the blue medal for the most commas per post on the forum in one sentence?)

Ya know, it would be helpful for people if there were human readable Wiki’s and so forth. Would make forum traffic grind to a screeching halt. It’s probably a conspiracy between vendors like VBulliten, et. al. and low budget developers.

It’s ‘Configuration/Add Action/EventGhost/Python Command’

Or you can just copy and paste, after loading the .xml above, into your EG config, and change the IP & device numbers.

Glad it’s working. :slight_smile: EG is a great companion program to Vera.

No Kidding. Why isn’t this prime time?

No Kidding. Why isn’t this prime time?[/quote]

I guess because not everyone has, or wants a Windows PC running all the time, but if you do, or even use an HTPC occasionally, then it’s very powerful.