mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-05 03:31:22 +00:00
Testing action buttons implementation.
This commit is contained in:
parent
ed2b12ae96
commit
a1e6e5886f
5 changed files with 12 additions and 4 deletions
|
@ -42,6 +42,7 @@ Some cool features of motionEye:
|
|||
- Supports uploading recording into Google Drive and Dropbox.
|
||||
- motion detection, including email notification and scheduling.
|
||||
- Can record continuously, motion, or timelapse, with retention settings.
|
||||
- Supports "" by adding scripts to the config/motioneye directory (recommend using either the ssh or samba addon to achieve this).
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
"SYS_ADMIN"
|
||||
],
|
||||
"map": [
|
||||
"config:rw",
|
||||
"share:rw",
|
||||
"ssl"
|
||||
],
|
||||
|
|
|
@ -6,11 +6,17 @@
|
|||
readonly CONF='/data/motioneye/motioneye.conf'
|
||||
readonly MOTION='/data/motioneye/motion.conf'
|
||||
|
||||
if ! bashio::fs.directory_exists '/data/motioneye'; then
|
||||
cp -R /etc/motioneye/ /data/motioneye/ \
|
||||
# Ensure configuration exists
|
||||
if ! bashio::fs.directory_exists '/config/motioneye'; then
|
||||
mkdir -p /config/motioneye \
|
||||
|| bashio::exit.nok 'Failed to create initial motionEye configuration'
|
||||
|
||||
# Copy in template files
|
||||
cp /etc/motioneye/* /config/motioneye/.
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Migration
|
||||
if bashio::fs.file_exists "${CONF}"; then
|
||||
bashio::log.debug "Running startup migrations"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
# path to the configuration directory (must be writable by motionEye)
|
||||
conf_path /data/motioneye
|
||||
conf_path /config/motioneye
|
||||
|
||||
# path to the directory where pid files go (must be writable by motionEye)
|
||||
run_path /var/run
|
||||
|
|
|
@ -8,7 +8,7 @@ declare -a options
|
|||
|
||||
bashio::log.info "Starting motionEye..."
|
||||
|
||||
options+=(-c /data/motioneye/motioneye.conf)
|
||||
options+=(-c /config/motioneye/motioneye.conf)
|
||||
|
||||
# Enable debug mode
|
||||
if bashio::debug; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue