Jump to content

Best way to manage programs


Recommended Posts

Posted

I want to use the ISY to control 5 landscape pumps.

 

So, for the Spring & Fall, I wrote a set of programs that will exercise the pumps periodically each day.

 

However, for the hottest of summer or to prevent freezing, I need a completely different set of programs.

 

The only way I can figure out so far is to create a set of programs for a time of year, then back them up to a file.  Clear the programs out, then start over with a new set for different conditions, then backing them up to a new name.

 

By restoring the correct backup, I get the set of programs that are right for those conditions.

 

1. Is there a more elegant way to do this?

 

2. I assume that all I need to do is do an "all stop" to all the pumps before I restore from the backup and everything will start over fresh with the new programs. Correct?

 

Thanks.

 

Posted

Have you considered putting each set of programs in its own folder and then disabling the folders you don't want to run?

 

Also, could you base each folder on outside temperature?

 

Gary Funk

Merry Christmas

Posted

Placing the seasonal programs in folder is a good idea. It's not possible to disable a program folder, but it's easy to created a condition that's true or false:

 

Folder Conditions for 'Spring'
If
        $iRun_Spring is 1
 
Then
   Allow the programs in this folder to run.
 
 

Posted

Even easier is to create one state variable for all seasons, then change only the variable:

 

Folder Conditions for 'Spring'
If
        $sRun_Season is 1
 
Then
   Allow the programs in this folder to run.

 

Folder Conditions for 'Fall'
If
        $sRun_Season is 2
 
Then
   Allow the programs in this folder to run.
 

etc.

 

then add a program to change the variable:

 

Spring
If
        From    Sunrise on date_to_start
        To      Sunrise on date_to_end
 
Then
        $sRun_Season  = 1
 
Else
   - No Actions - (To add one, press 'Action')
 
Fall
If
        From    Sunrise on date_to_start
        To      Sunrise on date_to_end
 
Then
        $sRun_Season  = 2
 
Else
   - No Actions - (To add one, press 'Action')

 

etc.

Posted

Folder conditions, like program conditions, will not trigger on an Integer variable.

 

The variables must be state type variables or nothing will happen.

I just tested this to be true again.

Posted

Folder conditions, like program conditions, will not trigger on an Integer variable.

 

The variables must be state type variables or nothing will happen.

I just tested this to be true again.

 

Thanks for the reminder. I corrected my post to reflect the correction.

Archived

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

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...