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.

Program that sends notification after a Repeat command

Featured Replies

Posted

I must preface this post by I am new to the ISY-99 and it's programing...and so far I am very pleased with capabilities and still learning what it can do.

 

I have read through some of the how to's and can't find what I am looking for. I have read through the "state machine post by Ergodic back in 2009" and still trying to make sense of all of that, there is a lot to wade through.

 

The problem I am having is sending a Notification after Repeat operation. I do not want to send the notification after each repeat iteration but once the repeat is complete. Basically I want to run send and email at the start of the process, turn on a pump 15 min. then off for 1 hour and do this for 24 hours, at the end of the 24 repeats, send an email....Below is the code. Any help or advice would be great.

 

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Send Notification to 'Default' content 'RainCycle Start 24hr'
       Repeat 24 times
          Set 'appLincPool' On
          Wait  15 minutes 
          Set 'appLincPool' Off
          Wait  1 hour 

Else
  - No Actions - (To add one, press 'Action')

I'm new to this too so this may be totally off the wall.

 

Create a second program

 

If

- no conditions

Then

Run program 'xxxxx' (Then)

Notify ....................

Else

- No Actions

 

 

Then run the second program

  • Author

I tried having one program call another program, what seems to happen is it calls the pgm and then executes the next statement, it does not wait for the other pgm to complete and come back.

The problem I am having is sending a Notification after Repeat operation.

 

The simplest way to do this is to add a Repeat 1 after your other Repeat, as follows:

 

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Send Notification to 'Default' content 'RainCycle Start 24hr'
       Repeat 24 times
          Set 'appLincPool' On
          Wait  15 minutes 
          Set 'appLincPool' Off
          Wait  1 hour 
       Repeat 1 time
          Send Notification to 'Default' content 'RainCycle Start 24hr'
Else
  - No Actions - (To add one, press 'Action')

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.