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?



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

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>
> > 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>
> > (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
>


--------------090102020401080605090504
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">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">


I'll jump in with some answers...<br>
<br>
First off, what you use depends on your application. I use xAP
Floorplan as my<br>
scripting engine and 'quick look' status display. Where that isn't
sufficient then<br>
I write code - anything from Pic to Perl to C# - but usually to handle
a device.<br>
<br>
If you are using, say, Floorplan, then you don't need an Active X
object - you<br>
can simply create scripts which act upon stimulii or timers. There are
some<br>
'auto' scripting features too. As an example, I have a VBscript which
acts on<br>
presses of a single push switch to control lighting scenes via DMX,
each<br>
press calls up a new scene, usually building on the last, but also
starts a <br>
timer(10s). When the timer has expired the action of the switch is to
turn<br>
all the lights off. Also for bathrooms it controls the ventilation fans
via timers.<br>
Make sure you are on the latest version if you are using timers in the
scripts.<br>
<br>
I use global variables to hold the scene/switch state as well as some
house status flags.<br>
<br>
The embedded html doesn't let you change variables(yet) but there
are<br>
ways around it via 'ghost' devices and some scripting. You can use it
to<br>
embed a webcam display or some other non xAP/xPL status.<br>
<br>
I know James would like to get some examples on the pages so keep<br>
an eye out.<br>
<br>
HTH,<br>
Lehane<br>
<br>
<br>
rleong1 wrote:
<blockquote cite="midecj0sb+jmiv@xxxxxxx"
type="cite"><!-- Network content -->

<div id="ygrp-text">
<p>&gt;<br>
&gt; Hi,<br>
&gt; <br>
&gt; There are at least three xAP OCX's - one written by Patrick
at<br>
&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; and a later one by James at<br>
&gt; <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; (xAP Intranet OCX v1.2).<br>
&gt; There's also one written by Michael McSharry - available via the
<br>
&gt; HomeSeer/MCS forum.<br>
&gt; <br>
&gt; Each of these is very different in how it implements xAP and
some<br>
people <br>
&gt; have reported issues with Patricks' re memory management usage
during <br>
&gt; high traffic so possibly I would recommend James' which I use
within my <br>
&gt; own applications now. James's xAP OCX even includes an inbuilt
web<br>
server .<br>
<br>
can i stick this into a script? ie:<br>
xap = new
ActiveXObject(<wbr>"???.???"<wbr>);<br>
<br>
if so how?<br>
<br>
</p>
</div>
</div>
</div>
</blockquote>
<br>
<br>
<blockquote cite="midecj0sb+jmiv@xxxxxxx"
type="cite">
<div id="ygrp-mlmsg" style="width: 655px; position:
relative;">
<div id="ygrp-msg"
style="padding: 0pt 15px 0pt 0pt; width: 490px; float: left; z-index:
1;">
<div id="ygrp-text">
<p>&gt; <br>
&gt; You should also take a look at xAP FloorPlan too as it has much
the<br>
same <br>
&gt; scripting capabilities as xPLHAL along with it's own web server
based <br>
&gt; using AJAX so updates are real time - not browser refreshes and
you<br>
can <br>
&gt; get at device status and embed your own html too. If you're more
<br>
&gt; adventurous then xAP Desktop supports xAP widgets and
scripting<br>
allowing <br>
&gt; for realtime updated floating windows with transparency (XP)
&amp;
<br>
&gt; positional control and click on/through events. <br>
&gt; <br>
<br>
i have downloaded floorplan. how can i embed my own html? i don't<br>
see this on the floorplan guide on mi4.biz.<br>
<br>
&gt; I'll leave the getting variable values into your own asp pages to
J to <br>
&gt; tackle...<br>
<br>
what app contains variables that i can set? how can i access them<br>
from another app or script? in xplhal, i set up a script to react to
a<br>
message and can set it w/ this:<br>
Sys.value("WEATHER_<wbr>DAY0") = ....<br>
and can access it from any script with:<br>
xyz = Sys.value("WEATHER_<wbr>DAY0")<br>
<br>
thanks!<br>
<br>
&gt; <br>
&gt; Cheers Kevin<br>
&gt; <br>
&gt; <br>
&gt; rleong1 wrote:<br>
&gt; &gt;<br>
&gt; &gt; i use a home automation package that doesn't support xap
but
has the<br>
&gt; &gt; ability to use activex objects through scripting. is
there an
activex<br>
&gt; &gt; object for xap? something that i could instantiate in a
script and<br>
&gt; &gt; make the software i use appear to be xap enabled? (ie it
could<br>
&gt; &gt; receive messages directed to it, etc) is this even
possible?<br>
&gt; &gt;<br>
&gt; &gt; one thing i like about xplhal is its global variables to
store<br>
&gt; &gt; previous state, on which i can do scripting, etc. is
there
something<br>
&gt; &gt; similar in xap to xplhal's global variables? another
feature
i like<br>
&gt; &gt; is the ability to display those globals in my own asp
page.
would<br>
&gt; &gt; this be possible w/ xap?<br>
&gt; &gt;<br>
&gt; &gt; i bring a lot xap stuff across to xpl so i'm looking for
a
way to use<br>
&gt; &gt; xap directly instead.<br>
&gt; &gt;<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/425 - Release Date: 22/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=2933&amp;stime=1156406622";
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=X3oDMTJjZjY2anFwBF9TAzk3NDc2NTkwBF9wAzEEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MDY2MjI-?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=X3oDMTJjNTdxdXNzBF9TAzk3NDc2NTkwBF9wAzIEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MDY2MjI-?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=X3oDMTJjbzBrbWRjBF9TAzk3NDc2NTkwBF9wAzMEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MDY2MjI-?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=X3oDMTJjczM5b3Z0BF9TAzk3NDc2NTkwBF9wAzQEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MDY2MjI-?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=X3oDMTJjcDZsdmYxBF9TAzk3NDc2NTkwBF9wAzUEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE2MDAwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNTY0MDY2MjI-?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>

--------------090102020401080605090504--



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.