From: Letcher R. <le...@co...> - 2002-04-05 15:54:05
|
Alan It looks like you are closing "(time_greater_than "$Time_Sunset + 0:15"}" with a right curly-brace instead of a right paren. Letcher > -----Original Message----- > From: mis...@li... > [mailto:mis...@li...]On Behalf Of Alan > Womack > Sent: Friday, April 05, 2002 07:27 > To: Majordomo leben.com > Subject: [misterhouse-users] Syntax error: what am I doing wrong? > > > This tiny little module will not make it past a code reload in mh. > > > =begin > Garage flood light control module > written: Thursday April 04, 2002 > modified: > > Purpose: Control lighting mounted, in, or related to garage > via X10 control in misterhouse. > Current lights: External flood light connected to > lamp module as G7 > future plans to put a flor. compatable switch on > back wall G1 > > =cut > > if (time_greater_than "$Time_Sunset + 0:15"} { > set $outside_garage_light '40%'; > print_log "Garage light on due to sunset"; > } > > Tells me I have an error around a semi colon someplace: > > 04/05/2002 07:21:27 AM Reading code files in ./../code/Alan > 04/05/2002 07:21:27 AM Evaluating user code > > Error in user code: > 04/05/2002 07:21:27 AM: syntax error at (eval 96) line 782, near "; > =" > Line 777: sub garage_loopcode { > Line 778: if ($Run_Members{'garage'} > 10) { # Check for too > many eval error > s > Line 779: display('Multiple eval errors in garage. Code > was disabled', > 0); $Run_Members{'garage'} = 0; return; > Line 780: } > Line 781: my $benchmark_tickcount = &get_tickcount if > $Benchmark_Members{on_ > off_flag}; > Line 782: =begin > Line 783: Garage flood light control module > Line 784: written: Thursday April 04, 2002 > Line 785: modified: > Line 786: > Line 787: Purpose: Control lighting mounted, in, or related > to garage via > X10 control in misterhouse. > > > > Epson Inkjet Printer FAQ: http://welcome.to/epson-inkjet > > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id65 > > |