A live bird collage card for your Home Assistant dashboard.
Apprise exclude these species instead of include
ehpersonal38a65d07083778
diff --git a/scripts/config.php b/scripts/config.phpindex fc76879b..d3203136 100644--- a/scripts/config.php+++ b/scripts/config.php@@ -542,7 +542,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}<hr><label for="minimum_time_limit">Minimum time between notifications of the same species (sec):</label><input type="number" id="minimum_time_limit" name="minimum_time_limit" value="<?php echo $config['APPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES'];?>" min="0"><br>- <label for="only_notify_species_names">ONLY notify for these species (comma separated common names):</label>+ <label for="only_notify_species_names">Exclude these species (comma separated common names):</label><input type="text" id="only_notify_species_names" placeholder="Northern Cardinal,American Crow,Carolina Chickadee" name="only_notify_species_names" value="<?php echo $config['APPRISE_ONLY_NOTIFY_SPECIES_NAMES'];?>" size=96><br><br>diff --git a/scripts/utils/notifications.py b/scripts/utils/notifications.pyindex 7db08d4a..2ef9251a 100644--- a/scripts/utils/notifications.py+++ b/scripts/utils/notifications.py@@ -49,7 +49,7 @@ def sendAppriseNotifications(species, confidence, path, date, time, week, latituAPPRISE_ONLY_NOTIFY_SPECIES_NAMES = settings_dict.get('APPRISE_ONLY_NOTIFY_SPECIES_NAMES')if APPRISE_ONLY_NOTIFY_SPECIES_NAMES is not None and APPRISE_ONLY_NOTIFY_SPECIES_NAMES.strip() != "":- if not any(bird.lower().replace(" ", "") in comName.lower().replace(" ", "") for bird in APPRISE_ONLY_NOTIFY_SPECIES_NAMES.split(",")):+ if any(bird.lower().replace(" ", "") in comName.lower().replace(" ", "") for bird in APPRISE_ONLY_NOTIFY_SPECIES_NAMES.split(",")):returnAPPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES = settings_dict.get('APPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES')