npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

qsee-pushover

v0.0.0

Published

Alert (pushover) when an alarm is seen by a Q-See QT NVR device

Downloads

3

Readme

Q-See QT Pushover Notifier

Alert (pushover) when an alarm is seen by a Q-See QT NVR device

NOTE: This is a command-line tool to be run as a daemon

Installation

[sudo] npm install -g qsee-pushover

Usage

Create a configuration JSON file

{
    "log_level": "debug",
    "cooldown": {
        "time": 300,
        "per_camera": true,
        "summarize": true
    },
    "schedule": {
        "times": {
            "24x7": true,
            "never": false,
            "after-midnight": "00:00-09-00"
        },
        "default": "after-midnight",
        "channels": {
            "1": "never",
            "2": "24x7"
        }
    },
    "qsee_alerts": {
        "host": "0.0.0.0",
        "port": "10465",
        "username": "[email protected]",
        "password": "bar"
    },
    "pushover": {
        "user": "_pushover_user_",
        "token": "_pushover_token_"
    }
}

Start the daemon with the config

$ qsee-pushover config.json | bunyan
[2017-03-31T04:25:42.053Z]  INFO: qsee-pushover/38355 on arbiter.rapture.com: server running
    opts: {
      "host": "0.0.0.0",
      "port": 10465,
      "username": "[email protected]",
      "password": "bar"
    }

All logging is done through Bunyan

Configuration

log_level (optional)

Bunyan log level to use, default is INFO

cooldown (optional)

Used to specify a "cooldown" for alerts. This means, when an alert is seen, a certain amount of time must pass (cooldown timer) before another alert is sent.

  • cooldown.time time (in seconds) to wait after an event is seen to send another alert
  • cooldown.per_camera if the cooldown is done on a per-camera basis, default is false (all cameras)
  • colldown.summarize send a "summary" of all events seen during the cooldown period after the timer has finished, default is false

schedule (optional)

A schedule or schedules to use when deciding whether or not to send an alert. Schedules are done using the Working Hours module.

  • schedule.times a key-value mapping of schedule name to the actual schedule (in WorkingHours format)
  • schedule.channels a mapping of channel id to schedule to use
  • schedule.default the default schedule to use if a schedule is not specified for the channel

If a channel doesn't match a schedule, it defaults to no schedule which is effectively 24x7 alerts.

qsee_alerts (required)

The SMTP server config for the Q-See QT DVR to use.

This object is passed directly to the QSeeAlertsServer constructor.

pushover (required)

The pushover credentials to use when sending the alert.

This object is passed directly to the PushoverNotifications

License

MIT License