adding removed defaults

This commit is contained in:
Patrick McGuire
2021-10-19 16:05:16 -04:00
parent 3bedefe432
commit 3917807a30
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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) """
+2 -2
View File
@@ -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}
+1 -1
View File
@@ -2,7 +2,7 @@
header("refresh: 30;");
$user = 'birder';
$password = 'changearoo';
$password = 'databasepassword';
$database = 'birds';