The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


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

RE: Determinators


  • Subject: RE: Determinators
  • From: "Neil Frost" <neil@xxxxxxxxxxxxx>
  • Date: Tue, 22 Mar 2005 15:47:14 -0000


Hi George,

Are you seeing the temperatures in the xPL TX window of the TOM10 app?

Mine looks like this:

22/03/05 15:41:09
xpl-stat
{
hop=1
source=gshed-tom10.thefrosts
target=*
}
sensor.basic
{
device=NodeZero
type=temp
current=32.31
}


My determinator then looks like this:

<?xml version="1.0" standalone="no"?>
<xplDeterminator>
<determinator name="Record Temperatures"
description="" enabled="Y">
<input match="all">
<xplCondition display_name="New Temperature"
msg_type="stat" source_vendor="gshed"
source_device="tom10" source_instance="thefrosts"
target_vendor="*" target_device="*"
target_instance="*" schema_class="sensor"
schema_type="basic">
<param name="type" operator="="
value="temp" />
</xplCondition>
</input>
<output>
<xplAction executeOrder="0" display_name="Log
Temperature" msg_type="cmnd"
msg_target="TONYT-XQL.MASTER" msg_schema="db.xql">
<xplActionParam expression="command=add" />
<xplActionParam expression="sql=select * from temperatures"
/>
<xplActionParam expression="DateAdded={SYS::DATE} {SYS::TIME}"
/>
<xplActionParam expression="name={XPL::DEVICE}" />
<xplActionParam expression="Temp={XPL::CURRENT}" />
</xplAction>
</output>
</determinator>
</xplDeterminator>


Hope that helps.


________________________________

From: George M [mailto:gmotichka@xxxxxxx]
Sent: Tue 22/03/2005 14:29
To: ukha_xpl@xxxxxxx
Subject: Re: [ukha_xpl] Determinators




Neil,

Can you tell me exactly how you got this to work. I have tried numerous
times and could not get it to populate the database. It would add a line to
the database, but all it had was 0's.

The next thing would be, once it is in the database, can it be converted to
F degrees so that it can be forwarded to HV.

George M
----- Original Message -----
From: Neil Frost
To: ukha_xpl@xxxxxxx
Sent: Tuesday, March 22, 2005 12:12 AM
Subject: RE: [ukha_xpl] Determinators


Odd... It's working now...

I left a {SYS::DATE} {SYS::TIME} in the determinator the other day.
Checked the db yesterday and low and behold, the it's been updating it.

I added the rest of the details and now xPLHAL is reading the TOM10 and
is updating the db...

Weird, oh well it's working

Neil

-----Original Message-----
From: Neil Frost [mailto:neil@xxxxxxx]
Sent: 21 March 2005 10:19
To: ukha_xpl@xxxxxxx
Subject: RE: [ukha_xpl] Determinators


Hi John,

It happens whenever I put a {SYS::WHATEVER} in the determinator.

I even tried a simple osd.basic message but got the same problem...

The olny thing that has changed is that I'm now using small business
server....????

Neil

________________________________

From: John B [mailto:home-automation@xxxxxxx]
Sent: Mon 21/03/2005 07:30
To: ukha_xpl@xxxxxxx
Subject: RE: [ukha_xpl] Determinators




Hi Neil,

I'm not a TOM10 user, but looking at the error, something's going wrong
with the determinator - but I'm not sure what.

There's currently an open bug that I'm looking into that affects
determinators in a similar way to the error you're seeing - but I'm not
sure why this has worked previously for you, but isn't working now.

Regards,

John


> -----Original Message-----
> From: Neil Frost [mailto:neil@xxxxxxx]
> Sent: 20 March 2005 18:53
> To: ukha_xpl@xxxxxxx
> Subject: RE: [ukha_xpl] Determinators
>
>
> Any ideas please??
>
> -----Original Message-----
> From: Neil Frost [mailto:neil@xxxxxxx]
> Sent: 19 March 2005 23:39
> To: ukha_xpl@xxxxxxx
> Subject: [ukha_xpl] Determinators
>
>
> Hi all
>
>
>
> I've just finished rebuilding my server after serious hw failure.
>
>
>
> I have xpl working, just can't find the script for recording
> temperature
> from a TOM10.
>
>
>
> I have followed these instructions:
>
>
>
> To log the values of my temperature sensors I use a determinator. The
> condition is a sensor.basic message with type=Temp. I then have an
> action of
>
>     Type=Command
>     Target=TONYT-XQL.SCOOP (put your instance of TONYT-XQL here)
>     Schema=db.xql
>     Parameter Values
>         command=add
>         sql=select * from temperature
>         dateadded={SYS::DATE} {SYS::TIME}
>         name={XPL::DEVICE}
>         temperature={XPL::CURRENT}
>
>
>
>
>
> But I get this in the error log
>
>
>
> Sat 19/03/05 23:35:45 : Error executing action: :
> System.NullReferenceException: Object reference not set to an instance
> of an object.
>
>    at xPLHal.xplAction.Execute(XplMsg& xSource)
>
>    at xPLHal.DeterminatorAction.Execute(String ruleName, XplMsg&
> xSource)
>
>
>
> any ideas where I'm going wrong???
>
>
>
> Thanks
>
>
>
> Neil
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
> http://www.xpl.myby.co.uk
> To Post a Message: ukha_xpl@xxxxxxx
> To Subscribe:  ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
> http://www.xpl.myby.co.uk
> To Post a Message: ukha_xpl@xxxxxxx
> To Subscribe:  ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe:  ukha_xpl-subscribe@xxxxxxx
To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx

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.