ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ECS] EDM help...
Don Stephens
Fri, 22 Sep 2000 20:23:23 -0700

A.J.

This looks like the hot ticket.

Thanks:

Don

----- Original Message -----
From: "A.J. Griglak" <aj@griglak.com>
To: <ecs-list@netbloc.com>
Sent: Friday, September 22, 2000 5:55 AM
Subject: RE: [ECS] EDM help...


> I would recommend another web site for your weather reports.  It's much
> easier to parse if it's easier to read in the first place.  I tried the
> national weather service for a while, but there .... periods were a pain
in
> the ass.  I looked at a couple of different other web sited, but I picked
> www.weather.com, which you can input your zip code, and then get a direct
> link to your personalized weather.  Mine is:
> www.weather.com/weather/us/zips/36hr/08831.html.  (You can simply change
the
> zip code to match yours.  I use the /S command in WPDL to strip out the
HTML
> stuff, and here is my EDM script:
>
> bell
> r weather.htm
> CRLF0
> f National
> d-
> it
> c EDT
> f About~Detailed
> d+
> t
> CA/ ... ', '
> c/.' ' ..
> b
> af wx_end.txt
> w wx_full.txt
> g:1
> f Tonight:
> f y:
> d+
> w wx_today.txt
> q
>
> The CRLF0 is necessary since the new version of WPDL came out, without it,
> the entire file would be on one line.  The script writes two files,
wx_full
> which includes the five day forecast, and wx_today, which is todays
weather
> only.  This is read every morning automatically as we wake.  One little
> trick that works great is that after writing the full report, it looks for
> Tonight:, and then looks for 'y:', which is the next day - All days of the
> week end in y, and they always use the colon.  Occasionally (once a month)
> this strategy doesn't work.
>
>
> I also use the same site to get current conditions - It's a poor man's
> weather station!
>
> I WPDL from www.weather.com/weather/us/zips/08831.html, and then parse as
> follows:
>
> bell
> r wx.htm
> f emp:
> d-
> d
> it
> t
> c & ' '
> c '
> c 'deg;F degrees
> g:1
> d+
> t
> it
> rtr
> t
> w wx_temp.txt
>
> d/
> r wx.htm
> f dex:
> d-
> d
> t
> c & ' '
> c '
> c 'deg;F degrees
> g:1
> d+
> t
> it
> t
> w wx_heatindex.txt
>
> d/
> r wx.htm
> f ity:
> d-
> d
> td-
> c & ' '
> c '
> g:1
> d+
> t
> it
> t
> w wx_humidity.txt
>
> d/
> r wx.htm
> f EASTERN
> DBL
> 5WD
> d-
> g:1
> d+
> g:0
> c Eastern
> c Daylight
> c Time
> g:0
> it
> RTR
> w wx_updated.txt
>
> d/
> r wx.htm
> f Time
> d-
> d
> t
> g:1
> d+
> t
> it
> t
> w wx_condition.txt
>
> q
>
>
> This writes out several text files which hold the current conditions,
temp,
> humidity, etc.  This is updated 4 times an hour, and logged once an hour.
I
> also read the temp and humidity into number items in ECS, and can do If
then
> statements based on the temperature, eg.  If temperature is greater than
80,
> and no one is home, turn on the AC for a couple minutes each hour - so
it's
> not so hot when we get home.
>
> Hope this helps, and as I said before, I plan on putting up a web site
> detailing all this ECS stuff that I've accomplished.  Stay tuned....
>
> -=A.J.
>
>
> -----Original Message-----
> From: Don Stephens [mailto:donstephens@101freeway.com]
> Sent: Friday, September 22, 2000 12:54 AM
> To: ECS List
> Subject: [ECS] EDM help...
>
>
> I'm trying to get my weather report off the ground and would really
> appreciate some help.
>
> The following is my EDM script....
>
>


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.