0.1.20 • Published 3 years ago

homebridge-newfoscam v0.1.20

Weekly downloads
6
License
ISC
Repository
github
Last release
3 years ago

homebridge-NewFoscam npm version

Foscam Plugin (Camera, Security System, Motion Sensor) for HomeBridge (API 2.1)

Older verion using API 1.0: homebridge-foscam Older verion using API 2.0: homebridge-foscam2 (deprecated)

Due to protocol limitation, users will need to pair with the camera in a HomeKit app separately. Pairing PIN is the same as the HomeBridge pairing PIN.

Prerequisites

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

Installation

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

Configuration

Edit your config.json accordingly. Configuration sample:

"platforms": [{
    "platform": "NewFoscam",
    "name": "Foscam",
    "cameras": [{
        "username": "admin",
        "password": "password",
        "host": "192.168.1.10",
        "port": 88,
        "stay": 13,
        "away": 15,
        "night": 14,
        "armPreset": "Start",
        "disarmPreset": "LeftMost",
        "sensitivity": 2,
        "triggerInterval": 5,
        "videoConfig": {
            "source": "-re -i rtsp://myfancy_rtsp_stream",
            "stillImageSource": "-i http://faster_still_image_grab_url/this_is_optional.jpg",
            "maxStreams": 2,
            "maxWidth": 1280,
            "maxHeight": 720,
            "maxFPS": 30
        }
    }]
}]
FieldsDescriptionDefaultRequired
platformMust always be NewFoscam.Yes
nameFor logging purposes.No
camerasArray of camera config (multiple cameras supported).Yes
|- usernameYour camera login username.adminNo
|- passwordYour camera login password.Yes
|- hostYour camera IP address.Yes
|- portYour camera port.88No
|- stay*Configuration for Stay Arm.0No
|- away*Configuration for Away Arm.0No
|- night*Configuration for Night Arm.0No
|- armPresetPreset point name for arm state.undefinedNo
|- disarmPresetPreset point name for disarm state.undefinedNo
|- sensitivityMotion sensor sensitivity from 0 (lowest) to 4 (high).Camera ConfigNo
|- triggerIntervalTime in s (5-15) of which motion sensor can be retriggered.Camera ConfigNo
|- videoConfig**Array of video config for streaming.Yes

*stay, away, night define configuration for different ARMED state. **reference homebridge-camera-ffmpeg for configuration instructions.

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.

0.1.20

3 years ago

0.1.19

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.0.7

4 years ago

0.1.5

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago