mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-05 11:41:27 +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.
|
- Supports uploading recording into Google Drive and Dropbox.
|
||||||
- motion detection, including email notification and scheduling.
|
- motion detection, including email notification and scheduling.
|
||||||
- Can record continuously, motion, or timelapse, with retention settings.
|
- 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
|
## Installation
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
"SYS_ADMIN"
|
"SYS_ADMIN"
|
||||||
],
|
],
|
||||||
"map": [
|
"map": [
|
||||||
|
"config:rw",
|
||||||
"share:rw",
|
"share:rw",
|
||||||
"ssl"
|
"ssl"
|
||||||
],
|
],
|
||||||
|
|
|
@ -6,11 +6,17 @@
|
||||||
readonly CONF='/data/motioneye/motioneye.conf'
|
readonly CONF='/data/motioneye/motioneye.conf'
|
||||||
readonly MOTION='/data/motioneye/motion.conf'
|
readonly MOTION='/data/motioneye/motion.conf'
|
||||||
|
|
||||||
if ! bashio::fs.directory_exists '/data/motioneye'; then
|
# Ensure configuration exists
|
||||||
cp -R /etc/motioneye/ /data/motioneye/ \
|
if ! bashio::fs.directory_exists '/config/motioneye'; then
|
||||||
|
mkdir -p /config/motioneye \
|
||||||
|| bashio::exit.nok 'Failed to create initial motionEye configuration'
|
|| bashio::exit.nok 'Failed to create initial motionEye configuration'
|
||||||
|
|
||||||
|
# Copy in template files
|
||||||
|
cp /etc/motioneye/* /config/motioneye/.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Migration
|
# Migration
|
||||||
if bashio::fs.file_exists "${CONF}"; then
|
if bashio::fs.file_exists "${CONF}"; then
|
||||||
bashio::log.debug "Running startup migrations"
|
bashio::log.debug "Running startup migrations"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# path to the configuration directory (must be writable by motionEye)
|
# 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)
|
# path to the directory where pid files go (must be writable by motionEye)
|
||||||
run_path /var/run
|
run_path /var/run
|
||||||
|
|
|
@ -8,7 +8,7 @@ declare -a options
|
||||||
|
|
||||||
bashio::log.info "Starting motionEye..."
|
bashio::log.info "Starting motionEye..."
|
||||||
|
|
||||||
options+=(-c /data/motioneye/motioneye.conf)
|
options+=(-c /config/motioneye/motioneye.conf)
|
||||||
|
|
||||||
# Enable debug mode
|
# Enable debug mode
|
||||||
if bashio::debug; then
|
if bashio::debug; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue