[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Time event xap msg generation
------=_NextPart_000_000F_01C59A0B.788A1440
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Thanks James,
With the pointers given by you and Kevin I have managed to script what I
need. Seems to work well (floorplan).
Being able to change the time on the script would be nice. Is that as
simple
as renaming the script file?
Cheers
Shane
-----Original Message-----
From: xap_automation@xxxxxxx
[mailto:xap_automation@xxxxxxx]On
Behalf Of James
Sent: Wednesday, 3 August 2005 11:04 a.m.
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] Time event xap msg generation
Shane,
As Kevin mentions, Floorplan is capable of timers, general purpose xAP
scripting and a rather nice web view of everything. He also mentioned that
the timers are basic and will be expanded in future release, this is
absolutely true but then maybe not!
Timers are scripts that can fire at a specified time and from the overview
that's all they do. However as each timer is a script you can add to the
script processes that narrow down what it would do and when. For example if
you want a light to come on as an alarm clock on weekdays only you may
think
you can't do this but by using a little process to a script you can easily
stop it firing at the weekends, eg:
Sub Main()
x=weekday(Date,vbMonday)
if x=6 or x=7 then exit sub
ret=xap.sendbscstate("ersp.x10.server:james.lights","on")
End Sub
so the timer will fire this script at it's preset time every day but only
on a weekday will it turn the lights on.
Future versions of Floorplan will alow a more point and click interface to
timers in a similar way to how Desktop deals with events but hopefully the
above will help expand what may at first glance be an oversimplistic timer.
hth
James
Shane Harrison wrote:
Excellent. Thanks for the pointers and putting me right. I'll take a
look.
Cheers
Shane
-----Original Message-----
From: xap_automation@xxxxxxx
[mailto:xap_automation@xxxxxxx]On
Behalf Of Kevin Hawkins
Sent: Tuesday, 2 August 2005 2:02 a.m.
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] Time event xap msg generation
Hi Shane, take another peek at the latest floorplan, it has a 'timers'
tab that allows things to happen at a particular time of day. Planned
in later versions I believe there will be even more timer options eg
day
of week or periodic events, but even now it does just what you need.
There is also no restriction to only handling BSC devices - you just
use
the 'raw xap' option, as this allows access to any xAP message schema
for processing. :-)
re Desktop - this is really as flexible as you wish but is more script
based - you can detect any 'event' to cause an action - it isn't
restricted to button presses or mouseovers or physical things like
that
- you can react to any incoming xAP message and do whatever you want -
this is how for example the TV listings and CallerID work- they watch
for the approriate incoming xAP message schema and their action is to
fade up/down the window and display the data.
xAP Desktop is capable of almost anything but takes a bit more
learning/effort as it is so powerful - the main key differences with
Desktop vs Floorplan is that Floorplans' display is via a web page
(Desktop is localised/realtime) . Floorplan also has some neat ways of
placing indicator graphics on a background (eg a floorplan with your
lights on it) - which makes it much easier to get things setup
quickly.
The scripting in Desktop is very much straight into VB whereas
Floorplan
can also do this but has some basic frontending to allow
triggers/responses in xAP - eg a capable BSC mapper is inbuilt (and
doesn't require any VB code to be written)
Kevin
but Shane Harrison wrote:
>Hi there,
>
>Just wondering what folks do to generate xAP (BSC in my case)
messages as a
>result of a certain time of day being reached.
>
>I notice there are some time of day xAP applications (send time
messages)
>but I don't know any application that can processes them and generate
other
>xAP messages - seemed to be used for displays I think.
>
>I looked at floorplan scripting but it only allows scripts to run on
BSC
>events being received.
>
>Looked at desktop and it seems to run scripts based on display
buttons being
>pushed etc.
>
>
>In my case I want to switch towel rails, hot water cylinders off and
on
>based on time or perhaps as a result of other non BSC xAP messages.
I
>realise I could build this into my controller xAP helper application
ie.
>listen to the broadcasts of time of day and react etc. This might
align
>with the "broadcast" philosophy of xAP but probably only
works well
for
>static arrangements. Where I want it to be dynamic and configurable
via
>some GUI this isn't going to work.
>
>Interested in philosophies and what people are doing in practice.
>
>Cheers and thanks
>Shane
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
----------------------------------------------------------------------------
--
YAHOO! GROUPS LINKS
a.. Visit your group "xap_automation" on the web.
b.. To unsubscribe from this group, send an email to:
xap_automation-unsubscribe@xxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
----------------------------------------------------------------------------
--
------=_NextPart_000_000F_01C59A0B.788A1440
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.2800.1400"
name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=389481510-05082005><FONT face=Arial
color=#0000ff size=2>Thanks
James,</FONT></SPAN></DIV>
<DIV><SPAN class=389481510-05082005><FONT face=Arial
color=#0000ff size=2>With
the pointers given by you and Kevin I have managed to script what I
need.
Seems to work well (floorplan).</FONT></SPAN></DIV>
<DIV><SPAN class=389481510-05082005><FONT face=Arial
color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=389481510-05082005><FONT face=Arial
color=#0000ff size=2>Being
able to change the time on the script would be nice. Is that as simple as
renaming the script file?</FONT></SPAN></DIV>
<DIV><SPAN class=389481510-05082005><FONT face=Arial
color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=389481510-05082005><FONT face=Arial
color=#0000ff
size=2>Cheers</FONT></SPAN></DIV>
<DIV><SPAN class=389481510-05082005><FONT face=Arial
color=#0000ff
size=2>Shane</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px
solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
xap_automation@xxxxxxx [mailto:xap_automation@xxxxxxx]<B>On
Behalf Of </B>James<BR><B>Sent:</B> Wednesday, 3
August 2005 11:04
a.m.<BR><B>To:</B>
xap_automation@xxxxxxx<BR><B>Subject:</B> Re:
[xap_automation] Time event xap msg
generation<BR><BR></FONT></DIV>Shane,<BR><BR>As
Kevin mentions, Floorplan is
capable of timers, general purpose xAP scripting and a rather nice web view
of
everything. He also mentioned that the timers are basic and will be
expanded
in future release, this is absolutely true but then maybe
not!<BR>Timers are
scripts that can fire at a specified time and from the overview that's all
they do. However as each timer is a script you can add to the script
processes
that narrow down what it would do and when. For example if you want a light
to
come on as an alarm clock on weekdays only you may think you can't do this
but
by using a little process to a script you can easily stop it firing at the
weekends, eg:<BR>Sub
Main()<BR>x=weekday(Date,vbMonday)<BR>if x=6 or x=7 then
exit
sub<BR>ret=xap.sendbscstate("ersp.x10.server:james.lights","on")<BR>End
Sub<BR>so the timer will fire this script at it's preset time every
day but
only on a weekday will it turn the lights on. <BR><BR>Future
versions of
Floorplan will alow a more point and click interface to timers in a similar
way to how Desktop deals with events but hopefully the above will help
expand
what may at first glance be an oversimplistic
timer.<BR>hth<BR>James<BR><BR>Shane Harrison wrote:
<BLOCKQUOTE cite=midMABBLBMLCIKPPLDHBBMOKEPHCEAA.shane@xxxxxxx
type="cite">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<DIV><SPAN class=390260607-02082005><FONT face=Arial
color=#0000ff
size=2>Excellent. Thanks for the pointers and putting me right. I'll
take a
look.</FONT></SPAN></DIV>
<DIV><SPAN
class=390260607-02082005></SPAN> </DIV>
<DIV><SPAN class=390260607-02082005><FONT face=Arial
color=#0000ff
size=2>Cheers</FONT></SPAN></DIV>
<DIV><SPAN class=390260607-02082005><FONT face=Arial
color=#0000ff
size=2>Shane</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255)
2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
<A
class=moz-txt-link-abbreviated
href="mailto:xap_automation@xxxxxxx">xap_automation@xxxxxxx</A>
[<A class=moz-txt-link-freetext
href="mailto:xap_automation@xxxxxxx">mailto:xap_automation@xxxxxxx</A>]<B>On
Behalf Of </B>Kevin Hawkins<BR><B>Sent:</B>
Tuesday, 2 August 2005 2:02
a.m.<BR><B>To:</B> <A class=moz-txt-link-abbreviated
href="mailto:xap_automation@xxxxxxx">xap_automation@xxxxxxx</A><BR><B>Subject:</B>
Re: [xap_automation] Time event xap msg
generation<BR><BR></FONT></DIV><TT>Hi Shane,
take another peek at the
latest floorplan, it has a 'timers' <BR>tab that allows things to
happen
at a particular time of day. Planned <BR>in later versions
I believe
there will be even more timer options eg day <BR>of week or periodic
events, but even now it does just what you need.
<BR>There is
also no restriction to only handling BSC devices - you just use
<BR>the 'raw xap' option, as this allows access to any xAP
message
schema <BR>for processing.
:-)<BR><BR>re Desktop - this is
really as flexible as you wish but is more script <BR>based - you can
detect any 'event' to cause an action - it isn't <BR>restricted to
button
presses or mouseovers or physical things like that <BR>- you can
react to
any incoming xAP message and do whatever you want - <BR>this is how
for
example the TV listings and CallerID work- they watch
<BR>for the
approriate incoming xAP message schema and their action is to
<BR>fade
up/down the window and display the data.<BR><BR>xAP Desktop is
capable of
almost anything but takes a bit more <BR>learning/effort as it is so
powerful - the main key differences with <BR>Desktop vs Floorplan is
that
Floorplans' display is via a web page <BR>(Desktop is
localised/realtime)
. Floorplan also has some neat ways of <BR>placing indicator graphics
on a
background (eg a floorplan with your <BR>lights on it) - which makes
it
much easier to get things setup quickly. <BR>The scripting
in
Desktop is very much straight into VB whereas Floorplan <BR>can also
do
this but has some basic frontending to allow <BR>triggers/responses
in xAP
- eg a capable BSC mapper is inbuilt (and <BR>doesn't require any VB
code
to be written)<BR><BR>Kevin<BR><BR><BR>but
Shane Harrison
wrote:<BR><BR>>Hi
there,<BR>><BR>>Just wondering what folks do to
generate xAP (BSC in my case) messages as a<BR>>result of a
certain
time of day being reached.<BR>><BR>>I notice
there are some time of
day xAP applications (send time messages)<BR>>but I don't know
any
application that can processes them and generate other<BR>>xAP
messages
- seemed to be used for displays I
think.<BR>><BR>>I looked at
floorplan scripting but it only allows scripts to run on
BSC<BR>>events
being received.<BR>><BR>>Looked at desktop and it
seems to run
scripts based on display buttons being<BR>>pushed
etc.<BR>><BR>><BR>>In my case I want
to switch towel rails, hot
water cylinders off and on<BR>>based on time or perhaps as a
result of
other non BSC xAP messages. I<BR>>realise I could
build this into
my controller xAP helper application ie.<BR>>listen to the
broadcasts
of time of day and react etc. This might
align<BR>>with the
"broadcast" philosophy of xAP but probably only works well
for<BR>>static arrangements. Where I want it to be
dynamic and
configurable via<BR>>some GUI this isn't going to
work.<BR>><BR>>Interested in philosophies and
what people are doing
in practice.<BR>><BR>>Cheers and
thanks<BR>>Shane<BR>><BR>><BR>><BR>><BR>>
<BR>>Yahoo!
Groups
Links<BR>><BR>><BR>><BR>>
<BR>><BR>><BR>><BR>><BR>><BR>>
<BR>><BR><BR><BR></TT></BLOCKQUOTE></BLOCKQUOTE><BR>
<!-- **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> Visit your group "<a
href="http://groups.yahoo.com/group/xap_automation">xap_automation</a>"
on the web.<br> </tt>
<tt><li type=square> To unsubscribe from this group,
send an email to:<br> <a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe">xap_automation-unsubscribe@xxxxxxx</a><br> </tt>
<tt><li type=square> 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** -->
</BODY></HTML>
------=_NextPart_000_000F_01C59A0B.788A1440--
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|