A Homebridge plugin integrating Shinobi for motion detector cameras
npm install -g homebridge
npm install -g homebridge-shinobi
config.json
snippet below.ffmpeg
is installed and on the path.NOTE: Currently there is no support for streaming audio from a camera.
Example config.json
entry:
"platforms": [
{
"platform": "Shinobi",
"shinobi_api": "http://x.x.x.x:8080",
"api_key": "xxx",
"group_key": "house",
"monitors": [
{
"monitor_id": "front"
},
{
"monitor_id": "rear"
}
],
"web_hook_port": "8443",
"https_key_path": "/cert/privkey.pem",
"https_cert_path": "/cert/fullchain.pem"
}
]
Where:
shinobi_api
is the base URL for the Shinobi APIapi_key
is the Shinobi API key (configured in the Shinobi dashboard API menu)group_key
is a Shinobi group keymonitors
contains a list of monitors consisting of:
monitor_id
web_hook_port
is the port that the platform should listen on for motion event webhooks from ShinobiIf both https_key_path
and https_cert_path
are configured to point at HTTPS key and cert files available on the Homebridgeserver the webhook server will be hosted on HTTPS.
The specified shinobi_api
and api_key
will be used to make all Shinobi API requests.
Each of the specified monitor
IDs will be used with the specified group_key
to add a new accessoryto the platform consistent of a Motion Sensor service and camera.
When viewing video, the plugin will use the information returned from the API for a specific Monitor to determinethe source video stream configured. FFmpeg is used to stream directly from the camera and forward to HomeKit. If possible,the video will not be re-encoded.
Snapshot images for each Monitor are simply pulled from the Shinobi API.
A webhook URL should be configured for each Monitor within the Shinobi 'Global Detector Settings' with the following format:
http[s]://<homebridge_ip>>:<web_hook_port>?mid=<monitors[index].monitor_id>&group=<group_key>
For example, assuming the Homebridge instance is available at 192.168.1.10 and using the above sample config,the two Monitors front
and rear
would have webhook URLs configured as:
https://192.168.1.10:8443?mid=front&group=house
and
https://192.168.1.10:8443?mid=rear&group=house
If you have a query or problem, raise an issue in GitHub, or better yet submit a PR!
Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。
homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support
homebridge-sesame Control and monitor your Sesame smart lock with HomeKit integration. Prerequisites Installation of Homebridge iOS 11 or later Sesame lock with enabled cloud integration Sesame Wifi A
homebridge-panasonictv A homebridge plugin for turning on and off your Panasonic Viera TV. The plugin also has experimental support for changing the volume and channel. These characteristics are not r
Quick Start | Contribute A Wake on Lan plugin for Homebridge Turn your PCs, laptops, servers and more on and off through Siri Quick Start To install the plugin, head over to the machine with Homebridg
Docker Homebridge This Alpine/Ubuntu Linux based Docker image allows you to run Nfarina's Homebridge on your home network which emulates the iOS HomeKit API. This is a multi-arch image and will also r