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:
parse ECS events from your .CFG files
Scott Reston
Wed, 05 Jan 2000 14:22:32 -0500

i wrote a quick little script in perl to pull events and their associated items out
of the example.cfg to facilitate adding new events to my config for ECS. 
thought i'd pass it along to anyone interested. let me know if you have any problems
with it... i've only tested it on my own config.

http://www.indelible-blue.com/info/ecsparse.bat

you'll need perl for windows. if you don't have it, you can grab it at http://www.activestate.com.



mark: i made some assumptions about the layout of ECS.CFG - does this sound right:

event lines will always start with 
|Event:(followed by a tab)(Name of event)

item lines will always start with
|Item:(NO TAB)(Name of item)

if there are enough of you out there using perl, it'd be a simple thing for me to add
standard file-open dialog box to choose the CFG file for anyone that has 
installed the win32::gui package (installing packages is *really* easy)

if you find the script useful, let me know... 



scott reston
ih8gates@concentric.net
http://www.indelible-blue.com/meetib/scott/





  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
.