A live bird collage card for your Home Assistant dashboard.
adding removed defaults
Patrick McGuire3917807a308f
diff --git a/analyze.py b/analyze.pyindex 9e1b6da3..41770707 100644--- a/analyze.py+++ b/analyze.py@@ -246,7 +246,7 @@ def main():connection = mysql.connector.connect(host='localhost',database='birds',user='birder',- password='changearoo')+ password='databasepassword')cursor = connection.cursor()mySql_insert_query = """INSERT INTO detections (Date, Time, Sci_Name, Com_Name, Confidence, Lat, Lon, Cutoff, Week, Sens, Overlap)VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) """diff --git a/scripts/update_services.sh b/scripts/update_services.shindex 70547361..0a9385aa 100755--- a/scripts/update_services.sh+++ b/scripts/update_services.sh@@ -109,8 +109,8 @@ create_necessary_dirs() {[ -d ${EXTRACTED}/By_Scientific_Name ] || sudo -u ${USER} mkdir -p ${EXTRACTED}/By_Scientific_Name[ -d ${PROCESSED} ] || sudo -u ${USER} mkdir -p ${PROCESSED}[ -L ${EXTRACTED}/index.html ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/templates/index.html ${EXTRACTED}- sudo sed -i "s/http:\/\/birdnetpi.local:8080/${BIRDNETLOG_URL}/g" $(dirname ${my_dir})/templates/index.html- sudo sed -i "s/http:\/\/birdnetpi.local:8888/${EXTRACTIONLOG_URL}/g" $(dirname ${my_dir})/templates/index.html+ sudo -u${USER} sed -i "s/http:\/\/birdnetpi.local:8080/${BIRDNETLOG_URL}/g" $(dirname ${my_dir})/templates/index.html+ sudo -u${USER} sed -i "s/http:\/\/birdnetpi.local:8888/${EXTRACTIONLOG_URL}/g" $(dirname ${my_dir})/templates/index.html[ -L ${EXTRACTED}/scripts ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/scripts ${EXTRACTED}[ -L ${EXTRACTED}/spectrogram.php ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/scripts/spectrogram.* ${EXTRACTED}[ -L ${EXTRACTED}/viewdb.php ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/scripts/viewdb.php ${EXTRACTED}diff --git a/scripts/viewdb.php b/scripts/viewdb.phpindex 663beb17..41075cfa 100644--- a/scripts/viewdb.php+++ b/scripts/viewdb.php@@ -2,7 +2,7 @@header("refresh: 30;");$user = 'birder';-$password = 'changearoo';+$password = 'databasepassword';$database = 'birds';