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 help for newbie please

Featured Replies

Posted

Hi, I am new at programming and I would like some help please.

 

I have an appliance linc (called Crawlspace Pump) that I want to reset (turn off then turn back on) every 3 hours during the day, and every 6 hours during the night.

 

Here's what I have done so far.

 

If

From Sunrise

To Sunset (same day)

Then

Set 'Crawlspace Pump' Off

Wait 5 seconds

Set 'Crawlspace Pump' On

Else

-No Actions

 

How do I program in a loop that will repeat the "then" commands every 3 hours?

 

Thanks!

"How do I program in a loop that will repeat the "then" commands every 3 hours?"

 

If

From Sunrise

To Sunset (same day)

Then

Repeat Every 3 hours

Set 'Crawlspace Pump' Off

Wait 5 seconds

Set 'Crawlspace Pump' On

Else

Set 'Crawlspace Pump' On

 

Because the Set 'Crawlspace Pump' On might not execute in the last cycle depending on the time between Sunrise and Sunset that same statement can be added to the Else clause. This insures when Sunset occurs the Pump is turned back On

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.