mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-14 04:35:49 +02:00
update
This commit is contained in:
parent
fe1218953a
commit
2a08716c4b
@ -45,6 +45,7 @@ dockerfiles
|
|||||||
- [x] monit
|
- [x] monit
|
||||||
- [x] moodle :beetle:
|
- [x] moodle :beetle:
|
||||||
- [x] mosquitto
|
- [x] mosquitto
|
||||||
|
- [x] motion-arm :+1:
|
||||||
- [x] nginad
|
- [x] nginad
|
||||||
- [x] nginx
|
- [x] nginx
|
||||||
- [x] ngrok :+1:
|
- [x] ngrok :+1:
|
||||||
|
@ -7,4 +7,42 @@ motion-arm
|
|||||||
and is able to detect if a significant part of the picture has changed. Or in
|
and is able to detect if a significant part of the picture has changed. Or in
|
||||||
other words, it can detect motion.
|
other words, it can detect motion.
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
|
||||||
|
```
|
||||||
|
motion:
|
||||||
|
image: vimagick/motion-arm
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
- "8081:8081"
|
||||||
|
volumes:
|
||||||
|
# - ./motion.conf:/etc/motion/motion.conf
|
||||||
|
- ./motion:/var/lib/motion
|
||||||
|
devices:
|
||||||
|
- /dev/video0:/dev/video0
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
You can edit `/etc/motion/motion.conf` to customize motion.
|
||||||
|
|
||||||
|
```
|
||||||
|
# set image width
|
||||||
|
width 800
|
||||||
|
|
||||||
|
# set image height
|
||||||
|
height 600
|
||||||
|
|
||||||
|
# set frame rate
|
||||||
|
framerate 5
|
||||||
|
|
||||||
|
# disable image output
|
||||||
|
output_pictures off
|
||||||
|
|
||||||
|
# disable video output
|
||||||
|
ffmpeg_output_movies off
|
||||||
|
|
||||||
|
# encode timelapse movie
|
||||||
|
ffmpeg_timelapse 60
|
||||||
|
```
|
||||||
|
|
||||||
[1]: http://lavrsen.dk/foswiki/bin/view/Motion/WebHome
|
[1]: http://lavrsen.dk/foswiki/bin/view/Motion/WebHome
|
||||||
|
Loading…
Reference in New Issue
Block a user