The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: Weather


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Just trying to get to grip with xpl




Hi Paul,

>             So I have created a determinator which runs when I get a
> message from the sensor. I want to set a global with the value
returned,
> but all I see at the mo is a way to set the figure.

Assuming the temperature reading is contained in the current= element from
the incoming message, put:

{XPL::CURRENT}

as the value of the global.
Anything inside curly brackets is treated as a special value.
The XPL:: prefix means substitute the value of the global with a value from
the incoming xPL message.
So whatever is contained within the "current=" tag from the
incoming sensor message will now be put into the global.

HTH,

John




xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.