Results 1 to 1 of 1

Thread: Some basic syntax examples for LUA

  1. #1
    Join Date
    Apr 2004
    Dearborn, MI

    Default Some basic syntax examples for LUA

    -- set a netremote variable from Girder
    NetRemote.SetVariable("washer", "off")
    -- set a netremote image from Girder
    NetRemote.SetImage("MCJ_PwrSwitch_S1", "C:\\Program Files\\Promixis\\Girder5\\User\\images\\led-blue.png")
    -- execute a command from Girder
    -- in this example it will issue a psshutdown to a laptop with the hostname toshiba-nr
    os.execute([[psshutdown \\toshiba-nr -u touchscreen1 -p password -d -t 5 -c]])
    Last edited by jwilson56; November 7th, 2008 at 09:01 AM.

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts