Direction of travel


#1

New to Webcore, no programming back ground

I have a long driveway, and would like to use multiple motion sensor to get visitor’s direction of travel, to announce “Visitor arrived” on Sonos Speaker, and turn on a light for 2 minites only between sunset and sunrise

I just can not find where I can set up the lights between sunrise and sunset.

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)


#2

There are a few ways to do this.


#3

Here is what I did.
I am not sure if this is the best way to do it?

I used Flash (level) to turn on the lights for 2 minutes and turn off.
but how can I make it so that it will only turn on between sunrise and sunset?


#4

When you are looking at your piston (not editing it)…
Green%20and%20Red%20Webcore%20Photos

click the GREEN camera to take a photo of your piston and then post it.


#5

I would add as your VERY FIRST IF the TIME condition that I suggested above. You can then limit the time that your piston runs to any time frame you like.


#6

But I want the piston to run all day, just to turn on the lights between sunrise and sunset.
if not between those times, the piston will still run, but just not turning on the lights.


#7

I see. Then put your FLASH instruction into an IF condition like I have suggested above.

IF TIME is between NOON and MIDNIGHT
THEN
Do
Flash light
END IF

#8

ok, can I use routine? is this mean that only when this routine is running and it will run the IF?


#9

I would not use Routine. I would use Time.


#10

Ok, Great, let me give it a try!
Thank you so much!! :grin:


#11


#12

I got it to work!
thank you !!!


#13

You are welcome :sunglasses:


#14

there is some glitch on the piston.

Motion 1 and 7 is IN direction.
Motion 2 and 8 is out direction.

if IN and OUT motion is triggered within 30 seconds, it worked perfectly. on both direction.

but if only one motion is triggered, eg IN is triggered and stay triggered, and 30 seconds later, without any other motion triggered, it will execute the IN direction, vice versa.

so I think is the follow by problem,
please help
thanks.


#15

Here is the detail of the problem!