Skip to content

A live bird collage card for your Home Assistant dashboard.

phpsysinfo.ini and 'databasepassword' in analyze.py for update_birdnet.sh scripts

Patrick McGuire1740e87ca106
diff --git a/analyze.py b/analyze.py
index 179f6a44..054f5d40 100644
--- a/analyze.py
+++ b/analyze.py
@@ -271,7 +271,7 @@ def main():
connection = mysql.connector.connect(host='localhost',
database='birds',
user='birder',
- password='changeme')
+ 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/templates/phpsysinfo.ini b/templates/phpsysinfo.ini
index 97617caa..79b725e3 100644
--- a/templates/phpsysinfo.ini
+++ b/templates/phpsysinfo.ini
@@ -57,8 +57,7 @@ SUDO_COMMANDS=false
; Example : BLOCKS="vitals,hardware,memory,filesystem,network,voltage,current,temperature,fans,power,other,ups" or BLOCKS=true //default order
; BLOCKS=false //hide all blocks
;
-BLOCKS=true
-
+BLOCKS="filesystem,memory,vitals,hardware,network,temperature,voltage,current,fans,power,other,ups"
; Maximum time in seconds a script is allowed to run before it is terminated by the parser
;
;MAX_TIMEOUT=30
@@ -105,7 +104,7 @@ BLOCKS=true
; - Docker - show docker stats
; - Viewer - show output of any command or file viewer.tmp contents
;
-PLUGINS=false
+PLUGINS="Viewer,PSStatus"
; ********************************
@@ -248,7 +247,7 @@ SHOW_DEVICES_SERIAL=false
; - "UTC" shown as UTC string
; - "locale" shown as Locale string
;
-DATETIME_FORMAT="UTC"
+DATETIME_FORMAT="locale"
; ********************************
@@ -336,7 +335,7 @@ SHOW_INODES=true
; Hide mounts
; Example : HIDE_MOUNTS="/home,/usr"
;
-HIDE_MOUNTS=""
+HIDE_MOUNTS="/boot,/run,/run/lock,/run/user/1000,/dev/shm"
; Filesystem usage warning threshold in percent
@@ -398,7 +397,7 @@ HIDE_TOTALS=false
; Example : HIDE_NETWORK_INTERFACE="eth0,sit0"
; HIDE_NETWORK_INTERFACE=true //hide all network interfaces
;
-HIDE_NETWORK_INTERFACE=""
+HIDE_NETWORK_INTERFACE="lo"
; Use a regular expression in the name of a hidden network interface (e.g. HIDE_NETWORK_INTERFACE="docker.*")
@@ -786,7 +785,7 @@ USE_REGEX=false
;
; string contains a list of process names that are checked, names are seperated by a comma (on WinNT names must end with '.exe')
;
-PROCESSES="mysqld, sshd, explorer.exe"
+PROCESSES="avahi-daemon,gotty,sshd,mariadbd,ffmpeg,vncserver-x11-serviced,nxd,bash"
[quotas]
@@ -929,11 +928,13 @@ ACCESS="command"
; - "systeminfo" systeminfo command is run everytime the block gets refreshed or build (WinNT)
;
-COMMAND=""
+COMMAND="curl"
+#COMMAND="cat"
; define COMMAND parameters (for command access)
;
-PARAMS=""
+PARAMS="-s4 ifconfig.co"
+#PARAMS="/home/pi/BirdNET-Pi/thisrun.txt"
[pingtest]
; PingTest Plugin configuration