-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Theodlz/loop
loop frigate on multiple nights
- Loading branch information
Showing
4 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from frigate.__main__ import process_candidates | ||
from frigate.utils.parsers import main_parser_args | ||
|
||
args = main_parser_args() | ||
start_values = args.start | ||
if isinstance(start_values, (int, str, float)): | ||
start_values = [start_values] | ||
|
||
for start in start_values: | ||
try: | ||
args.start = float(start) | ||
args.end = args.start + args.nb_days | ||
process_candidates(args) | ||
except Exception as e: | ||
print(f"Error occurred while running the command for start value {start}: {e}") |