Giter VIP home page Giter VIP logo

zmoffsite's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.