[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Re: xAPFloorPlan & Room Temperatures
- Subject: RE: Re: xAPFloorPlan & Room Temperatures
- From: "Neil Frost" <neil@xxxxxxxxxxxxx>
- Date: Wed, 6 Sep 2006 22:10:13 +0100
------_=_NextPart_001_01C6D1F9.5E16235B
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I get two separate messages:
=20
xpl-stat
{
hop=3D1
source=3Dgshed-tom10.thefrosts
target=3D*
}
sensor.basic
{
device=3DBathroom
type=3Dtemp
current=3D25.18
}
and
=20
xpl-stat
{
hop=3D1
source=3Dgshed-tom10.thefrosts
target=3D*
}
sensor.basic
{
device=3DNodezero
type=3Dtemp
current=3D34.26
}
=20
Floorplan wise i have
=20
Alias=3DBathroom Temp
Source=3Dgshed-tom10.thefrosts
Class=3Dsensor
Section=3Dbasic
Item=3Dcurrent
ItemValuePair1=3Ddevice=3DBathroom
and
=20
Alias=3DNodeZero Temp
Source=3Dgshed-tom10.thefrosts
Class=3Dsensor
Section=3Dbasic
Item=3Dcurrent
ItemValuePair1=3Ddevice=3DNodezero
=20
I've since put lehhane xAPTOM10 app on to test and it works as expected...
=
maybe i'll just try and get the xAP messages logged into my SQL db....????
=20
Neil
________________________________
From: xap_automation@xxxxxxx on behalf of James
Sent: Wed 06/09/2006 21:45
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] Re: xAPFloorPlan & Room Temperatures
Could you let me know the settings in Floorplan for each device and an
exam=
ple xPL messages that sets them?
Could it be that both sensors are reported by the same xPL message and
that=
xPL messages has multiple items with the same name as in
{
device=3D1
value=3D3
device=3D2
value=3D4
}
etc
Thanks
James
Neil Frost wrote:=20
I can now get the two (i've just got 2 sensors on the tom10 at the mo) tem=
peratures displayed on the map, trouble is the temperatures are displayed
s=
ide by side and not individually... i assume thats because its the same
xPL=
source??
=09=20
what I get displayed is: 25.37 =B0C31.50 =B0C (i added the °C
suffix) =
no matter where i put the devices.
=09=20
If I change the map for one of the devices then it displays fine...
=09=20
any ideas?
=09=20
Neil
=09=20
=09=20
=09
________________________________
=09
From: xap_automation@xxxxxxx on behalf of JamesTraynor
Sent: Tue 05/09/2006 21:23
To: xap_automation@xxxxxxx
Subject: [xap_automation] Re: xAPFloorPlan & Room Temperatures
=09
=09
=09
=09
but, and there is always a but, the item value pairs are ANDs not ORs
so if you have move than one then all have to be true
=09
Guess i'll be adding it to the todo list ;-)
=09
J
=09
--- In xap_automation@xxxxxxx, "Kevin Hawkins" <lists@...>
<mailto=
:lists@...> wrote:
=09=20=20
--- In xap_automation@xxxxxxx, "JamesTraynor" <james@>
wrote:
=09=09=20=20=20=20
It then gets more awkward, especially for Floorplan, as xPL put
context throughout messages in most schemas and this was one of the
original reasons for me going xAP rather than xPL, but that's also
another story.
Anyways, don't worry Floorplan to the rescue.
=09=09=09=20=20=20=20=20=20
Isn't that great :-) xAP Desktop (another great J application)
allows similar as well
=09=09
Re the below I don't know if the 'type' parameter can change in
your usage (eg to type=3Dhumidity) but if so you should add a second
pair relation as well..
=09=09
ItemValuePair2=3Dtype=3Dtemp
=09=09
K
=09=09
When you define a raw
=09=09=20=20=20=20
device you will see 3 'Item Value Pairs', these are entered in the
form item=3Dvalue, so in your example:
=09=09=09
xpl-stat
{
hop=3D1
source=3Dgshed-tom10.thefrosts
target=3D*
}
sensor.basic
{
device=3DBathroom
type=3Dtemp
current=3D25.18
}
=09=09=09
becomes:
=09=09=09
Alias=3DBathroom Temp
Source=3Dgshed-tom10.thefrosts
Class=3Dsensor
Section=3Dbasic
Item=3Dcurrent
ItemValuePair1=3Ddevice=3DBathroom
=09=09=09
=09=09=09
=09=09=09=20=20=20=20=20=20
=09
=09
=09
=09
=09
=09
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|