Skip to content

A live bird collage card for your Home Assistant dashboard.

reworked the config.php notes

mcguirepr89fb6ffee404c0
diff --git a/homepage/style.css b/homepage/style.css
index 32ec6f00..e9ed51c5 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -633,6 +633,21 @@ tr {
box-shadow:0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%);
}
+dl {
+ margin: 1em 0 0 1em;
+}
+dt {
+ float: left;
+ clear: left;
+ width: auto;
+ text-align: left;
+ font-weight: bold;
+ color: black;
+}
+dd::before {
+ content: ": ";
+}
+
input {
box-shadow: 0px 0px 17px 1px rgba(0, 0, 0, 0.10);
}
diff --git a/scripts/config.php b/scripts/config.php
index 26cc594e..62d3188f 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -164,10 +164,21 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {
tgram://{bot_token}/{chat_id}
twitter://{ConsumerKey}/{ConsumerSecret}/{AccessToken}/{AccessSecret}
https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
-..." style="vertical-align: top" name="apprise_input" cols="140" rows="5" type="text" ><?php print($apprise_config);?></textarea><br><br>
- <label for="apprise_notification_title">Notification Title (use variables $sciname, $comname, $confidence, or $listenurl): </label>
+..." style="vertical-align: top" name="apprise_input" cols="140" rows="5" type="text" ><?php print($apprise_config);?></textarea>
+ <dl>
+ <dt>$sciname</dt>
+ <dd>Scientific Name</dd>
+ <dt>$comname</dt>
+ <dd>Common Name</dd>
+ <dt>$confidence</dt>
+ <dd>Confidence Score</dd>
+ <dt>$listenurl</dt>
+ <dd>A link to the detection</dd>
+ </dl>
+ <p>Use the variables defined above to customize your notification title and body.</p>
+ <label for="apprise_notification_title">Notification Title: </label>
<input name="apprise_notification_title" type="text" value="<?php print($config['APPRISE_NOTIFICATION_TITLE']);?>" /><br>
- <label for="apprise_notification_body">Notification Body (use variables $sciname, $comname, $confidence, or $listenurl): </label>
+ <label for="apprise_notification_body">Notification Body: </label>
<input name="apprise_notification_body" type="text" value="<?php print($config['APPRISE_NOTIFICATION_BODY']);?>" /><br>
<input type="checkbox" name="apprise_notify_new_species" <?php if($config['APPRISE_NOTIFY_NEW_SPECIES'] == 1 && filesize($home."/BirdNET-Pi/apprise.txt") != 0) { echo "checked"; };?> >
<label for="apprise_notify_new_species">Notify each new infrequent species detection (<5 visits per week)</label><br>