LinuxMCE Forums

General => Users => Topic started by: corwin on April 08, 2007, 07:29:08 am

Title: Ruby code for Generic serial Device
Post by: corwin on April 08, 2007, 07:29:08 am

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