This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from j0bro/feature/events
Add support for real time events
- Loading branch information
Showing
51 changed files
with
4,118 additions
and
1,425 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true |
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 |
---|---|---|
@@ -1,37 +1,3 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 2017 | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"no-unused-vars": [ | ||
"warn" | ||
], | ||
"no-console": [ | ||
"off" | ||
] | ||
} | ||
"extends": "athom" | ||
} |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
env.json | ||
.vscode/* | ||
.vscode/* | ||
node_modules | ||
.editorconfig |
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,5 @@ | ||
{ | ||
"1.1.0": { | ||
"en": "Added support for events, including motion detection." | ||
} | ||
} |
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,70 @@ | ||
{ | ||
"id": "com.ubnt.unifivideo", | ||
"sdk": 2, | ||
"name": { | ||
"en": "UniFi Video" | ||
}, | ||
"description": { | ||
"en": "Control Ubiquiti UniFi Video devices with Homey.", | ||
"nl": "Bedien Ubiquiti UniFi Video apparaten met Homey." | ||
}, | ||
"tags": { | ||
"en": [ | ||
"ubiquiti", | ||
"unifi", | ||
"video", | ||
"security", | ||
"camera", | ||
"snapshot", | ||
"recording" | ||
], | ||
"nl": [ | ||
"ubiquiti", | ||
"unifi", | ||
"video", | ||
"beveiligingscamera", | ||
"camera", | ||
"momentopname", | ||
"opname" | ||
] | ||
}, | ||
"images": { | ||
"large": "assets/images/large.png", | ||
"small": "assets/images/small.png" | ||
}, | ||
"category": [ | ||
"appliances", | ||
"security", | ||
"video" | ||
], | ||
"version": "1.1.0", | ||
"compatibility": ">=1.5.0", | ||
"author": { | ||
"name": "Jeroen Brosens", | ||
"email": "j.brosens+unifivideo@gmail.com" | ||
}, | ||
"contributors": { | ||
"developers": [ | ||
{ | ||
"name": "Jeroen Brosens", | ||
"email": "j.brosens+unifivideo@gmail.com" | ||
}, | ||
{ | ||
"name": "Stèphan Eizinga", | ||
"email": "stephan@monkeysoft.nl" | ||
} | ||
] | ||
}, | ||
"contributing": { | ||
"donate": { | ||
"paypal": { | ||
"username": "jeroenbrosens" | ||
} | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/j0bro/com.ubnt.unifivideo/issues" | ||
}, | ||
"source": "https://github.com/j0bro/com.ubnt.unifivideo", | ||
"support": "mailto:j.brosens+unifivideo@gmail.com" | ||
} |
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 @@ | ||
{ | ||
"type": "string", | ||
"title": { | ||
"en": "Recording status", | ||
"nl": "Opnamestatus" | ||
}, | ||
"getable": true, | ||
"setable": false, | ||
"uiComponent": "sensor", | ||
"icon": "/assets/recording.svg" | ||
} |
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,14 @@ | ||
{ | ||
"type": "number", | ||
"units": { | ||
"en": "%" | ||
}, | ||
"title": { | ||
"en": "System load", | ||
"nl": "Systeembelasting" | ||
}, | ||
"getable": true, | ||
"setable": false, | ||
"uiComponent": "sensor", | ||
"icon": "/assets/cpu.svg" | ||
} |
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,14 @@ | ||
{ | ||
"type": "number", | ||
"units": { | ||
"en": "%" | ||
}, | ||
"title": { | ||
"en": "Disk used", | ||
"nl": "Schijfgebruik" | ||
}, | ||
"getable": true, | ||
"setable": false, | ||
"uiComponent": "sensor", | ||
"icon": "/assets/usage.svg" | ||
} |
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 @@ | ||
{ | ||
"type": "string", | ||
"title": { | ||
"en": "Status phrase", | ||
"nl": "Statusomschrijving" | ||
}, | ||
"getable": true, | ||
"setable": false, | ||
"uiComponent": "sensor", | ||
"icon": "/assets/bubble.svg" | ||
} |
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 @@ | ||
{ | ||
"type": "string", | ||
"title": { | ||
"en": "Status", | ||
"nl": "Status" | ||
}, | ||
"getable": true, | ||
"setable": false, | ||
"uiComponent": "sensor", | ||
"icon": "/assets/traffic.svg" | ||
} |
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,41 @@ | ||
{ | ||
"id": "ufv_set_recording_mode", | ||
"title": { | ||
"en": "Set recording mode", | ||
"nl": "Stel opnamemodus in" | ||
}, | ||
"args": [ | ||
{ | ||
"name": "device", | ||
"type": "device", | ||
"filter": "driver_id=camera" | ||
}, | ||
{ | ||
"name": "recording_mode", | ||
"type": "dropdown", | ||
"values": [ | ||
{ | ||
"id": "none", | ||
"label": { | ||
"en": "Don't record", | ||
"nl": "Niet opnemen" | ||
} | ||
}, | ||
{ | ||
"id": "always", | ||
"label": { | ||
"en": "Always record", | ||
"nl": "Altijd opnemen" | ||
} | ||
}, | ||
{ | ||
"id": "motion", | ||
"label": { | ||
"en": "Record only motion", | ||
"nl": "Alleen beweging opnemen" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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,24 @@ | ||
{ | ||
"id": "ufv_take_snapshot", | ||
"title": { | ||
"en": "Take a snapshot", | ||
"nl": "Maak een momentopname" | ||
}, | ||
"args": [ | ||
{ | ||
"name": "device", | ||
"type": "device", | ||
"filter": "driver_id=camera" | ||
}, | ||
{ | ||
"name": "width", | ||
"type": "number", | ||
"min": 0, | ||
"max": 1920, | ||
"placeholder": { | ||
"en": "Width in pixels", | ||
"nl": "Breedte in pixels" | ||
} | ||
} | ||
] | ||
} |
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,29 @@ | ||
{ | ||
"id": "ufv_snapshot_created", | ||
"title": { | ||
"en": "A snapshot was created", | ||
"nl": "Er is een snapshot gemaakt" | ||
}, | ||
"tokens": [ | ||
{ | ||
"name": "ufv_snapshot_token", | ||
"type": "image", | ||
"title": { | ||
"en": "Snapshot", | ||
"nl": "Momentopname" | ||
} | ||
}, | ||
{ | ||
"name": "ufv_snapshot_camera", | ||
"type": "string", | ||
"title": { | ||
"en": "Camera", | ||
"nl": "Camera" | ||
}, | ||
"example": { | ||
"en": "Front door", | ||
"nl": "Voordeur" | ||
} | ||
} | ||
] | ||
} |
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,5 @@ | ||
[ | ||
{ | ||
"id": "compose" | ||
} | ||
] |
Oops, something went wrong.