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: xAP Jabber



------=_NextPart_000_002D_01C8E070.994ABC30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, I've updated to the 0.5 beta and am now using the following
(<br/>) whi=
ch seems to work:

tmp=3D"Message.Send" & chr(10)
tmp=3Dtmp & "{" & chr(10)
tmp=3Dtmp & "to=3Dsomechimp@xxxxxxx" & chr(10)
tmp=3Dtmp & "body=3DEnvironment: [Info]<br/>Garage
Temperature: " & GarageL=
evel & " deg C. RackTop Temperature: " & RackTopLevel
& " deg C. RackBottom=
Temperature: " & RackBottomLevel & " deg C. Outside
Temperature: " & Outsi=
deLevel & " deg C." & chr(10)
tmp=3Dtmp & "}" & chr(10)
xap.sendxap tmp,"messenger.cmd"


Note that anything in just <> tags seems to cause the app to
disconnect fro=
m the Jabber server.


Thanks,

Martyn

----- Original Message -----=20
From: James Traynor=20
To: xap_automation@xxxxxxx=20
Sent: Monday, July 07, 2008 8:05 PM
Subject: Re: [xap_automation] xAP Jabber



using <BR> should do the trick.=20
(Jabber messages are pretty much HTML. The non-html message part is forme=
d from the html part so <BR> becomes a linefeed)
The display message method should work too but I think a bugette is stopp=
ing the line feeds going through.

hth

James

Martyn Wendon wrote:=20

Hello,

Using xAP Jabber, how can I formulate a message to encorporate line bre=
aks?

e.g.=20

xap-header
{
v=3D12
hop=3D1
uid=3DFF456200
class=3Dmessenger.cmd
source=3Dmi4.floor.AHSHASERVER
}

message.send
{
to=3Dsomechimp@xxxxxxx
body=3DEnvironment: <Info> Garage Temperature: 17.81 deg C. RackTop=
Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C. Outside Tem=
perature: 17.02 deg C.
}


I want the resulting IM message to look like:

Environment: <Info>
Garage Temperature: 17.81 deg C.
RackTop Temperature: 30.63 deg C.
RackBottom Temperature: 28.34 deg C.
Outside Temperature: 17.02 deg C.


I've tried various combinations of <br> \r \n \\r\\n \r\n etc etc but
n=
ot got it working yet - I'm sure I'm missing something simple???



Thanks,

Martyn

=20=20=20
------=_NextPart_000_002D_01C8E070.994ABC30
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>


<DIV><FONT face=Arial size=2>Ok, I've updated to the 0.5 beta
and am now using
the following (&lt;br/&gt;) which seems to
work:</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>tmp="Message.Send"
&amp; chr(10)<BR>tmp=tmp &amp;
"{" &amp; chr(10)<BR>tmp=tmp &amp; "<A
href="mailto:to=martynwendon%hotmail.com@xxxxxxx/msn";>to=somechimp@<WBR>somejabber.<WBR>server</A>"
&amp; chr(10)<BR>tmp=tmp &amp; "body=Environment:
[Info]&lt;br/&gt;Garage
Temperature: " &amp; GarageLevel &amp; " deg C. RackTop
Temperature: " &amp;
RackTopLevel &amp; " deg C. RackBottom Temperature: "
&amp; RackBottomLevel
&amp; " deg C. Outside Temperature: " &amp; OutsideLevel
&amp; " deg C." &amp;
chr(10)<BR>tmp=tmp &amp; "}" &amp;
chr(10)<BR>xap.sendxap
tmp,"messenger.cmd"</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Note that anything in just
&lt;&gt; tags seems to
cause the app to disconnect from the Jabber
server.</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Martyn</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message -----
</DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color:
black"><B>From:</B>
<A title=james.traynor@xxxxxxx href="mailto:james.traynor@xxxxxxx";>James
Traynor</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=xap_automation@xxxxxxx
href="mailto:xap_automation@xxxxxxx";>xap_automation@xxxxxxx</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B>
Monday, July 07, 2008 8:05 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B>
Re: [xap_automation] xAP
Jabber</DIV>
<DIV><BR></DIV><BR>using &lt;BR&gt; should
do the trick. <BR>(Jabber messages
are pretty much HTML. The non-html message part is formed from the html
part
so &lt;BR&gt; becomes a linefeed)<BR>The display message
method should work
too but I think a bugette is stopping the line feeds going
through.<BR><BR>hth<BR><BR>James<BR><BR>Martyn
Wendon wrote:
<BLOCKQUOTE cite=mid:000b01c8e04a$68c96550$1201a8c0@xxxxxxx
type="cite">
<DIV id=ygrp-text>
<P></P>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Using xAP Jabber, how can I
formulate a message
to encorporate line breaks?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>e.g. </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial
size=2>xap-header<BR>{<BR>&nbsp;&nbsp;&nbsp;
v=12<BR>&nbsp;&nbsp;&nbsp;
hop=1<BR>&nbsp;&nbsp;&nbsp;
uid=FF456200<BR>&nbsp;&nbsp;&nbsp;
class=messenger.<WBR>cmd<BR>&nbsp;&nbsp;&nbsp;
source=mi4.floor.<WBR>AHSHASERVER<BR>}</FONT></DIV><FONT
face=Arial size=2>
<DIV><BR>message.send<BR>{<BR>&nbsp;&nbsp;&nbsp;
<A
href="mailto:to=somechimp@xxxxxxx";
moz-do-not-send="true">to=somechimp@<WBR>somejabber.<WBR>server</A><BR>&nbsp;&nbsp;&nbsp;
body=Environment: &lt;Info&gt; Garage Temperature: 17.81 deg C.
RackTop
Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C. Outside
Temperature: 17.02 deg C.<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want the resulting IM message to look like:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Environment: &lt;Info&gt;</DIV>
<DIV>Garage Temperature: 17.81 deg C.</DIV>
<DIV>RackTop Temperature: 30.63 deg C.</DIV>
<DIV>RackBottom Temperature: 28.34 deg C.</DIV>
<DIV>Outside Temperature: 17.02 deg C.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I've tried various combinations of &lt;br&gt; \r \n
<A
href="file://%5C%5Cr%5C%5Cn"
moz-do-not-send="true">\\r\\n</A>&nbsp;\r\n etc
etc&nbsp;but not got it working yet - I'm sure I'm missing something
simple???</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Martyn</DIV></FONT></DIV><!--End group
email --></BLOCKQUOTE><BR><SPAN
style="COLOR: white" width="1"></SPAN>
</BLOCKQUOTE>
<span width="1" style="color:
white;"/>__._,_.___</span>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- **begin egp html banner** -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=3990/stime=1215459171";
width="1" height="1"> <br>

<!-- **end egp html banner** -->


<!-- **begin egp html banner** -->

<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xap_automation/join;_ylc=X3oDMTJmM2oxN3Y2BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyMTU0NTkxNzE-";>Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xap_automation-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a>  <a
href = "mailto:xap_automation-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xap_automation;_ylc=X3oDMTJka2E3NGljBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjE1NDU5MTcx";>
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe";>
Unsubscribe
</a>
<br>
</div>
<br>

<!-- **end egp html banner** -->


<span  style="color: white;"/>__,_._,___</span>
</BODY></HTML>

------=_NextPart_000_002D_01C8E070.994ABC30--


xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation 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.