reworked the config.php notes

This commit is contained in:
mcguirepr89
2022-06-01 16:49:57 -04:00
parent 176c58aa14
commit fb6ffee404
2 changed files with 29 additions and 3 deletions
+15
View File
@@ -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);
}
+14 -3
View File
@@ -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>