Jump to content

Best way to manage programs


Recommended Posts

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.

 

Link to comment

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.
 
 

Link to comment

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.

Link to comment

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.

Link to comment

Archived

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


×
×
  • Create New...