Skip to content

A live bird collage card for your Home Assistant dashboard.

fixed omission from whitelist>includelist change

mcguirepr8931c2df337782
diff --git a/analyze.py b/analyze.py
index 77e3711d..c352054c 100644
--- a/analyze.py
+++ b/analyze.py
@@ -267,7 +267,7 @@ def main():
for d in detections:
print("\n", "Database Entry", "\n")
for entry in detections[d]:
- if entry[1] >= min_conf and (entry[0] in WHITE_LIST or len(WHITE_LIST) == 0):
+ if entry[1] >= min_conf and ((entry[0] in INCLUDE_LIST or len(INCLUDE_LIST) == 0) and (entry[0] not in EXCLUDE_LIST or len(EXCLUDE_LIST) == 0) ):
rfile.write(str(current_date) + ';' + str(current_time) + ';' + entry[0].replace('_', ';') + ';' \
+ str(entry[1]) +";" + str(args.lat) + ';' + str(args.lon) + ';' + str(min_conf) + ';' + str(week) + ';' \
+ str(sensitivity) +';' + str(args.overlap) + '\n')