PDA

View Full Version : Need help sending command



jwilson56
May 4th, 2004, 06:11 AM
Ben or someone

I hope you can help me. I am playing with George Photakis's Homeseer Girder look-alike plugin and want to know if I can pass the 'current zone' selected in MC as a parameter? For instance the plugin is able to send a "payload" of data like this.

nrMCJ.poweron.zone

where nrMCJ would be a script in Homeseer, poweron would be a 'case' selection within the script and 'zone' (for example "Bedroom" - named in MC zone manager) would be the data needed to determine which amplifier to turn on. Is there someway I could send the 'MP.send;Zone' information ("Bedroom" in my example) as the value as the 'zone' data? This would allow me to create a screen with a single set of amplifier controls (power on/off, volume, mute, ect) associated with the current zone being played.

I hope I have explained this sufficiently. This is the last piece of my puzzle to get my project off the ground.

Thanks

John

Well if thats not possible I figured another way around it.... things might be getting good... hehehe

georgep
May 13th, 2004, 07:04 PM
John,

Not sure of the format and maybe someone else can help here. But couldn't you just make the zone a netremote variable and then use that variable in the button definition?

Something like nrMCJ.poweron.{zonename}

Ben would that work?

George

P.S. Would love to see your nrMCJ script when it's done. It may be one of the first CCF/HSScript combo's (like CCF/GML) that have been specifically designed for HomeSeer. The NetTouchPad touchpad was of course one but it was mostly done as a how-to-do-it demo.

jwilson56
May 13th, 2004, 07:46 PM
George you will be the first to get a copy of it. I am trying to keep it generic but it will be written to support a 5 zone system as I now have a M-Audio Delta 410 sound card to install. I have been busy ripping CD's this week to get that out of the way as well as see how the CCF will handle a few hundred CD's. I also am waiting for Ben to return as I forwarded our email conversation concerning the TCP disconnection problems which is putting a crimp in the project. I also am waiting to hear Ben's comments about sending the zone as a variable to your plugin to solve another problem.

John

Ben S
May 14th, 2004, 09:27 PM
Hi John - we'll touch base about the TCP issue this weekend.

Re: sending the zone to Girder / Homeseer.

Setup a button with a girder action as the first action.

IR data: 0000 0000 0002 fff6 9999 9999 0000
IR name: MP.Zone

That action will tell the girder plugin to "watch" the MP.Zone variable. If it changes, it will send "MP.Zone" as the command, and the value as the payload.

I'm not sure how George's code works with commands and payloads, but that's the gist.

jwilson56
June 7th, 2004, 08:04 PM
Ben actually I want something simpler than that. I would like to just send the 'variable' as the payload itself. For example:

nrMCJ.volupzone.{MCJ.Current.Zone}


So girder would get "Den" if that was what the current zone was.

I tried this but all that girder seems to get is the words MCJ.Current.Zone. Is this possible and if so what am I doing wrong?

John