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: Time event xap msg generation



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

I do this on my setup at home too. Assuming xAP Weather is setup with
your correct lat long.
In Floorplan>config?>scripts>addnew  and call it sunset and enter
the
below adjusted as needed:

Sub Main()
x=xap.getvalue("Time Of Day")
if lcase(x)="night" then
x=xap.sendbscstate("ersp.x10.server:hall.lights","on")
x=xap.sendbscstate("ersp.x10.server:dining.lights","on")
x=xap.sendbscstate("ersp.x10.server:sitting.lights","on")
end if
End Sub



In Floorplan >config >Raw xAP > add new
Alias=Time of Day
Source=mi4.weather.XXXX     (where XXX is the feed in xAP Weather)
Class=weather.report
Section=time
Item=tod
Script to run on change=Sunset

That's it!

hth

james
Jon Whiten wrote:

>I hadn't noticed that.  Will check it out!
>;oj
>
>
>On 8/8/05, Kevin Hawkins <lists@xxxxxxx> wrote:
>
><SNIP>... James' xAP weather application already  sends the
sunrise/sunset
>
>
>>times (for your specific location) if you want to get at them in
xAP....
>>you could test the value in say Floorplan and then issue a specific
dusk
>>or dawn message too.
>>
>>
>>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>


--------------070709020503000002040003
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 do this on my setup at home too. Assuming xAP Weather is setup with
your correct lat long.<br>
In Floorplan&gt;config?&gt;scripts&gt;addnew&nbsp; and call
it sunset and
enter the below adjusted as needed:<br>
<br>
Sub Main()<br>
x=xap.getvalue("Time Of Day")<br>
if lcase(x)="night" then<br>
&nbsp;&nbsp;&nbsp;
x=xap.sendbscstate("ersp.x10.server:hall.lights","on")<br>
&nbsp;&nbsp;&nbsp;
x=xap.sendbscstate("ersp.x10.server:dining.lights","on")<br>
&nbsp;&nbsp;&nbsp;
x=xap.sendbscstate("ersp.x10.server:sitting.lights","on")<br>
end if<br>
End Sub<br>
<br>
<br>
<br>
In Floorplan &gt;config &gt;Raw xAP &gt; add new<br>
Alias=Time of Day<br>
Source=mi4.weather.XXXX&nbsp;&nbsp;&nbsp;&nbsp; (where XXX
is the feed in xAP Weather)<br>
Class=weather.report<br>
Section=time<br>
Item=tod<br>
Script to run on change=Sunset<br>
<br>
That's it!<br>
<br>
hth<br>
<br>
james<br>
Jon Whiten wrote:
<blockquote cite="middaf1e09b0508080719752bd86@xxxxxxx"
type="cite">
<pre wrap="">I hadn't noticed that.  Will check it out!
;oj


On 8/8/05, Kevin Hawkins <a class="moz-txt-link-rfc2396E"
href="mailto:lists@xxxxxxx";>&lt;lists@xxxxxxx&gt;</a>
wrote:

&lt;SNIP&gt;... James' xAP weather application already  sends the
sunrise/sunset
</pre>
<blockquote type="cite">
<pre wrap="">times (for your specific location) if you want
to get at them in xAP....
you could test the value in say Floorplan and then issue a specific dusk
or dawn message too.

</pre>
</blockquote>
<pre wrap=""><!---->


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.