Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

luisiam/homebridge-foscam2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-foscam2 (Deprecated)

Foscam Plugin for HomeBridge (API 2.0)

Older verion using API 1.0: homebridge-foscam
Newer verion using API 2.1: homebridge-foscamcamera

It is strongly advised that you switch to the newer version. No new development will be done on this version.

Installation

  1. Install homebridge using npm install -g homebridge.
  2. Install this plugin using npm install -g git+https://github.com/luisiam/homebridge-foscam2.git.
  3. Update your configuration file. See configuration sample below.

Configuration

Edit your config.json accordingly. Configuration sample:

"platforms": [{
   "platform": "Foscam2"
}]

Advanced Configuration (Optional)

This step is not required. HomeBridge with API 2.0 can handle configurations in the HomeKit app.

"platforms": [{
    "platform": "Foscam2",
    "cameras": [{
        "username": "admin",
        "password": "password",
        "host": "192.168.1.10",
        "port": "88",
        "stay": "13",
        "away": "15",
        "night": "14",
        "path": "Local path for snapshots"
    }]
}]

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 (Record), 12 (Picture and Record), 13 (Ring, Picture and Record), etc.

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

Releases

No releases published

Packages

No packages published