<commit_before># dockmotion

A surveillance solution base on
[Motion](http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) and Docker.

It's easy and ready to use. Just plug in a webcam and run dockmotion, then
videos and images will be saved once a motion is detected while a notification
e-mail including the recorded video and a preview image will be sent. On top of
that, the webcam can be accessed anytime via HTTP lives streaming.

## Quick Start

Clone this project then `cd` into it:
```bash
git clone https://github.com/kfei/dockmotion
cd dockmotion
```

Copy the sample config files and change everything you need:
```bash
# Change settings to suit your webcam, e.g., videodevice, v4l2_palette, etc.
cp config/motion.conf.sample config/motion.conf
# If using Gmail, just copy the sample then change account and password
cp config/ssmtp.conf.sample.gmail config/ssmtp.conf
```

Then build your own dockmotion Docker image:
```bash
docker build -t dockmotion .
```

Now run the container as well as feed it with some config variables, e.g.,
```bash
docker run -it --privileged -p 8081:8081 \<commit_msg>README: Fix typo<commit_after># dockmotion

A surveillance solution base on
[Motion](http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) and Docker.

It's easy and ready to use. Just plug in a webcam and run dockmotion, then
videos and images will be saved once a motion is detected while a notification
e-mail including the recorded video and a preview image will be sent. On top of
that, the webcam can be accessed anytime via HTTP live streaming.

## Quick Start

Clone this project then `cd` into it:
```bash
git clone https://github.com/kfei/dockmotion
cd dockmotion
```

Copy the sample config files and change everything you need:
```bash
# Change settings to suit your webcam, e.g., videodevice, v4l2_palette, etc.
cp config/motion.conf.sample config/motion.conf
# If using Gmail, just copy the sample then change account and password
cp config/ssmtp.conf.sample.gmail config/ssmtp.conf
```

Then build your own dockmotion Docker image:
```bash
docker build -t dockmotion .
```

Now run the container as well as feed it with some config variables, e.g.,
```bash
docker run -it --privileged -p 8081:8081 \
{'fraction_non_alphanumeric': 0.08393177737881508, 'fraction_numerical': 0.008976660682226212, 'mean_word_length': 4.31980906921241, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1385110', 'n_tokens_mistral': 716, 'n_tokens_neox': 650, 'n_words': 306}