[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Re[2]: How can I display the weather data
- Subject: RE: Re[2]: How can I display the weather data
- From: Martin
- Date: Sun, 11 Apr 2004 19:43:00 +0000
Many thanks for all your work.
All now working nicely followed your instructions all works except
message type is STATUS and not TRIGGER :-)
Well done Xpl team this is a truly brilliant set up !!
Martin
-----Original Message-----
From:
<a
href="/group/ukha_xpl/post?postID=HOegUnGgSuHRSk7ByQdx9V2JsKjtmtb42UhWUPUlsyY0HEa_pqzsXsGh_XEBHp9yOfBfnmsV3umlVhhXwHl_UkjQ13mOfKHTu6gPrtJG2L4jccXZNt5s2mZLG65hCJVKtnmRJCcjSsi-ME4Kebv7_tpNcg">sentto-9148965-2263-1081706481-ukha=orchardnetworks.com@r...</a>
ahoo.com
[mailto:sentto-9148965-2263-1081706481-ukha=orchardnetworks.com@returns.
groups.yahoo.com] On Behalf Of John B
Sent: 11 April 2004 19:15
To: <a
href="/group/ukha_xpl/post?postID=pmBRtsVlAroqURGPfKagJXqt0-k4F0-M0r2_QjAVFXLObJ1mU3qsNxyAw0u_hybMCLj2tUKrEl2_cBgCvLi64eM">ukha_xpl@xxxxxxx</a>
Subject: RE: Re[2]: [ukha_xpl] How can I display the weather data
> Downloaded the update, can't see how to grab data from weather.current
> message using determinator or is that to follow ?
OK, this should do the trick:
Fire up the new determinator wizard.
On the first screen, tick the box to create the determinator manually.
When the determinator dialog appears, on the General tab, give the
determinator a name, e.g. "Copy weather data to globals".
Click the Conditions tab.
Click Add.
Enter a name for the condition, e.g. "Weather data received"
Condition type should be "xPL message"
Message type should be trigger.
Source and target can be left as * (assuming you only have one weather
station) Schema should be weather.current Leave the message parameters
list empty and click OK.
You now have a determinator that will fire whenever the weatherstation
sends out a weather.current message (which I believe is every 60
seconds).
Now click the Actions tab.
You'll need to add an action for each item of data you want to store,
e.g. tempin, tempout etc.
For this example we'll use tempin.
Click Add.
Enter a name for the action, e.g. "Store tempin to global"
Action type should be "Set the value of a global variable".
Global name should be tempin
Global value should be (case sensitive):
{XPL::TEMPIN}
Click OK.
Add as many actions as you need, replacing tempin with tempout,
humidityin, humidityout etc.
(the contents of the curly brackets should always be in uppercase)
Click OK to save the determinator.
Now, whenever the weatherstation sends out a weather.current, your
global variables should appear wiht the weather data.
Steve has found an issue where the values don't update properly once
they've been set... I'll look into this and include a fix in the next
xPLHal release.
HTH,
John
xPL Links: <a href="http://www.xplproject.org.uk">http://www.xplproject.org.uk</a>
<a href="http://www.xplhal.com">http://www.xplhal.com</a>
<a href="http://www.xpl.myby.co.uk">http://www.xpl.myby.co.uk</a>
To Post a Message: <a
href="/group/ukha_xpl/post?postID=pmBRtsVlAroqURGPfKagJXqt0-k4F0-M0r2_QjAVFXLObJ1mU3qsNxyAw0u_hybMCLj2tUKrEl2_cBgCvLi64eM">ukha_xpl@xxxxxxx</a>
To
Subscribe: <a
href="/group/ukha_xpl/post?postID=ji-J5qBqCHGfqxcrsH7OzXayVeb5w-ZNSElACOCZgt4ReXIqkBD8pUxQzvlgF8kms-OtFsGUKgM0V_FES12jWumWWdopQ4yRmxzWYA">ukha_xpl-subscribe@xxxxxxx</a>
To Unsubscribe: <a
href="/group/ukha_xpl/post?postID=AhlkJV64PLd1x-llj0jczFxV4sObAi8h0t4GDyh-jjPdPA5UhJ6DkCb5tSfl2PwNQB5_hPw9Yez5rzOuwUgXuaJK-cBqLLamcggrSQ">ukha_xpl-unsubscribe@xxxxxxx</a>
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|