forked from geekslant/smartgarage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-with-camera.json
executable file
·39 lines (35 loc) · 1.28 KB
/
config-with-camera.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"bridge": {
"name": "Geek Slant Smart Garage",
"username": "01:23:45:67:89:AB",
"port": 51826,
"pin": "123-45-678"
},
"description": "Homebridge configuration for the Geek Slant Smart Garage, as featured on https://youtube.com/geekslant and https://geekslant.com.",
"note":"Adjust doorOpensInSeconds to your garage door opener, and doorSwitchPressTimeInMs if necessary. Change the camera source RTSP link to use your password and IP address of your camera.",
"accessories": [{
"accessory": "RaspPiGPIOGarageDoor",
"name": "Garage Door",
"doorSwitchPin": 5,
"doorSwitchPressTimeInMs": 1500,
"doorSwitchValue": 1,
"closedDoorSensorPin": 20,
"closedDoorSensorValue": 1,
"doorPollInMs": 4000,
"doorOpensInSeconds": 12
}],
"platforms": [{
"platform": "Camera-ffmpeg",
"cameras": [{
"name": "Garage Camera",
"videoConfig": {
"source": "-re -i rtsp://admin:PUT_CAMERA_PASSWORD_HERE@PUT_CAMERA_IP_ADDRESS_HERE:554/stream=0",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30,
"vcodec": "h264_omx"
}
}]
}]
}