forked from EliasKotlyar/Xiaomi-Dafang-Hacks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"platform": "Camera-ffmpeg", | ||
"cameras": [ | ||
{ | ||
"name": "Camera Name", | ||
"videoConfig": { | ||
"source": "-rtsp_transport tcp -re -i rtsp://dafang.local:8554/unicast", | ||
"stillImageSource": "-i http://dafang.local/cgi-bin/currentpic.cgi", | ||
"maxStreams": 5, | ||
"maxWidth": 1280, | ||
"maxHeight": 720, | ||
"maxFPS": 25 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Integration in HomeKit | ||
|
||
HomeKit integration is possible via the [ Homebridge ffmpeg plugin](https://github.com/KhaosT/homebridge-camera-ffmpeg). | ||
|
||
### Installation | ||
|
||
1. Install ffmpeg on your computer | ||
2. Install the plugin using: npm install -g homebridge-camera-ffmpeg | ||
3. Edit [config.json](config.json) and add your camera. | ||
4. Run Homebridge | ||
5. Add extra camera accessories in Home app. The setup code is the same as in homebridge. |