You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7eaff6a
Browse filesBrowse the repository at this point in the historyBrowse files
description: HH:mm local, or sunrise / sunset with an optional offset in minutes (sunset-30)
168
+
every_minutes:
169
+
type: integer
170
+
description: 'A rule that runs every this many minutes (1-1440; at least 5 with a gate) instead of on an event: leave what.event out. Combine with window to limit it to certain hours. The clock starts when the rule is created (or the server starts). Cannot be combined with at. v8.0.9.0+'
168
171
date:
169
172
type: string
170
173
description: One local day, yyyy-MM-dd. The rule expires at the end of that day (or of the window on that day).
@@ -1299,40 +1302,6 @@ paths:
1299
1302
description: Turn lpr off for the device.
1300
1303
tags:
1301
1304
- Commands
1302
-
/command/setaifind:
1303
-
get:
1304
-
summary: Set or add to the objects a camera's object detection looks for
1305
-
operationId: /command/setaifind
1306
-
parameters:
1307
-
- description: Object ID
1308
-
in: query
1309
-
name: oid
1310
-
required: true
1311
-
type: integer
1312
-
- description: Object TypeID
1313
-
enum:
1314
-
- 2
1315
-
in: query
1316
-
name: ot
1317
-
required: true
1318
-
type: integer
1319
-
- description: Comma separated labels to add to the existing Find list, e.g. dog,cat. v8.0.7.0+
1320
-
in: query
1321
-
name: add
1322
-
required: false
1323
-
type: string
1324
-
- description: Comma separated labels that replace the whole Find list. Not validated.
1325
-
in: query
1326
-
name: objects
1327
-
required: false
1328
-
type: string
1329
-
produces:
1330
-
- application/json
1331
-
responses:
1332
-
"200":
1333
-
description: 'With add, labels the camera''s AI model does not know are rejected and the call returns {"status":"ok"|"partial","find":[...],"rejected":[...]}. With objects, returns {"status":"ok"}.'
1334
-
tags:
1335
-
- Commands
1336
1305
/command/setalertmode:
1337
1306
get:
1338
1307
summary: Set what raises an alert on a device (the Alert Mode on the Alerts tab)
- description: Location name or index. Locations are created in Server Settings.
1536
+
in: query
1537
+
name: location
1538
+
required: true
1539
+
type: string
1540
+
produces:
1541
+
- application/json
1542
+
responses:
1543
+
"200":
1544
+
description: 'Returns {"status":"ok","location":{"index","name"}} or an error listing the locations. v8.0.9.0+'
1545
+
tags:
1546
+
- Commands
1455
1547
/command/setgroups:
1456
1548
get:
1457
1549
summary: Add a device to groups, remove it from groups, or replace its groups
@@ -1763,16 +1855,21 @@ paths:
1763
1855
name: ot
1764
1856
required: true
1765
1857
type: integer
1766
-
- description: Object List
1858
+
- description: Comma separated labels that replace the whole Find list. Not validated. Either this or add.
1767
1859
in: query
1768
1860
name: objects
1769
-
required: true
1861
+
required: false
1862
+
type: string
1863
+
- description: Comma separated labels to add to the existing Find list, e.g. dog,cat. Labels the camera's AI model does not know are rejected. v8.0.7.0+
1864
+
in: query
1865
+
name: add
1866
+
required: false
1770
1867
type: string
1771
1868
produces:
1772
1869
- application/json
1773
1870
responses:
1774
1871
"200":
1775
-
description: Set the find list
1872
+
description: 'With objects: {"status":"ok"}. With add: {"status":"ok"|"partial","find":[...],"rejected":[...]}.'
1776
1873
tags:
1777
1874
- Commands
1778
1875
/command/setAIModel:
@@ -1868,16 +1965,30 @@ paths:
1868
1965
name: max
1869
1966
required: false
1870
1967
type: integer
1871
-
- description: Gain Multiplier (0-100)
1968
+
- description: Gain Multiplier (0-100)
1872
1969
in: query
1873
1970
name: gain
1874
1971
required: false
1875
1972
type: integer
1973
+
- description: 'Simpler form, v8.0.9.0+: with level, what says which detector - motion or objects for a camera, sound for a microphone (min/max/gain are then ignored)'
1974
+
enum:
1975
+
- motion
1976
+
- objects
1977
+
- sound
1978
+
in: query
1979
+
name: what
1980
+
required: false
1981
+
type: string
1982
+
- description: 'v8.0.9.0+: a level 1-100 (higher = more alerts), or low/medium/high (25/50/75), or lower/higher (15 below or above the current level). motion maps to the detector''s own threshold (minsensitivity for Simple/TripWires/Speed/Tracking, person confidence for people, hikvisionSensitivity for hikvision - a new camera is at 80); objects = object detection minimum confidence (level = 100 - confidence). Cameras with an onvif, reolink or mqtt detector return an error because the sensitivity is set on the camera.'
1983
+
in: query
1984
+
name: level
1985
+
required: false
1986
+
type: string
1876
1987
produces:
1877
1988
- application/json
1878
1989
responses:
1879
1990
"200":
1880
-
description: Set the sensitivity for the device
1991
+
description: 'Set the sensitivity for the device. With level: {"status":"ok","what","level","changed":"<field>","from","to"}'
0 commit comments