slControl API

LogoutChangelog (26.08.2024)Legal notesBasic usageRequest EmulatorTroubleshooting
Global
Get list of accessible customersGet lookup tables for settingsGet lookup tables for devicesGet lookup tables for operationModeGet lookup tables for gatewaysGet lookup tables for jobsGet lookup tables for alerts
Customers
Get customer configurationUpdate customer configurationGet mesh network
Groups
Get group tree
Lamp switches
Get lamp switchesUpdate lamp switches
Luminaire points
Get luminaire pointsUpdate luminaire pointsCreate luminaire pointsDelete luminaire points
Devices
Get devicesGet device dataGet device stateUpdate device dataUpdate device operation stateGet operation modeUpdate operation modeDelete deviceDelete devices
Devices - Statistics/Logs
Get radar dataGet motion dataGet device energyGet environmental data
Gateways
Get gatewaysGet gateway dataCreate gatewaysDelete a gateway
Jobs
Get jobs state of a deviceGet job state by slcID
Alerts
Get alertsCreate alertsUpdate alerts

Get radar data

API endpoint

This request will deliver movement data of LightRadar sensors.

lightRadar

Request method

GET

Request headers

-

Request URL parameters

Format

This parameter is optional. Default is json
format=json|xml

Serial Number

You may access data of several devices by comma delimited serial numbers. No comma at the beginning or end of this string.

Cannot be used in combination with parameter "customer".

serial=0474303,0478304

Customer

You may access data of all devices of one or more customers by comma delimited slcID of customers. No comma at the beginning or end of this string.

Cannot be used in combination with parameter "serial".

customer=104,105,304

Limit number of records

You may restrict the number of records each device will return. You will always get the newest records first. Default limit is 10'000.

limit=100

Limit by time

You may restrict the recordset by start time and/oder end time. Timeconstraints are local time.

from=2017-11-25T08:00:35
to=2017-11-25T15:00:35

Response: example in XML

The attributes customer and location are currently empty.
<?xml version="1.0" encoding="UTF-8" ?>
<slControl>
	<lightRadar serial="4053795" customer="4">
		<dataset date="2018-10-02 17:52:22">
			<approaching total="1365">
				<truck>0</truck>
				<car>541</car>
				<motorbike>17</motorbike>
				<bicycle>13</bicycle>
				<person>773</person>
				<unknown>21</unknown>
			</approaching>
			<receding total="1019">
				<truck>0</truck>
				<car>546</car>
				<motorbike>12</motorbike>
				<bicycle>15</bicycle>
				<person>436</person>
				<unknown>10</unknown>
			</receding>
		</dataset>
		<dataset date="2018-10-02 17:37:12">
			<approaching total="1365">
				<truck>0</truck>
				<car>541</car>
				<motorbike>17</motorbike>
				<bicycle>13</bicycle>
				<person>773</person>
				<unknown>21</unknown>
			</approaching>
			<receding total="1019">
				<truck>0</truck>
				<car>546</car>
				<motorbike>12</motorbike>
				<bicycle>15</bicycle>
				<person>436</person>
				<unknown>10</unknown>
			</receding>
		</dataset>
	</lightRadar>
</slControl>

Response: example in JSON

JSON-Format is structurally identical.

{
	"lightRadar": {
		"@attributes": {
			"serial": "4053795",
			"customer": "4"
		},
		"dataset": [{
			"@attributes": {
				"date": "2018-10-02 17:52:22"
			},
			"approaching": {
				"@attributes": {
					"total": "1365"
				},
				"truck": "0",
				"car": "541",
				"motorbike": "17",
				"bicycle": "13",
				"person": "773",
				"unknown": "21"
			},
			"receding": {
				"@attributes": {
					"total": "1019"
				},
				"truck": "0",
				"car": "546",
				"motorbike": "12",
				"bicycle": "15",
				"person": "436",
				"unknown": "10"
			}
		}, {
			"@attributes": {
				"date": "2018-10-02 17:37:12"
			},
			"approaching": {
				"@attributes": {
					"total": "1365"
				},
				"truck": "0",
				"car": "541",
				"motorbike": "17",
				"bicycle": "13",
				"person": "773",
				"unknown": "21"
			},
			"receding": {
				"@attributes": {
					"total": "1019"
				},
				"truck": "0",
				"car": "546",
				"motorbike": "12",
				"bicycle": "15",
				"person": "436",
				"unknown": "10"
			}
		}]
	}
}