Simple light timer help please


#1

HI,
I’m new to webCoRE and still trying to figure things out.

Is there a simpler way to do a basic timer than this one?
execute
if
Time happens daily at xx:xx:xx PM
then
with
Light Switch
do
Turn on;
Wait “x” minutes;
Turn off;
end with;
else

end if;

end execute;

Seems like there must be a way to do this with less code.

Any assistance would be greatly appreciated.

Brian


#2

Looks right to me. It just looks like a handful for readability I think.


#3

I don’t think it can get any simpler than at this time turn on wait x minutes and turn off.


#4

webCoRE looks like a busy code for readability and ability for both programmers and non-programmers to easily engage. Or at least that’s my theory. :slight_smile:


#5

moved thread to Piston Help & Design category.