Add external drives support

This commit is contained in:
Alexandre
2024-04-23 11:59:17 +02:00
parent 6243d0bfef
commit 7e5e75561e
4 changed files with 69 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
## 0.5.1-2 (22-04-2024)
- Minor bugs fixed
- Feat : Allow mounting of SMB and local drives to store the audio clips on an external drive
## 0.5.1 (22-04-2024)
- Initial build

View File

@@ -41,7 +41,7 @@ RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; f
if [ ! -f /bin/bash ] && [ -f /usr/bin/bash ]; then ln -s /usr/bin/bash /bin/bash; fi
# Modules
ARG MODULES=""
ARG MODULES="00-local_mounts.sh 00-smb_mounts.sh"
# Automatic modules download
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh"

View File

@@ -28,11 +28,11 @@ This addon is based on their docker image.
## Configuration
Install, then start the addon a first time
Webui can be found at <http://homeassistant:8080>.
Install, then start the addon a first time. Webui can be found at <http://homeassistant:8080>.
You'll need a microphone : either use one connected to HA or the audio stream of a rstp camera.
The audio clips folder can be stored on an external or SMB drive by mounting it from the addon options, then specifying the path instead of "clips/". For example, "/mnt/NAS/Birdnet/"
Options can be configured through three ways :
- Addon options

View File

@@ -5,6 +5,58 @@
],
"audio": true,
"codenotary": "alexandrep.github@gmail.com",
"devices": [
"/dev/dri",
"/dev/dri/card0",
"/dev/dri/card1",
"/dev/dri/renderD128",
"/dev/vchiq",
"/dev/video10",
"/dev/video11",
"/dev/video12",
"/dev/video13",
"/dev/video14",
"/dev/video15",
"/dev/video16",
"/dev/ttyUSB0",
"/dev/sda",
"/dev/sdb",
"/dev/sdc",
"/dev/sdd",
"/dev/sde",
"/dev/sdf",
"/dev/sdg",
"/dev/nvme",
"/dev/nvme0n1p1",
"/dev/nvme0n1p2",
"/dev/mmcblk",
"/dev/fuse",
"/dev/sda1",
"/dev/sdb1",
"/dev/sdc1",
"/dev/sdd1",
"/dev/sde1",
"/dev/sdf1",
"/dev/sdg1",
"/dev/sda2",
"/dev/sdb2",
"/dev/sdc2",
"/dev/sdd2",
"/dev/sde2",
"/dev/sdf2",
"/dev/sdg2",
"/dev/sda3",
"/dev/sdb3",
"/dev/sda4",
"/dev/sdb4",
"/dev/sda5",
"/dev/sda6",
"/dev/sda7",
"/dev/sda8",
"/dev/nvme0",
"/dev/nvme1",
"/dev/nvme2"
],
"description": "Realtime BirdNET soundscape analyzer",
"environment": {
},
@@ -13,9 +65,11 @@
"image": "ghcr.io/alexbelgium/birdnet-go-{arch}",
"init": false,
"map": [
"addon_config:rw"
"addon_config:rw",
"media:rw",
"share:rw"
],
"name": "birdnet-go",
"name": "Birdnet-go",
"options": {
"COMMAND": "realtime"
},
@@ -29,9 +83,14 @@
"schema": {
"ALSA_CARD": "int?",
"COMMAND": "str",
"TZ": "str?"
"TZ": "str?",
"cifsdomain": "str?",
"cifspassword": "str?",
"cifsusername": "str?",
"localdisks": "str?",
"networkdisks": "str?"
},
"slug": "birdnet-go",
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-go",
"version": "0.5.1-2"
"version": "0.5.1-3"
}