generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
57 lines (57 loc) · 3.29 KB
/
config.schema.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"pluginAlias": "RedAlertViaKumta",
"pluginType": "platform",
"singular": true,
"headerDisplay": "חשוב מאוד לקרוא את תנאי השימוש!\n\nהוראות שימוש והגבלות:\n\nהתוסף איננו תוסף רשמי של פיקוד העורף או מערכת הבטחון.\n\nהתוסף תלוי בתקינות מערכות צד ג כגון מערכת כומתה ואפליקציית הטלגרם ולכן יתכנו שיבושים ואו עיקובים בקבלת התרעות.\n\nבכל מקרה יש להמשיך להשתמש במקביל לתוסף באמצעיים הרשמיים של מערכת הבטחון בישראל מכיוון שיכול להיות כשל בתוכנה.\n\nDisclaimer - very important to read!\n\nInstructions for use and restrictions:\n\n1.The supplement is not an official supplement of the Home Front Command or the security system in Israel.\n\n2.The add-on depends on the integrity of third-party systems such as the beret system and the Telegram application, so there may be disruptions or delays in receiving alerts.\n\n3.In any case, you must continue to use the official means of the security system in Israel at the same time as the add-on because there could be a software failure.",
"schema": {
"type": "object",
"properties": {
"cities": {
"title": "Сities (separate by comma, written in Hebrew)",
"type": "string",
"required": true,
"default": "אזור_פיקוד_העורף_בעברית"
},
"tg_api_id": {
"title": "Telegram API Id (Please read readme file from git repository for more information)",
"type": "string",
"required": true,
"default": "YOUR_API_ID"
},
"tg_api_hash": {
"title": "Telegram API Hash (Please read readme file from git repository for more information)",
"type": "string",
"required": true,
"default": "YOUR_API_HASH"
},
"rockets_alerts_channel": {
"title": "Rockets Alerts - user must subscribe first to the channel",
"type": "string",
"required": true,
"default": "https://t.me/CumtaAlertsChannel",
"pattern": "^https://t\\.me/[A-Za-z0-9]+$$"
},
"terror_alerts_channel": {
"title": "Terror Alerts - user must subscribe first to the channel",
"type": "string",
"required": true,
"default": "https://t.me/CumtaAlerts2Channel",
"pattern": "^https://t\\.me/[A-Za-z0-9]+$"
},
"debug": {
"title": "Enable Debug Logs",
"description": "When checked, the plugin will produce extra logs for debugging purposes",
"type": "boolean",
"default": false,
"required": false
},
"timeout": {
"title": "Timeout in seconds",
"description": "Timeout during which sensor continue ON state after motion detect and duplicated alerts will be reject.\n\n(In some case, telegram message is deleted and re-sent with updated cities under attack, this can cause duplicate alerts, to avoid it, u can Ignore telegram messages for x seconds (keep in mind it is not recommended to set the value above 10 seconds at this stage because of the risk to miss 2nd alert to your area)",
"type": "number",
"required": false,
"default": "7"
}
}
}
}