https://github.com/qedsoftware/security-cams
Scripts for security cameras.
https://github.com/qedsoftware/security-cams
Last synced: 3 months ago
JSON representation
Scripts for security cameras.
- Host: GitHub
- URL: https://github.com/qedsoftware/security-cams
- Owner: qedsoftware
- Created: 2016-01-31T08:39:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-31T20:33:59.000Z (over 10 years ago)
- Last Synced: 2025-01-01T00:44:41.061Z (over 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Security-cams
==
Some scripts for managing and post-processing the recordings from security cams.
Sharx
==
SHARX cameras have lifecycle policies available for data stored on SD cards.
However, lifecycle management is also needed for the DropBox or FTP servers that these cameras back up their data to, or else disk space exhaustion will quickly occur.
In the sharx folder,
data_mgmt.py
contains a short python script that will do the trick, parsing the filenames and deleting any videos or imagery that are more than MAX_DAYS days old.
On a Mac or UNIX machine, you can take the following steps to automate the execution of the script on a daily basis:
1. chmod ugo+x data_mgmt.py
2. place a copy of the file inside the DropBox folder (Dropbox/Apps/Sharx)
3. edit crontab (crontab -e) with the following line:
@daily cd /path/to/data/Sharx && ./data_mgmt.py >> sharx.log
where sharx.log is a logfile.