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: Re: activex xap object?



--------------030101050100060704060201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

OK,
That starts to make sense...

xAP doesn't, per se, have global variables, neither does xPL. The xPLHal
application
provides them, as does xAP Floorplan. In Floorplan access to them is
(right now) via
scripting. So I can set a global based upon a message received, like:
SetGlobal "KitchenLight1State", 0
and get at it:
PrevState=GetGlobal("KitchenLight1State")
Based on those I can send xAP (or xPL) messages.

However, the missing item is the control for xAP which (and someone can
jump
in and correct me!) doesn't exist in the form which you require to
integrate with
starCOM, although Floorplan has an OCX which can be called from VB6 rather
than VB Script/WSH.

If you are generating xPL messages then you can use Floorplan to bridge
to xAP
and use the scripting - I do this for Medianet.

Lehane





rleong1 wrote:
>
> my main automation software is a package called starCOM. i would like
> to be able to pass information between it & xap. it would be ideal
if
> i could call the activex xap object from a script in starCOM to set or
> read global variables.
>
> you mentioned global variables and i'm still not clear on what global
> variables are in xap. where or are how they are stored? in xplhal,
> the xpl scripting engine, it's very obvious. there is a page to
> define and set global variables.
>
> thanks!
>
> --- In xap_automation@xxxxxxx
> <mailto:xap_automation%40yahoogroups.com>,
Lehane Kellett <lehane@...>
> wrote:
> >
> > I'll jump in with some answers...
> >
> > First off, what you use depends on your application. I use xAP
> Floorplan
> > as my
> > scripting engine and 'quick look' status display. Where that
isn't
> > sufficient then
> > I write code - anything from Pic to Perl to C# - but usually to
> handle a
> > device.
> >
> > If you are using, say, Floorplan, then you don't need an Active X
> object
> > - you
> > can simply create scripts which act upon stimulii or timers.
There
> are some
> > 'auto' scripting features too. As an example, I have a VBscript
which
> > acts on
> > presses of a single push switch to control lighting scenes via
DMX, each
> > press calls up a new scene, usually building on the last, but
also
> starts a
> > timer(10s). When the timer has expired the action of the switch
is
> to turn
> > all the lights off. Also for bathrooms it controls the
ventilation fans
> > via timers.
> > Make sure you are on the latest version if you are using timers
in the
> > scripts.
> >
> > I use global variables to hold the scene/switch state as well as
some
> > house status flags.
> >
> > The embedded html doesn't let you change variables(yet) but there
are
> > ways around it via 'ghost' devices and some scripting. You can
use it to
> > embed a webcam display or some other non xAP/xPL status.
> >
> > I know James would like to get some examples on the pages so keep
> > an eye out.
> >
> > HTH,
> > Lehane
> >
> >
> > rleong1 wrote:
> > >
> > > >
> > > > Hi,
> > > >
> > > > There are at least three xAP OCX's - one written by
Patrick at
> > > > http://patrick.lidstone.net/haweb/html/dev_tools.html
> <http://patrick.lidstone.net/haweb/html/dev_tools.html>
> > > <http://patrick.lidstone.net/haweb/html/dev_tools.html
> <http://patrick.lidstone.net/haweb/html/dev_tools.html>>
> > > > and a later one by James at
> > > >
> > >
> http://www.mi4.net/modules.php?name=Downloads&d_op=viewdownload&cid=21
> <http://www.mi4.net/modules.php?name=Downloads&d_op=viewdownload&cid=21>
> > >
> <http://www.mi4.net/modules.php?name=Downloads&d_op=viewdownload&cid=21
> <http://www.mi4.net/modules.php?name=Downloads&d_op=viewdownload&cid=21>>
> > > > (xAP Intranet OCX v1.2).
> > > > There's also one written by Michael McSharry -
available via the
> > > > HomeSeer/MCS forum.
> > > >
> > > > Each of these is very different in how it implements
xAP and some
> > > people
> > > > have reported issues with Patricks' re memory
management usage
> during
> > > > high traffic so possibly I would recommend James' which
I use
> within my
> > > > own applications now. James's xAP OCX even includes an
inbuilt web
> > > server .
> > >
> > > can i stick this into a script? ie:
> > > xap = new ActiveXObject("???.???");
> > >
> > > if so how?
> > >
> >
> >
> > > >
> > > > You should also take a look at xAP FloorPlan too as it
has much the
> > > same
> > > > scripting capabilities as xPLHAL along with it's own
web server
> based
> > > > using AJAX so updates are real time - not browser
refreshes and you
> > > can
> > > > get at device status and embed your own html too. If
you're more
> > > > adventurous then xAP Desktop supports xAP widgets and
scripting
> > > allowing
> > > > for realtime updated floating windows with transparency
(XP) &
> > > > positional control and click on/through events.
> > > >
> > >
> > > i have downloaded floorplan. how can i embed my own html? i
don't
> > > see this on the floorplan guide on mi4.biz.
> > >
> > > > I'll leave the getting variable values into your own
asp pages
> to J to
> > > > tackle...
> > >
> > > what app contains variables that i can set? how can i access
them
> > > from another app or script? in xplhal, i set up a script to
react to a
> > > message and can set it w/ this:
> > > Sys.value("WEATHER_DAY0") = ....
> > > and can access it from any script with:
> > > xyz = Sys.value("WEATHER_DAY0")
> > >
> > > thanks!
> > >
> > > >
> > > > Cheers Kevin
> > > >
> > > >
> > > > rleong1 wrote:
> > > > >
> > > > > i use a home automation package that doesn't
support xap but
> has the
> > > > > ability to use activex objects through scripting.
is there an
> activex
> > > > > object for xap? something that i could instantiate
in a script and
> > > > > make the software i use appear to be xap enabled?
(ie it could
> > > > > receive messages directed to it, etc) is this even
possible?
> > > > >
> > > > > one thing i like about xplhal is its global
variables to store
> > > > > previous state, on which i can do scripting, etc.
is there
> something
> > > > > similar in xap to xplhal's global variables?
another feature i
> like
> > > > > is the ability to display those globals in my own
asp page. would
> > > > > this be possible w/ xap?
> > > > >
> > > > > i bring a lot xap stuff across to xpl so i'm
looking for a way
> to use
> > > > > xap directly instead.
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> ----------------------------------------------------------
> > >
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.405 / Virus Database: 268.11.5/425 - Release
Date:
> 22/08/2006
> > >
> >
>
>
>
------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.5/426 - Release Date:
23/08/2006
>


--------------030101050100060704060201
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">


OK,<br>
That starts to make sense...<br>
<br>
xAP doesn't, per se, have global variables, neither does xPL. The
xPLHal application<br>
provides them, as does xAP Floorplan. In Floorplan access to them is
(right now) via<br>
scripting. So I can set a global based upon a message received,
like:<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetGlobal
"KitchenLight1State", 0<br>
and get at it:<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
PrevState=GetGlobal("KitchenLight1State")&nbsp;&nbsp;&nbsp;
<br>
Based on those I can send xAP (or xPL) messages.<br>
<br>
However, the missing item is the control for xAP which (and someone can
jump<br>
in and correct me!) doesn't exist in the form which you require to
integrate with<br>
starCOM, although Floorplan has an OCX which can be called from VB6
rather<br>
than VB Script/WSH.<br>
<br>
If you are generating xPL messages then you can use Floorplan to bridge
to xAP<br>
and use the scripting - I do this for Medianet.<br>
<br>
Lehane<br>
<br>
<br>
<br>
<br>
<br>
rleong1 wrote:
<blockquote cite="mideckebm+ggig@xxxxxxx"
type="cite"><!-- Network content -->

<div id="ygrp-text">
<p>my main automation software is a package called starCOM. i would
like<br>
to be able to pass information between it &amp; xap. it would be ideal
if<br>
i could call the activex xap object from a script in starCOM to set
or<br>
read global variables.<br>
<br>
you mentioned global variables and i'm still not clear on what
global<br>
variables are in xap. where or are how they are stored? in
xplhal,<br>
the xpl scripting engine, it's very obvious. there is a page to<br>
define and set global variables. <br>
<br>
thanks!<br>
<br>
--- In <a href="mailto:xap_automation%40yahoogroups.com";>xap_automation@<wbr>yahoogroups.<wbr>com</a>,
Lehane Kellett <a class="moz-txt-link-rfc2396E" href="mailto:lehane@...";>&lt;lehane@...&gt;</a>
wrote:<br>
&gt;<br>
&gt; I'll jump in with some answers...<br>
&gt; <br>
&gt; First off, what you use depends on your application. I use
xAP<br>
Floorplan <br>
&gt; as my<br>
&gt; scripting engine and 'quick look' status display. Where that isn't
<br>
&gt; sufficient then<br>
&gt; I write code - anything from Pic to Perl to C# - but usually
to<br>
handle a <br>
&gt; device.<br>
&gt; <br>
&gt; If you are using, say, Floorplan, then you don't need an Active
X<br>
object <br>
&gt; - you<br>
&gt; can simply create scripts which act upon stimulii or timers.
There<br>
are some<br>
&gt; 'auto' scripting features too. As an example, I have a VBscript
which <br>
&gt; acts on<br>
&gt; presses of a single push switch to control lighting scenes via
DMX, each<br>
&gt; press calls up a new scene, usually building on the last, but
also<br>
starts a<br>
&gt; timer(10s). When the timer has expired the action of the switch
is<br>
to turn<br>
&gt; all the lights off. Also for bathrooms it controls the ventilation
fans <br>
&gt; via timers.<br>
&gt; Make sure you are on the latest version if you are using timers in
the <br>
&gt; scripts.<br>
&gt; <br>
&gt; I use global variables to hold the scene/switch state as well as
some <br>
&gt; house status flags.<br>
&gt; <br>
&gt; The embedded html doesn't let you change variables(yet) but there
are<br>
&gt; ways around it via 'ghost' devices and some scripting. You can use
it to<br>
&gt; embed a webcam display or some other non xAP/xPL status.<br>
&gt; <br>
&gt; I know James would like to get some examples on the pages so
keep<br>
&gt; an eye out.<br>
&gt; <br>
&gt; HTH,<br>
&gt; Lehane<br>
&gt; <br>
&gt; <br>
&gt; rleong1 wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; There are at least three xAP OCX's - one written
by
Patrick at<br>
&gt; &gt; &gt; <a
href="http://patrick.lidstone.net/haweb/html/dev_tools.html";>http://patrick.<wbr>lidstone.<wbr>net/haweb/<wbr>html/dev_<wbr>tools.html</a>
<br>
&gt; &gt; &lt;<a
href="http://patrick.lidstone.net/haweb/html/dev_tools.html";>http://patrick.<wbr>lidstone.<wbr>net/haweb/<wbr>html/dev_<wbr>tools.html</a>&gt;<br>
&gt; &gt; &gt; and a later one by James at<br>
&gt; &gt; &gt; <br>
&gt; &gt;<br>
<a
href="http://www.mi4.net/modules.php?name=Downloads&amp;d_op=viewdownload&amp;cid=21";>http://www.mi4.<wbr>net/modules.<wbr>php?name=<wbr>Downloads&amp;<wbr>d_op=viewdownloa<wbr>d&amp;cid=21</a>
<br>
&gt; &gt;<br>
&lt;<a
href="http://www.mi4.net/modules.php?name=Downloads&amp;d_op=viewdownload&amp;cid=21";>http://www.mi4.<wbr>net/modules.<wbr>php?name=<wbr>Downloads&amp;<wbr>d_op=viewdownloa<wbr>d&amp;cid=21</a>&gt;<br>
&gt; &gt; &gt; (xAP Intranet OCX v1.2).<br>
&gt; &gt; &gt; There's also one written by Michael McSharry -
available
via the<br>
&gt; &gt; &gt; HomeSeer/MCS forum.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Each of these is very different in how it
implements xAP
and some<br>
&gt; &gt; people<br>
&gt; &gt; &gt; have reported issues with Patricks' re memory
management
usage<br>
during<br>
&gt; &gt; &gt; high traffic so possibly I would recommend
James' which
I use<br>
within my<br>
&gt; &gt; &gt; own applications now. James's xAP OCX even
includes an
inbuilt web<br>
&gt; &gt; server .<br>
&gt; &gt;<br>
&gt; &gt; can i stick this into a script? ie:<br>
&gt; &gt; xap = new
ActiveXObject(<wbr>"???.???"<wbr>);<br>
&gt; &gt;<br>
&gt; &gt; if so how?<br>
&gt; &gt;<br>
&gt; <br>
&gt; <br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; You should also take a look at xAP FloorPlan too
as it
has much the<br>
&gt; &gt; same<br>
&gt; &gt; &gt; scripting capabilities as xPLHAL along with it's
own web
server<br>
based<br>
&gt; &gt; &gt; using AJAX so updates are real time - not
browser
refreshes and you<br>
&gt; &gt; can<br>
&gt; &gt; &gt; get at device status and embed your own html
too. If
you're more<br>
&gt; &gt; &gt; adventurous then xAP Desktop supports xAP
widgets and
scripting<br>
&gt; &gt; allowing<br>
&gt; &gt; &gt; for realtime updated floating windows with
transparency
(XP) &amp;<br>
&gt; &gt; &gt; positional control and click on/through
events.<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; i have downloaded floorplan. how can i embed my own html?
i
don't<br>
&gt; &gt; see this on the floorplan guide on mi4.biz.<br>
&gt; &gt;<br>
&gt; &gt; &gt; I'll leave the getting variable values into your
own asp
pages<br>
to J to<br>
&gt; &gt; &gt; tackle...<br>
&gt; &gt;<br>
&gt; &gt; what app contains variables that i can set? how can i
access
them<br>
&gt; &gt; from another app or script? in xplhal, i set up a script
to
react to a<br>
&gt; &gt; message and can set it w/ this:<br>
&gt; &gt; Sys.value("WEATHER_<wbr>DAY0") =
....<br>
&gt; &gt; and can access it from any script with:<br>
&gt; &gt; xyz =
Sys.value("WEATHER_<wbr>DAY0")<br>
&gt; &gt;<br>
&gt; &gt; thanks!<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Cheers Kevin<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; rleong1 wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; i use a home automation package that
doesn't
support xap but<br>
has the<br>
&gt; &gt; &gt; &gt; ability to use activex objects through
scripting.
is there an<br>
activex<br>
&gt; &gt; &gt; &gt; object for xap? something that i could
instantiate
in a script and<br>
&gt; &gt; &gt; &gt; make the software i use appear to be
xap enabled?
(ie it could<br>
&gt; &gt; &gt; &gt; receive messages directed to it, etc)
is this even
possible?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; one thing i like about xplhal is its
global
variables to store<br>
&gt; &gt; &gt; &gt; previous state, on which i can do
scripting, etc.
is there<br>
something<br>
&gt; &gt; &gt; &gt; similar in xap to xplhal's global
variables?
another feature i<br>
like<br>
&gt; &gt; &gt; &gt; is the ability to display those globals
in my own
asp page. would<br>
&gt; &gt; &gt; &gt; this be possible w/ xap?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; i bring a lot xap stuff across to xpl
so i'm
looking for a way<br>
to use<br>
&gt; &gt; &gt; &gt; xap directly instead.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; <br>
&gt; &gt;<br>
------------<wbr>---------<wbr>---------<wbr>---------<wbr>---------<wbr>---------<wbr>-<br>
&gt; &gt;<br>
&gt; &gt; No virus found in this incoming message.<br>
&gt; &gt; Checked by AVG Free Edition.<br>
&gt; &gt; Version: 7.1.405 / Virus Database: 268.11.5/425 - Release
Date:<br>
22/08/2006<br>
&gt; &gt;<br>
&gt;<br>
<br>
</p>
</div>

<!--End group email -->
<pre wrap="">
<hr size="4" width="90%">
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.5/426 - Release Date: 23/08/2006
</pre>
</blockquote>
<br>

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


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

<img src="http://geo.yahoo.com/serv?s=97476590&amp;grpId=9674343&amp;grpspId=1600007709&amp;msgId=2937&amp;stime=1156435928";
width="1" height="1"> <br>

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


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

<br><br>
<div style="width:500px; text-align:right; margin-bottom:1px;
color:#909090;">
<tt>SPONSORED LINKS</tt>
</div>
<table bgcolor=#e0ecee cellspacing="13"
cellpadding="0" width=500px>
<tr valign=top>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjMDJjZmo5BF9TAzk3NDc2NTkwBF9wAzEEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MzU5Mjg-?t=ms&k=Workflow+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Factory+automation&c=5&s=123&g=0&.sig=UMuHyfDcKCN-8Czn5DvjNg";>Workflow
automation</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjaW1mY2lyBF9TAzk3NDc2NTkwBF9wAzIEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MzU5Mjg-?t=ms&k=Automation+equipment&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Factory+automation&c=5&s=123&g=0&.sig=hRMkcOBBZ36mW9UeMEmhhg";>Automation
equipment</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJja29oZjltBF9TAzk3NDc2NTkwBF9wAzMEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MzU5Mjg-?t=ms&k=Industrial+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Factory+automation&c=5&s=123&g=0&.sig=2fnn4Mg42mPil-CoKXA_kg";>Industrial
automation</a></tt>
</td>
</tr>
<tr valign=top>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjMnRhaDdmBF9TAzk3NDc2NTkwBF9wAzQEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MzU5Mjg-?t=ms&k=Test+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Factory+automation&c=5&s=123&g=0&.sig=7d_lPdR-fmMQUamXeHQA_A";>Test
automation</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjYTJxcmozBF9TAzk3NDc2NTkwBF9wAzUEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MzU5Mjg-?t=ms&k=Factory+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Factory+automation&c=5&s=123&g=0&.sig=zHQZiPVzgLReC50UMD151Q";>Factory
automation</a></tt>
</td>
</tr>
</table>

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



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

<br>
<div style="text-align:center; color:#909090;
width:500px;">
<hr style="border-bottom:1px; width:500px;
text-align:left;">
<tt>YAHOO! GROUPS LINKS</tt>
</div>
<br>
<ul>
<tt><li type=square>&nbsp;Visit your group "<a
href="http://groups.yahoo.com/group/xap_automation";>xap_automation</a>"
on the web.<br>&nbsp;</tt>
<tt><li type=square>&nbsp;To unsubscribe from this group,
send an email to:<br>&nbsp;<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe";>xap_automation-unsubscribe@xxxxxxx</a><br>&nbsp;</tt>
<tt><li type=square>&nbsp;Your use of Yahoo! Groups is
subject to the <a href="http://docs.yahoo.com/info/terms/";>Yahoo!
Terms of Service</a>.</tt>
</ul>
<br>
<div style="text-align:center; color:#909090;
width:500px;">
<hr style="border-bottom:1px; width:500px;
text-align:left;">
</div>
<br>

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


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

--------------030101050100060704060201--



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.