-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
1,161 additions
and
763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,9 @@ | |
*.conf | ||
*.json | ||
.settings | ||
settings.py | ||
conf | ||
run | ||
media | ||
log | ||
log | ||
dist | ||
motioneye.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include extra * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**motionEye** is a web-based frontend for `motion <http://www.lavrsen.dk/foswiki/bin/view/Motion>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
|
||
# static files (.css, .js etc) are served at this root url; | ||
# change this if you run motionEye behind a reverse proxy (e.g. nginx), | ||
# and you want static files to be served directly by it | ||
#static_url '/static/' | ||
|
||
# path to the configuration directory (must be writable by motionEye) | ||
#conf_path /etc/motioneye | ||
|
||
# path to the directory where pid files go (must be writable by motionEye) | ||
#run_path /var/run | ||
|
||
# path to the directory where log files go (must be writable by motionEye) | ||
#log_path /var/log | ||
|
||
# default output path for media files (must be writable by motionEye) | ||
#media_path /var/lib/motioneye | ||
|
||
# path to the motion binary to use (automatically detected by default) | ||
#motion_binary /usr/bin/motion | ||
|
||
# the log level (use quiet, error, warning, info or debug) | ||
#log_level info | ||
|
||
# the IP address to listen on | ||
# (0.0.0.0 for all interfaces, 127.0.0.1 for localhost) | ||
#listen 0.0.0.0 | ||
|
||
# the TCP port to listen on | ||
#port 8765 | ||
|
||
# interval in seconds at which motionEye checks the SMB mounts | ||
#mount_check_interval 300 | ||
|
||
# interval in seconds at which motionEye checks if motion is running | ||
#motion_check_interval 10 | ||
|
||
# interval in seconds at which the janitor is called | ||
# to remove old pictures and movies | ||
#cleanup_interval 43200 | ||
|
||
# interval in seconds at which the thumbnail mechanism runs | ||
# (set to 0 to disable) | ||
#thumbnailer_interval 60 | ||
|
||
# timeout in seconds to wait for response from a remote motionEye server | ||
#remote_request_timeout 10 | ||
|
||
# timeout in seconds to wait for mjpg data from the motion daemon | ||
#mjpg_client_timeout 10 | ||
|
||
# timeout in seconds after which an idle mjpg client is removed | ||
# (set to 0 to disable) | ||
#mjpg_client_idle_timeout 10 | ||
|
||
# enable SMB shares (requires motionEye to run as root) | ||
#smb_shares false | ||
|
||
# the directory where the SMB mount points will be created | ||
#smb_mount_root /media | ||
|
||
# path to the wpa_supplicant.conf file | ||
# (enable this to configure wifi settings from the UI) | ||
#wpa_supplicant_conf /etc/wpa_supplicant.conf | ||
|
||
# path to the localtime file | ||
# (enable this to configure the system time zone from the UI) | ||
#local_time_file /etc/localtime | ||
|
||
# enables shutdown and rebooting after changing system settings | ||
# (such as wifi settings or time zone) | ||
#enable_reboot false | ||
|
||
# timeout in seconds to use when talking to the SMTP server | ||
#smtp_timeout 60 | ||
|
||
# timeout in seconds to wait for zip file creation | ||
#zip_timeout 500 | ||
|
||
# enable adding and removing cameras from UI | ||
#add_remove_cameras true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/bin/sh -e | ||
# | ||
# /etc/init.d/motioneye: Start the motionEye server | ||
# | ||
### BEGIN INIT INFO | ||
# Provides: motioneye | ||
# Required-Start: $local_fs $syslog $remote_fs | ||
# Required-Stop: $remote_fs | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Start the motionEye server | ||
# Description: Start the motionEye server | ||
### END INIT INFO | ||
|
||
NAME="motioneye" | ||
PATH_BIN="/bin:/usr/bin:/sbin:/usr/sbin" | ||
DAEMON="/usr/bin/meyectl" | ||
PIDFILE="/var/run/$NAME.pid" | ||
DESC="motionEye server" | ||
USER="motion" | ||
OPTIONS="startserver -c /etc/motioneye/motioneye.conf -l" | ||
|
||
. /lib/lsb/init-functions | ||
|
||
test -x $DAEMON || exit 0 | ||
|
||
RET=0 | ||
|
||
case "$1" in | ||
start) | ||
log_daemon_msg "Starting $DESC" | ||
if start-stop-daemon --start --oknodo --exec $DAEMON -b --chuid $USER -- $OPTIONS; then | ||
log_end_msg 0 | ||
else | ||
log_end_msg 1 | ||
RET=1 | ||
fi | ||
;; | ||
|
||
stop) | ||
log_daemon_msg "Stopping $DESC" | ||
if start-stop-daemon --stop --oknodo --exec $DAEMON --retry 5; then | ||
log_end_msg 0 | ||
else | ||
log_end_msg 1 | ||
RET=1 | ||
fi | ||
;; | ||
|
||
restart) | ||
log_action_begin_msg "Restarting $DESC" | ||
if $0 stop && $0 start; then | ||
log_action_end_msg 0 | ||
else | ||
log_action_cont_msg "(failed)" | ||
RET=1 | ||
fi | ||
;; | ||
|
||
status) | ||
status_of_proc $DAEMON $NAME | ||
;; | ||
|
||
*) | ||
echo "Usage: /etc/init.d/$NAME {start|stop|restart|status}" | ||
RET=1 | ||
;; | ||
esac | ||
|
||
exit $RET | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=motionEye Server | ||
|
||
[Service] | ||
ExecStart=/usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf | ||
Restart=on-abort | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
Oops, something went wrong.