• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

luisiam/homebridge-foscamcamera: Foscam Plugin for HomeBridge (API 2.1): https:/ ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

luisiam/homebridge-foscamcamera

开源软件地址:

https://github.com/luisiam/homebridge-foscamcamera

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-foscamcamera 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-foscamcamera.
  3. Update your configuration file. See configuration sample below.

Configuration

Edit your config.json accordingly. Configuration sample:

"platforms": [{
    "platform": "FoscamCamera",
    "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
        }
    }]
}]

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
|- armPreset Preset point name for arm state. undefined No
|- disarmPreset Preset point name for disarm state. undefined 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
|- 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人参与评论

请发表评论

全部评论

专题导读
上一篇:
sqrthree/vuepress-theme-api-starter-kit: 发布时间:2022-06-13
下一篇:
maxkomarychev/octions: Collection of GitHub Actions that wrap GitHub REST API发布时间:2022-06-13
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap