Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Will a long-running program be stopped by a program change.

Featured Replies

I have a program that turns on the water in my birdbath for 10 seconds, hourly. 

 

Daily Bird Bath Auto-fill

 

If

        Time is 6:00:00AM

 Then

        Repeat 13 times

           Send X10 'J2/On (3)'

           Wait 10 seconds

           Send X10 'J2/Off (11)'

           Wait 59 minutes and 49 seconds

 Else

        Send X10 'J2/On (3)'

        Wait 10 seconds

        Send X10 'J2/Off (11)'

 

If I make a change to that program during the 13 hour cycle, will that cycle be interrupted?

 

Thanks,

JLOB

 

 

 

I have a program that turns on the water in my birdbath for 10 seconds, hourly. 

 

Daily Bird Bath Auto-fill

 

If

        Time is 6:00:00AM

 Then

        Repeat 13 times

           Send X10 'J2/On (3)'

           Wait 10 seconds

           Send X10 'J2/Off (11)'

           Wait 59 minutes and 49 seconds

 Else

        Send X10 'J2/On (3)'

        Wait 10 seconds

        Send X10 'J2/Off (11)'

 

If I make a change to that program during the 13 hour cycle, will that cycle be interrupted?

 

Thanks,

JLOB.

 

Whatever is in the "then" clause at 6:00 is what will be executed. If you make changes in the "then" clause the program could be interrupted and will start again at the next 6:00 am cycle unless you manually run the "then" clause after you make changes.  What change did you want to make?

  • Author

Whatever is in the "then" clause at 6:00 is what will be executed. If you make changes in the "then" clause the program could be interrupted and will start again at the next 6:00 am cycle unless you manually run the "then" clause after you make changes.  What change did you want to make?

Actually I just wanted to change the start time.  Guess it'll be ok.  Thanks.

J.

  • 2 weeks later...
  • Author

What is the purpose of the "else" clause?  Perhaps you have a different program that calls the else clause of this program, but as it sits here, the else clause has no trigger.

Bingo.  Another program triggers the water for a one-time 10 seconds.

JLOB

What is the purpose of the "else" clause?  Perhaps you have a different program that calls the else clause of this program, but as it sits here, the else clause has no trigger.

I don't understand this. If the time is not 6am, the else clause should be executed. But it sounds like this is not the case.

I don't understand this. If the time is not 6am, the else clause should be executed. But it sounds like this is not the case.

At 6 am the "then" clause runs.

 

The following will run the else clause at 6am

 

If

        Time is not 6:00:00AM

I don't understand this. If the time is not 6am, the else clause should be executed. But it sounds like this is not the case.

 

That's because your original statement indicates what to do when it's 6 am. It doesn't state what to do if the time is not 6 am. Nothing is assumed. That's why apostolakisl's suggestion needs to be added.

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.