PDA

View Full Version : Using RFXCOM sensors



khun
March 23rd, 2007, 04:50 PM
Hi!

I have the feeling I'm missing out on some typical place to find information, but I'm unable to figure out how to use the RFXCOM temperature sensors I just bought (with W800RF32AE). I can see in Girder the log message: "RFXCOM RFX Sensor:1", but how do I get the temperature?

I would like each message from the sensor to trigger a script where I can read the temperature (because I want to write it to a log).

Any help appreciated :-)

Knut

Rob H
March 24th, 2007, 02:56 AM
If you right click on the header in the logger you should get a popup menu that will let you enable the display of the first three payloads. Enable all three. One of them (probably Payload 1) will contain the temperature. In a script you can access Payload 1 from the pld1 variable.

khun
March 24th, 2007, 03:49 AM
As always, it's almost too easy when you just know how :-)

I wasn't aware of the payload columns, I have been right-clicking on the lines themselves many times :rolleyes:

While reading about payloads, I also found a much easier way to find event strings, by simply dragging them from the logger to the script window...

So now I have this script after the RFXCOM-event:


gir.LogMessage("RFXCOM", "Bathroom Temperature" .. ":" .. pld1, 4)
RfxcomLogg = io.open("C:\\Rfxcom.Log", "a+")
RfxcomLogg:write("Bathroom Temperature" .. ":" .. pld1)
RfxcomLogg:flush()
RfxcomLogg:close()


Soon my heating will be controlled by Girder, when the plumber has finished his work on tuesday :-)

BTW, I think this forum is what really makes Girder a great product! The documentation is a little difficult for a LUA beginner.