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.

Programming a repeating timer

Featured Replies

Posted

Hello-

 

I'm trying to program a timer to control an exhaust fan. Here's what I would like to do.

 

Between the hours of 1:00 pm and 11:00 pm

turn on exhaust fan

start a 60 minute timer

at the end of the 60 minutes, turn off the exhaust fan

start a 20 minute timer

at the end of the 20 minute timer, turn the exhaust fan on

repeat until 11:00 pm.

 

Here is the program that I have so far.

If
        (
             From     1:00:00PM
             To      11:00:00PM (same day)
        )
 
Then
        Set 'Hardware / POE Fan' On
        Wait  1 hour 
        Set 'Hardware / POE Fan' Off
        Wait  20 minutes 
 
Else
        Set 'Hardware / POE Fan' Off

So the program works correctly, but only one time. I can't figure out how to make it repeat until the end time.

 

Thanks for any assistance.

Use the Repeat statement.

 

If
(
From 1:00:00PM
To 11:00:00PM (same day)
)

Then

Repeat 9 times
   Set 'Hardware / POE Fan' On
   Wait 1 hour
   Set 'Hardware / POE Fan' Off
   Wait 20 minutes

Else
Set 'Hardware / POE Fan' Off

  • Author

LeeG- Thanks. I'll give that a try.

Guest
This topic is now 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.