Skip to content

Commit 7eaff6a

Browse files
ispysoftwareclaude
andcommitted
API docs: setsensitivity level form, say, playsound, setname, setlocation, when.every_minutes; setAIFind entries merged
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 337986d commit 7eaff6a

1 file changed

Lines changed: 150 additions & 39 deletions

File tree

‎swagger.yaml‎

Lines changed: 150 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ definitions:
165165
time:
166166
type: string
167167
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+'
168171
date:
169172
type: string
170173
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:
12991302
description: Turn lpr off for the device.
13001303
tags:
13011304
- 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
13361305
/command/setalertmode:
13371306
get:
13381307
summary: Set what raises an alert on a device (the Alert Mode on the Alerts tab)
@@ -1452,6 +1421,129 @@ paths:
14521421
description: 'Returns {"status":"ok","ai":"object","mode":"detected"}. v8.0.9.0+'
14531422
tags:
14541423
- Commands
1424+
/command/say:
1425+
get:
1426+
summary: Speak text through a camera's speaker now
1427+
operationId: /command/say
1428+
parameters:
1429+
- description: Object ID
1430+
in: query
1431+
name: oid
1432+
required: true
1433+
type: integer
1434+
- description: Object TypeID
1435+
enum:
1436+
- 2
1437+
in: query
1438+
name: ot
1439+
required: true
1440+
type: integer
1441+
- description: What to say (up to 500 characters)
1442+
in: query
1443+
name: text
1444+
required: true
1445+
type: string
1446+
- description: Voice name; empty = the server's default voice
1447+
in: query
1448+
name: voice
1449+
required: false
1450+
type: string
1451+
produces:
1452+
- application/json
1453+
responses:
1454+
"200":
1455+
description: 'Returns {"status":"ok","said":"..."}. Needs a camera with talk set up and a connected ispyconnect.com account for speech. v8.0.9.0+'
1456+
tags:
1457+
- Commands
1458+
/command/playsound:
1459+
get:
1460+
summary: Play one of the server's sound files through a camera's speaker now
1461+
operationId: /command/playsound
1462+
parameters:
1463+
- description: Object ID
1464+
in: query
1465+
name: oid
1466+
required: true
1467+
type: integer
1468+
- description: Object TypeID
1469+
enum:
1470+
- 2
1471+
in: query
1472+
name: ot
1473+
required: true
1474+
type: integer
1475+
- description: File name from the server's sounds folder
1476+
in: query
1477+
name: file
1478+
required: true
1479+
type: string
1480+
produces:
1481+
- application/json
1482+
responses:
1483+
"200":
1484+
description: 'Returns {"status":"ok","played":"..."} or an error listing the available files. Needs a camera with talk set up. v8.0.9.0+'
1485+
tags:
1486+
- Commands
1487+
/command/setname:
1488+
get:
1489+
summary: Rename a device
1490+
operationId: /command/setname
1491+
parameters:
1492+
- description: Object ID
1493+
in: query
1494+
name: oid
1495+
required: true
1496+
type: integer
1497+
- description: Object TypeID
1498+
enum:
1499+
- 1
1500+
- 2
1501+
in: query
1502+
name: ot
1503+
required: true
1504+
type: integer
1505+
- description: New name (up to 100 characters)
1506+
in: query
1507+
name: name
1508+
required: true
1509+
type: string
1510+
produces:
1511+
- application/json
1512+
responses:
1513+
"200":
1514+
description: 'Returns {"status":"ok","name":"...","was":"..."}. v8.0.9.0+'
1515+
tags:
1516+
- Commands
1517+
/command/setlocation:
1518+
get:
1519+
summary: Put a device in a location
1520+
operationId: /command/setlocation
1521+
parameters:
1522+
- description: Object ID
1523+
in: query
1524+
name: oid
1525+
required: true
1526+
type: integer
1527+
- description: Object TypeID
1528+
enum:
1529+
- 1
1530+
- 2
1531+
in: query
1532+
name: ot
1533+
required: true
1534+
type: integer
1535+
- 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
14551547
/command/setgroups:
14561548
get:
14571549
summary: Add a device to groups, remove it from groups, or replace its groups
@@ -1763,16 +1855,21 @@ paths:
17631855
name: ot
17641856
required: true
17651857
type: integer
1766-
- description: Object List
1858+
- description: Comma separated labels that replace the whole Find list. Not validated. Either this or add.
17671859
in: query
17681860
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
17701867
type: string
17711868
produces:
17721869
- application/json
17731870
responses:
17741871
"200":
1775-
description: Set the find list
1872+
description: 'With objects: {"status":"ok"}. With add: {"status":"ok"|"partial","find":[...],"rejected":[...]}.'
17761873
tags:
17771874
- Commands
17781875
/command/setAIModel:
@@ -1868,16 +1965,30 @@ paths:
18681965
name: max
18691966
required: false
18701967
type: integer
1871-
- description: Gain Multiplier (0-100)
1968+
- description: Gain Multiplier (0-100)
18721969
in: query
18731970
name: gain
18741971
required: false
18751972
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
18761987
produces:
18771988
- application/json
18781989
responses:
18791990
"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"}'
18811992
tags:
18821993
- Commands
18831994
/command/setObjectState:

0 commit comments

Comments
 (0)