Billmans
February 20th, 2006, 08:04 AM
I am looking to set up a system for my HT. I have worked with basic Girder 3.3 stuff before.
Currently I have learned all my remote key presses using an Ocelot and the plugin is working in Girder 4. I am Sending IR to all my components using the ocelot. I am using a ira-3 for recieving the ir from a Microsoft Media Center remote control, The ira-3 is using the built in plugin as the one from home-electro does not work, (starts up fine, but as soon as I push a button on the remote, girder crashes, memory exception).
So the basics are working....
What I would like to do is not add some logic to this. For example.
When I push "TV" on the remote I want to send a power to the amp,tv,cable box etc. Then when I hit "RADIO" I want to send a power to the tv,cable box to turn off, and tell the amp to turn to tuner. (this I can do). But now if I hit TV again, it sends the power to amp,tv,cable box and now my amp is off, tv on, and cable box on.
I have looked and can not find any distinct codes for my gear so I need to some how store the state of the item.
So I assume that I am going to have to script this with LUA, but I am not sure how to start. Can somebody give me a idea, even code hints to start this off. I just need one basic example how to handle my example above and I should be able to run with that. Just not sure what is the best approach and I don't want to get to complicated unless I have to. I am sure this has been done before, so any input would be greatly appreciated.
Sorry for the long-winded post........
Currently I have learned all my remote key presses using an Ocelot and the plugin is working in Girder 4. I am Sending IR to all my components using the ocelot. I am using a ira-3 for recieving the ir from a Microsoft Media Center remote control, The ira-3 is using the built in plugin as the one from home-electro does not work, (starts up fine, but as soon as I push a button on the remote, girder crashes, memory exception).
So the basics are working....
What I would like to do is not add some logic to this. For example.
When I push "TV" on the remote I want to send a power to the amp,tv,cable box etc. Then when I hit "RADIO" I want to send a power to the tv,cable box to turn off, and tell the amp to turn to tuner. (this I can do). But now if I hit TV again, it sends the power to amp,tv,cable box and now my amp is off, tv on, and cable box on.
I have looked and can not find any distinct codes for my gear so I need to some how store the state of the item.
So I assume that I am going to have to script this with LUA, but I am not sure how to start. Can somebody give me a idea, even code hints to start this off. I just need one basic example how to handle my example above and I should be able to run with that. Just not sure what is the best approach and I don't want to get to complicated unless I have to. I am sure this has been done before, so any input would be greatly appreciated.
Sorry for the long-winded post........