From: Stu W. <st...@th...> - 2006-11-30 13:18:43
|
Declang, In your code directory, make a new file. No needed headers, just make sure it ends with .pl and it should work. It's that simple! And addictive :-) Once you get a few modules working, you'll starting looking into more and more complex things. Or maybe that's just me. Stu declang wrote: > if (time_now '7:30 am' and $Weekday) > { > set $tims_bedroom_light ON; > } > > This will turn on the light. In your case, you would use '30%' instead of > the constant ON. > > OK, I understand that logic alright, but where do I put these lines ? > > I guess in a new file in my code directory ? > > I'm assuming any files in my code directory will be read at startup ? > Does it matter what the files are called ? Is there any special header info > I need to include ? > > As you can see, I'm a bit lost, but thanks for explaining. > > Cheers, > Declan > > > |