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.

Need Help With A Program

Featured Replies

Posted

I want to press a kpl button (g), wait 5 minutes and if a door sensor is on send a notification. It appears I need a second "if statement" and I can find no way to do that.

 

If

g is on

Then

wait 5 minutes

?????

 

I have the notification process set up and can activate it w/o the wait step so I know that part of the process works.

 

Thanks for your help.

 

 

 

If

control g is on

Then

wait 5 minutes

run program 2

 

diasabled program 2 (runs only if called from another program)

If

sense door sensor is on

Why not

If

Control g is on

And door sensor is on

 

Then

Wait 5 minutes

Send notification

 

Now if you want the program to trigger if the door sensor is turned on after G then my program will not work. you would need to use status is on for G.

Why not

If

Control g is on

And door sensor is on

 

Then

Wait 5 minutes

Send notification

 

Because this, in my mind, does not do what you are asking. 

 

You said you wanted a program that, for a period of five minutes after G is on, watch for a door sensor and, if triggered, send a notification (without mentioning the need for a delayed notification).  Your program will trigger a notification (but the notification will not be sent until 5 minutes after the fact) anytime the door is triggered while G is ON (regardless of whether G has been on for less than five minutes.

 

This may be what you want in your mind, but I believe Stusviews more accurately reflects what you asked for in your original post.

 

Because this, in my mind, does not do what you are asking. 

 

You said you wanted a program that, for a period of five minutes after G is on, watch for a door sensor and, if triggered, send a notification (without mentioning the need for a delayed notification).  Your program will trigger a notification (but the notification will not be sent until 5 minutes after the fact) anytime the door is triggered while G is ON (regardless of whether G has been on for less than five minutes.

 

This may be what you want in your mind, but I believe Stusviews more accurately reflects what you asked for in your original post.

 

Oberkc, I'm not the OP, just was throwing in my two cents.   What he wrote was:

"I want to press a kpl button (g), wait 5 minutes and if a door sensor is on send a notification"

That is what the program I wrote does.  He did not write "watch for a door sensor, and, if triggered."   

Another instance of the need for the OP to specify exactly what he wants. 

Eric

EricK, "I want to press a kpl button (g), wait 5 minutes and if a door sensor is on send a notification"

 

Thus, if 5 minutes have elapsed after pressing the button and the sensor is on, then send the notification. That's not the same as "if both devices are on send a notification after 5 minutes has elapsed."

 

“ I know you think you understand what you thought I said but I'm not sure you realize that what you heard is not what I meant”

Edited by stusviews

Thanks Stu, I got it now.

Oberkc, I'm not the OP, just was throwing in my two cents.

 

Sorry.  I was in too much of a hurry.

 

Perhaps when smokegrub returns, he can clarify which of us is confused. 

  • Author

Stusviews:

 

Your suggestion worked perfectly. Also, I learned a couple of things that will prove valiable in the future. !) Using a program within a program and 2) A program that is disabled will run when used in another program. My thanks to those of you who provide such tremendous help.

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.