Skip to content

Small script for handling ZoneMinder offsite uploads

Notifications You must be signed in to change notification settings

StefanLindblom/zmoffsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

zmoffsite

Small script for handling ZoneMinder offsite uploads

Purpose

I created this to handle my ZoneMinder offsite uploads. My ZoneMinder setup at home will automatically upload images when motion is detected via SFTP to a server in the "cloud". This little script unarchives the uploaded images, and lets me browse them via HTTP. It adds the same html-file with a simple JavaScript based viewer as ZoneMinder itself uses when you export events.

Installation

  • Set up your ZoneMinder instance to upload (see options) events (using filters) as TAR-files
  • The default location I've configured in the script is /home/zm
  • Create a directory where the unarchived files will end up, like /home/zm/untar
  • Put this repository's two files in the same directory, make sure zmoffsite-process.sh has chmod +x permissions.
  • Add a cronjob to run it automatically (example for every minute: */1 * * * * /home/zm/zmoffsite-process.sh)
  • Install a webserver if you like, like nginx, and let this directory be served

Screenshots

zmoffsite_1 zmoffsite_3 zmoffsite_2 zmoffsite_4 In this last screenshot you can see the settings I'm using for the upload tab in ZoneMinder.

About

Small script for handling ZoneMinder offsite uploads

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published