rename birdnet

This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 10:27:09 +01:00
parent 9d21dfa112
commit c64a0c60ab
3 changed files with 21 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://github.com/tphakala/birdnet-go # Source: https://github.com/tphakala/birdnet-go
APP="BirdNET-Go" APP="BirdNET"
var_tags="${var_tags:-monitoring;ai;nature}" var_tags="${var_tags:-monitoring;ai;nature}"
var_cpu="${var_cpu:-4}" var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
@@ -30,20 +30,20 @@ function update_script() {
exit exit
fi fi
if check_for_gh_release "birdnet-go" "tphakala/birdnet-go"; then if check_for_gh_release "birdnet" "tphakala/birdnet-go"; then
msg_info "Stopping Service" msg_info "Stopping Service"
systemctl stop birdnet-go systemctl stop birdnet
msg_ok "Stopped Service" msg_ok "Stopped Service"
fetch_and_deploy_gh_release "birdnet-go" "tphakala/birdnet-go" "prebuild" "latest" "/opt/birdnet-go" "birdnet-go-linux-amd64.tar.gz" fetch_and_deploy_gh_release "birdnet" "tphakala/birdnet-go" "prebuild" "latest" "/opt/birdnet" "birdnet-go-linux-amd64.tar.gz"
msg_info "Deploying Binary" msg_info "Deploying Binary"
cp /opt/birdnet-go/birdnet-go /usr/local/bin/birdnet-go cp /opt/birdnet/birdnet-go /usr/local/bin/birdnet-go
chmod +x /usr/local/bin/birdnet-go chmod +x /usr/local/bin/birdnet-go
msg_ok "Deployed Binary" msg_ok "Deployed Binary"
msg_info "Starting Service" msg_info "Starting Service"
systemctl start birdnet-go systemctl start birdnet
msg_ok "Started Service" msg_ok "Started Service"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
fi fi

View File

@@ -22,24 +22,24 @@ msg_ok "Installed Dependencies"
setup_ffmpeg setup_ffmpeg
fetch_and_deploy_gh_release "birdnet-go" "tphakala/birdnet-go" "prebuild" "latest" "/opt/birdnet-go" "birdnet-go-linux-amd64.tar.gz" fetch_and_deploy_gh_release "birdnet" "tphakala/birdnet-go" "prebuild" "latest" "/opt/birdnet" "birdnet-go-linux-amd64.tar.gz"
msg_info "Setting up BirdNET-Go" msg_info "Setting up BirdNET"
cp /opt/birdnet-go/birdnet-go /usr/local/bin/birdnet-go cp /opt/birdnet/birdnet-go /usr/local/bin/birdnet-go
chmod +x /usr/local/bin/birdnet-go chmod +x /usr/local/bin/birdnet-go
mkdir -p /opt/birdnet-go/data/clips mkdir -p /opt/birdnet/data/clips
msg_ok "Set up BirdNET-Go" msg_ok "Set up BirdNET"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/birdnet-go.service cat <<EOF >/etc/systemd/system/birdnet.service
[Unit] [Unit]
Description=BirdNET-Go Description=BirdNET
After=network.target After=network.target
[Service] [Service]
Type=simple Type=simple
User=root User=root
WorkingDirectory=/opt/birdnet-go/data WorkingDirectory=/opt/birdnet/data
ExecStart=/usr/local/bin/birdnet-go realtime ExecStart=/usr/local/bin/birdnet-go realtime
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5
@@ -47,7 +47,7 @@ RestartSec=5
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now birdnet-go systemctl enable -q --now birdnet
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh

View File

@@ -1,6 +1,6 @@
{ {
"name": "BirdNET-Go", "name": "BirdNET",
"slug": "birdnet-go", "slug": "birdnet",
"categories": [ "categories": [
9 9
], ],
@@ -12,12 +12,12 @@
"documentation": "https://github.com/tphakala/birdnet-go/wiki", "documentation": "https://github.com/tphakala/birdnet-go/wiki",
"website": "https://github.com/tphakala/birdnet-go", "website": "https://github.com/tphakala/birdnet-go",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/birdnet-go.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/birdnet-go.webp",
"config_path": "/opt/birdnet-go/data", "config_path": "/opt/birdnet/data",
"description": "BirdNET-Go is an AI-powered solution for continuous avian monitoring and identification, providing 24/7 realtime bird song analysis.", "description": "BirdNET-Go is an AI-powered solution for continuous avian monitoring and identification, providing 24/7 realtime bird song analysis.",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "ct/birdnet-go.sh", "script": "ct/birdnet.sh",
"resources": { "resources": {
"cpu": 4, "cpu": 4,
"ram": 2048, "ram": 2048,
@@ -37,7 +37,7 @@
"type": "warning" "type": "warning"
}, },
{ {
"text": "Data and recordings are stored in `/opt/birdnet-go/data`.", "text": "Data and recordings are stored in `/opt/birdnet/data`.",
"type": "info" "type": "info"
}, },
{ {