Socket
Socket
Sign inDemoInstall

homebridge-filesensor

Package Overview
Dependencies
119
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    homebridge-filesensor

FileSensor plugin for homebridge: https://github.com/nfarina/homebridge


Version published
Maintainers
1
Install size
2.75 MB
Created

Readme

Source

homebridge-filesensor

Is a plugin for Homebridge that uses Chokidar.

This plugin creates a motion sensor or contact sensor accessory based on watching a directory or file. This is useful because many inexpensive IP cameras (Foscam, D-Link, others) have an option to FTP an image or video file when they detect motion. If you use this accessory to monitor that FTP drop location, you can expose that camera as a motion sensor to HomeKit.

Configuration

KeyDescription
pathThe directory, file, or glob to watch (see docs for the chokidar module for what's possible)
window_secondsA file modification date has to be within this many seconds of now to trigger the sensor. This is also the length of time that the sensor will stay triggered before falling back to it's default state.
inverseIf needed, you can invert the behavior of the sensor, for instance so that finding a file means there is ''no'' motion or contact detected.
sensor_typeCurrently either "m" for motion sensor or "c" for contact sensor.

NOTE: Contact sensor support is a little wonky right now, it doesn't seem to want to fall back to the untriggered state for some reason--also app support seems to be lacking.

Keywords

FAQs

Last updated on 19 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc