forked from Github/frigate
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd86e4f317 | ||
|
|
4db285a875 |
@@ -31,7 +31,7 @@ docker run --rm \
|
|||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
-p 5000:5000 \
|
-p 5000:5000 \
|
||||||
-e FRIGATE_RTSP_PASSWORD='password' \
|
-e FRIGATE_RTSP_PASSWORD='password' \
|
||||||
blakeblackshear/frigate:stable
|
blakeblackshear/frigate:0.7.0-amd64
|
||||||
```
|
```
|
||||||
|
|
||||||
Example docker-compose:
|
Example docker-compose:
|
||||||
@@ -41,7 +41,7 @@ Example docker-compose:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
privileged: true
|
privileged: true
|
||||||
shm_size: '100m' # only needed with large numbers of high res cameras
|
shm_size: '100m' # only needed with large numbers of high res cameras
|
||||||
image: blakeblackshear/frigate:stable
|
image: blakeblackshear/frigate:0.7.0-amd64
|
||||||
volumes:
|
volumes:
|
||||||
- /dev/bus/usb:/dev/bus/usb
|
- /dev/bus/usb:/dev/bus/usb
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ elif CONFIG_FILE.endswith(".json"):
|
|||||||
CONFIG = json.load(f)
|
CONFIG = json.load(f)
|
||||||
|
|
||||||
CACHE_DIR = CONFIG.get('save_clips', {}).get('cache_dir', '/cache')
|
CACHE_DIR = CONFIG.get('save_clips', {}).get('cache_dir', '/cache')
|
||||||
CLIPS_DIR = CONFIG.get('save_clips', {}).get('clips_dir', '/cache')
|
CLIPS_DIR = CONFIG.get('save_clips', {}).get('clips_dir', '/clips')
|
||||||
|
|
||||||
if not os.path.exists(CACHE_DIR):
|
if not os.path.exists(CACHE_DIR) and not os.path.islink(CACHE_DIR):
|
||||||
os.makedirs(CACHE_DIR)
|
os.makedirs(CACHE_DIR)
|
||||||
if not os.path.exists(CLIPS_DIR):
|
if not os.path.exists(CLIPS_DIR) and not os.path.islink(CLIPS_DIR):
|
||||||
os.makedirs(CLIPS_DIR)
|
os.makedirs(CLIPS_DIR)
|
||||||
|
|
||||||
MQTT_HOST = CONFIG['mqtt']['host']
|
MQTT_HOST = CONFIG['mqtt']['host']
|
||||||
|
|||||||
Reference in New Issue
Block a user