News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Ruby code for Generic serial Device

Started by corwin, April 08, 2007, 07:29:08 AM

Previous topic - Next topic

corwin

Hi,

Has anyone successfully created a GSD with custom Ruby code? I tried to follow the docs in the wiki but I'm getting nowhere...

From the Edit Ruby codes screen, I click on a command (say "ON"), enter Ruby code and save. Then I click on "ON" again, and my code isn't there...

Also, the examples are really confusing... I can't tell if I can simply enter single liners (like <$"PWON\r"$>) or if I need to define the device class and enter full functions as in the long samples. And nothing there says where the device state is stored or how to get/set it.

TIA, Itai