Add Program
add_programAdd a watering program to an OpenSprinkler controller by choosing weekly days or interval frequency, then set stations, start time, duration, and weather adjustment.
Instructions
Add a new watering program with weekly or interval scheduling
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Program name | |
| enabled | Yes | Whether the program is enabled | |
| station_ids | Yes | Station IDs (0-based) to include | |
| use_weather | Yes | Whether to apply weather adjustment to this program | |
| days_of_week | No | Required for weekly type: days to run (e.g. ["monday", "thursday"]) | |
| interval_days | No | Required for interval type: run every N days | |
| schedule_type | Yes | 'weekly': run on specific days of the week; 'interval': run every N days | |
| duration_seconds | Yes | Duration in seconds for each included station (1-64800) | |
| start_time_minutes | Yes | Start time in minutes from midnight (0–1439, e.g. 360 = 6:00 AM) | |
| interval_start_offset | No | For interval type: starting day offset, must be less than interval_days (default 0 = today) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |