Executing a piston twice/day

time

#1

I have a piston that executes once/day at 7am. Can I have it execute at 7am and 8am or do I have to have two separate pistons?

Paul


#2

Post a snapshot of the piston and you’ll get more accurate answers.


#3

A snapshot would be helpful. Off the top of my head, here are my thoughts:

-This is possible if you use an if time= statement (NOT ‘every day at 7 am’)

I think the construct might be something like this:

If time=7 am then
    do 7 am specific stuff [or nothing]
end if
if time=8 am then
    do 8 am specific stuff [or nothing]
end if
do everything you want repeated at both times

Again, context is important but for your generic question, this is one possible solution.


#4

Sorry for not including a snapshot. Here is an example of the piston that works but how would I modify this to execute twice a day at different times?


#5

Try this, I have not tried two time triggers in one IF before :slight_smile:

image


#6

Thanks for this. I didn’t realize I could click on the ‘and’ operator and change the logical expression to an ‘or’. I made the change and it works perfectly.

Paul