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

homebridge-foscam-security

v0.1.1

Published

Foscam Security Plugin for HomeBridge: https://github.com/nfarina/homebridge

Downloads

17

Readme

fork of homebridge-foscamcamera

homebridge-foscam-security

Downloads Version

* Only exposing security and motion accessories to complete the homebridge-camera-ffmpeg plugin

Important Notice

Currently, streaming only works on iOS 10.0. iOS 10.1+ enforces SRTP which is not implemented in the current streaming library. In addition, Foscam C1 streaming will not even work on iOS 10.0 due to funky firmware. Other than streaming, all the other functionalities should work as expected.

Prerequisites

  1. Node.js v6.6.0 or above
  2. HomeBridge v0.4.6 or above
  3. Only H.264 cameras are supported.

Installation

  1. Install homebridge using npm install -g homebridge.
  2. Install this plugin using npm install -g homebridge-foscam-security.
  3. Update your configuration file. See configuration sample below.

Configuration

Edit your config.json accordingly. Configuration sample:

"platforms": [{
    "platform": "FoscamSecurity",
    "name": "Foscam",
    "cameras": [{
        "username": "admin",
        "password": "password",
        "host": "192.168.1.10",
        "port": 88,
        "stay": 13,
        "away": 15,
        "night": 14
    }, {
        "username": "admin2",
        "password": "password2",
        "host": "192.168.1.20",
        "port": 98,
        "stay": 0,
        "away": 14,
        "night": 13,
        "sensitivity": 2,
        "triggerInterval": 5
    }]
}]

| Fields | Description | Default | Required | |----------------------|---------------------------------------------------------------|---------------|----------| | platform | Must always be FoscamCamera. | | Yes | | name | For logging purposes. | | No | | cameras | Array of camera config (multiple cameras supported). | | Yes | | |- username | Your camera login username. | admin | No | | |- password | Your camera login password. | | Yes | | |- host | Your camera IP address. | | Yes | | |- port | Your camera port. | 88 | No | | |- stay* | Configuration for Stay Arm. | 0 | No | | |- away* | Configuration for Away Arm. | 0 | No | | |- night* | Configuration for Night Arm. | 0 | No | | |- sensitivity | Motion sensor sensitivity from 0 (lowest) to 4 (high). | Camera Config | No | | |- triggerInterval | Time in s (5-15) of which motion sensor can be retriggered. | Camera Config | No |

*stay, away, night define configuration for different ARMED state.

The supported configurations depend on your device. The Foscam public CGI defines the following: bit 3 | bit 2 | bit 1 | bit 0 bit 0 = Ring bit 1 = Send email bit 2 = Snap picture bit 3 = Record

The following seems to be valid for the C2 as well (not found in any documentation) bit 7 | bit 6 | bit 5 | bit 4 | bit 3 | bit 2 | bit 1 | bit 0 bit 0 = Ring bit 1 = Send email bit 2 = Snap picture bit 3 = Record bit 7 = Push notification

Note: The configuration is defined as int, thus the followings are valid, e.g. 0 (Do Nothing), 1 (Ring), 2 (Email), 3 (Ring + Email), 4 (Picture), 12 (Picture and Record), 13 (Ring, Picture and Record), etc.

P.S.: Any ARMED state will activate motion detection by default.