View Full Version : Send IR command at initial client load
georgep
April 5th, 2004, 08:40 PM
Sorry if this has been answered before but I tried doing some searches and came up blank.
Is there a way that I can send an IR command string to Girder at the NetRemote client initial load? I would like to send something following the NRCLIENT.REGISTER automatically without the user pressing any buttons to initiate the action. I need to tell my HomeSeer plugin just which CCF is loaded and which default cache load it is to send to the client.
Is this possible? Thanks
georgep
April 9th, 2004, 07:42 AM
So I guess this cannot be done with NetRemote?
Ben S
April 9th, 2004, 09:05 AM
Hi George-
I apologize for the delay in my responses here. I am knee deep in several things at once in addition to NetRemote, and the last week and a half have been extremely busy.
You cannot currently do that, but I'd like to add the ability to fire actions on panel load. You could then have it send the ccf name on the first panel load.
We can modify the girder plugin to broadcast which ccf is loaded, as well, if you'd like.
Should it send this on ccf change, as well, or only on NetRemote init?
georgep
April 9th, 2004, 10:21 AM
Ben,
Thanks, for the reply.
I'm writing the HomeSeer plugin for NetRemote to dynamically support any resolution of CCF so that a user can have touchpads from a PDA to a 640x480 CE wallpad to a full blown Windows PC if they want.
I would be great if NetRemote could send not only the CCF name (so we would know just what CCF is loaded) but also what the initial (home) panel name is. That way if they load the 'NetTouchPad' ccf that I'm currently writing as the first application the first screen in that ccf is an array of buttons that represent locations or devices dynamically loaded from HomeSeer.
So, in the case of the user selecting that their first screen is to be the 'Rooms' menu, then I put up a matix of 3x3 icons that represent pictures of rooms in their house. If I knew that NetRemote just connected and the 'NetTouchPad.ccf' was the ccf and the 'Groups' menu was the first one then I could immediatly uplink the room icons and room names into the panel.
Other panels further down are easy because any button press that takes me to another panel has a specific code in it that tells the plugin which panel NetRemote has switched to.
I'd also say you should send this on CCF change as well so that the proper first menu can then be loaded for that ccf. Remember, there's still that bug that if you change a ccf the client disconnects and does not resend an NRCLIENT.REGISTER at the next button press. I think a CCF change should either not disconnect and send a NRCLIENT.CCF event (with the CCF name and 1st menu name as the payload) or it should disconnect and follow up with a NRCLIENT.REGISTER and then the Client name/menu name.
I think that once I put out the NetTouchPad support people in the HomeSeer world will see just how powerful the NetRemote/HomeSeer combination can be. NetRemote teaming up with a full fledged home automation system can really be a kickass combination. Maybe you and Rich Helmke (homeseer developer) should talk about a co-marketing agreement. I, of course, work for hamburgers! :wink:
Thanks again,
George
Aaron
April 9th, 2004, 01:44 PM
I'll donate the graphics!
If you need some custom graphics George let me know.
georgep
April 9th, 2004, 06:51 PM
Aaron,
Sold, I can use them. I can program but I'm a lousy artist! :lol:
Give me a call when you're free and we can discuss what I can use. Rich gave me his permission to reuse the HomeSeer TouchPad graphics but I can use some for the new top menu.
The top menu would have general selection items such as:
Events, Devices, Rooms, MultiMedia, HVAC Control, Scenes, Commands, Messages, etc..
Tx, George
Ben S
April 11th, 2004, 02:46 PM
Hi George -
So let me make sure I understand:
On initialization, you want Girder to send the ccf filename that is loaded, and the first panel?
On ccf change, you want me to fix the problem whereby a new ccf disconnects the client (where), and then resend the new filename and panel?
This will take some work, as there is no notification that a new ccf has been loaded, currently.
Can you make do without until I can see about doing this?
Ben S
April 25th, 2004, 05:36 PM
I've got a way to do this, and it will be available in the next version (mhlwing is helping me finish up some com/lua stuff for the next version).
There are 3 events that you can write lua code for ...
* OnCCFLoad()
* OnPanelLoad()
* OnVariableChange()
So you could write lua code for OnCCFLoad for it to execute a Girder action. The lua code would just go in the lua directory under NetRemote root.
How's that sound?
georgep
April 25th, 2004, 06:38 PM
Problem is that I'm not talking to Girder I'm talking to HomeSeer. Would the LUA code go on the PPC or Win32 NetRemote client? The call would have to go down the TCP link to the connected (what looks like) Girder.
We may want to have a one-on-one chat as to how the HomeSeer interface works. There is really not a Girder on the other end but only my HomeSeer plugin that is 'pretending' to look like Girder.
If you'd like, email your phone number and when it would be convenient to call you and I'll call (on my nickel of course) and we can chat. It would also be a great time I can run my interface enhancement idea by you if you would be willing to talk about it.
Thanks,
George
Ben S
April 29th, 2004, 05:11 PM
Hi George-
Not a problem. This lua runs on the NetRemote client (both on PPC and Win32) and can talk to your "Girder lookalike".
Would it be best to talk via phone or via instant messenger of some sort. Either is fine. Let me know.
Thanks George!
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.