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: rgb led controller


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

Re: Re: sample xplhal scripts to process xap messages?



Hi there,

The xAP/xPL bridge does  work :-)  ,  even tried it in latest version.

here's your problem I think, your script should be named..

XAP_KCSOFT_MAILMONITOR_XYZ.xpl  and not XAP_KCSOFT_MAILMONITOR_XYZ.xap  
;-)



I will try and find the general script I had for xAP to xPL but looking now
again at it, it appears the source must be fixed to trigger an xPL script
(as the script is identified from the source) so I am not sure how I picked
up all xAP messages by 'class' (schema=xpl)... hmmmmm     I don't think you
can wildcard either.

- can I run a script based on all xAP messages Tony, or alternatively xAP
messages of a certain class (schema) ??

If not then what we would need is a small xAP application / script that
watched for xpl schema messages on xAP  (class=xpl.*) and resent these from
itself (where it would of course have a known source) and could trigger the
matching script in xPLHAL which could then reform it as needed into an xPL
message.

For you just wanting to handle a specific known xAP source this might not
be an issue.

Kevin


rleong1 wrote:

>
>maybe you can help me if my syntax, set up is OK to work w/ xplhal.
>say for example i have an xap mail monitor running & i get this
message:
>
>xap-header
>{
>    v=12
>    hop=1
>    uid=FF125001
>    class=Mail.Incoming.New
>    source=KCSoft.MailMonitor.xyz:my_isp_com.myname
>}
>Message
>{
>    msgid=<4298EE47.9030308@xxxxxxx>
>    subject=test
>    timestamp=Sat, 28 May 2005 15:18:47 GMT
>    size=1714
>    total=1
>    msg=1
>    to=myname <myname@xxxxxxx>
>    from=someone@xxxxxxx
>}
>
>i create a script called XAP_KCSOFT_MAILMONITOR_XYZ.xap
>with contents:
>
>sub XAP_KCSOFT_MAILMONITOR_HOME(xapmsg)
>      call
xpl.SendMsg(XPL-STAT,"","tts.basic","speech=test")
>end sub
>
>i would expect my xpl tts to say "test" whenever it received
an xap
>message from mailmonitor, but the xpl message is never sent so my
>subroutine is never triggered.  is the name of the subroutine wrong?
>anything else?
>
>
>
>



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.