Testing action buttons implementation.

This commit is contained in:
Clewsy 2020-02-13 13:19:07 +11:00
parent ed2b12ae96
commit a1e6e5886f
5 changed files with 12 additions and 4 deletions

View file

@ -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 "![action buttons](https://github.com/ccrisan/motioneye/wiki/Action-Buttons)" by adding scripts to the config/motioneye directory (recommend using either the ssh or samba addon to achieve this).
## Installation

View file

@ -33,6 +33,7 @@
"SYS_ADMIN"
],
"map": [
"config:rw",
"share:rw",
"ssl"
],

View file

@ -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"

View file

@ -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

View file

@ -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