Giter Site home page Giter Site logo

motionpush's Introduction

Intro

This script is intended to be used together with motionEye to provide support for push notifications on various platforms. Currently, the following platforms are supported:

  • Telegram
  • Pushover
  • Gotify

As a bonus, the script can be configured to not send notifications or to send high-priority notifications during specified time intervals. High-priority notifications can bypass the recipient device's do not disturb settings, where supported.

Installation

After downloading this repository, copy the script and its configuration, making sure to mark the script as executable:

git clone [email protected]:1pav/motionpush.git
cd ./motionpush
cp motionpush /usr/local/bin
cp example.conf /etc/motionpush.conf
chmod +x /usr/local/bin/motionpush

Configuration

Please see the comments in example.conf. They should provide enough information to understand which settings do what.

Edit the configuration file to suit your needs:

vim /etc/motionpush.conf

In motionEye's web interface, under Motion Notifications, enable Run a Command and put the path to the script in the Command field:

/usr/local/bin/motionpush %H:%M

Notice the argument %H:%M. This is required for do not disturb hours and high-priority hours settings to work.

Usage

Usage:
  motionpush [OPTIONS] TIME

Description:
  Send motion notifications from motionEye to Pushover, Telegram and Gotify.
  TIME must be formatted as HH:MM.

Options:
  -c FILE path to configuration file (default: /etc/motionpush.conf)
  -v      explain what is being done
  -h      output usage and exit

motionpush's People

Contributors

1pav avatar

Watchers

 avatar

motionpush's Issues

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.