kanebullen
September 20th, 2007, 05:07 PM
Hi all,
This may seem like a silly question, but I've been trying to trawl the forums for an answer with not much luck. I'm a relative newcomer to LUA/girder/netremote, but am getting some things up and running quite quickly, which is great.
Anyway, I have girder running on one PC, and have written a LUA function that retrieves a value (mm of rainfall recorded today) from a SQL Server database. This works fine in Girder - I can call this function to retrieve the value.
But, I can't seem to figure out a way to call this LUA function from NetRemote (on another PC), so that I can display the rainfall within NetRemote.
I can obviously use the Girder plugin to send an eventstring to Girder, but cannot figure out how to retrieve a Girder variable, or grab the result of a LUA function that returns a value.
Obviously, from the Girder side, I can use the Netremote->Set Variable action. But that's not really the way I want to do it (I'd prefer to only have to retrieve the value on request)
Hopefully I've provided enough information - if not, please let me know!
Thanks heaps,
Kane
This may seem like a silly question, but I've been trying to trawl the forums for an answer with not much luck. I'm a relative newcomer to LUA/girder/netremote, but am getting some things up and running quite quickly, which is great.
Anyway, I have girder running on one PC, and have written a LUA function that retrieves a value (mm of rainfall recorded today) from a SQL Server database. This works fine in Girder - I can call this function to retrieve the value.
But, I can't seem to figure out a way to call this LUA function from NetRemote (on another PC), so that I can display the rainfall within NetRemote.
I can obviously use the Girder plugin to send an eventstring to Girder, but cannot figure out how to retrieve a Girder variable, or grab the result of a LUA function that returns a value.
Obviously, from the Girder side, I can use the Netremote->Set Variable action. But that's not really the way I want to do it (I'd prefer to only have to retrieve the value on request)
Hopefully I've provided enough information - if not, please let me know!
Thanks heaps,
Kane