GET api/SensorData/Get?SerialNumber={SerialNumber}&BeforeDate={BeforeDate}&AfterDate={AfterDate}&Count={Count}&SortDescending={SortDescending}

Get misc. sensor data from a unit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SerialNumber

Unit serial number

string

Required

BeforeDate

Only records before this date (Optional)

date

None.

AfterDate

Only records after this date (Optional)

date

None.

Count

Number of records to return (Optional)

integer32

Default value is 10

SortDescending

Sort result by descending timestamp - latest record first (Optional)

boolean

Default value is True

Body Parameters

None.

Response Information

Resource Description

Get misc. sensor data from a unit

Collection of SensorDataModel
NameDescriptionTypeAdditional information
Id

integer64

Required

SerialNumber

Unit Serialnumber

string

Required

Timestamp

Timestamp in UTC

date

None.

Temperature

­Temperature in °C

decimal number

Null values possible.

TemperatureMax

Max temperature in °C since last report (if available)

decimal number

Null values possible.

TemperatureMin

Min temperature in °C since last report (if available)

decimal number

Null values possible.

Humidity

Humidity in %

decimal number

Null values possible.

HumidityMin

Min Humidity in % since last report (if available)

decimal number

Null values possible.

HumidityMax

Max Humidity in % since last report (if available)

decimal number

Null values possible.

Pressure

Pressure in bar

decimal number

Null values possible.

PressureMin

Min Pressure in bar since last report (if available)

decimal number

Null values possible.

PressureMax

Max Pressure in bar since last report (if available)

decimal number

Null values possible.

BatteryPercent

Estimated battery left (percentage).

integer32

Null values possible.

VoltageBeforeMessage

integer32

Null values possible.

GSMTimeOn

Duration of GSM connection in seconds

integer32

Null values possible.

SignalStrength

Signal Strength of GSM connection (0-32)

integer32

Null values possible.

NumberOfSatellites

Number of sattelites used to make GPS fix (if available)

integer32

Null values possible.

AccelerationX

Accelleation in mili-G

integer32

Null values possible.

AccelerationY

Accelleation in mili-G

integer32

Null values possible.

AccelerationZ

Accelleation in mili-G

integer32

Null values possible.

PeakAccelerationX

Accelleation on the X-axis on peak since last report

integer32

Null values possible.

PeakAccelerationY

Accelleation on the Y-axis on peak since last report

integer32

Null values possible.

PeakAccelerationZ

Accelleation on the Z-axis on peak since last report

integer32

Null values possible.

PeakAccelerationTimestamp

Timestamp of peak acceleration (if available)

date

Null values possible.

MinAccelerationX

Minimum Accelleation on the X-axis since last report

integer32

Null values possible.

MaxAccelerationX

Maximum Accelleation on the X-axis since last report

integer32

Null values possible.

MinAccelerationY

Minimum Accelleation on the Y-axis since last report

integer32

Null values possible.

MaxAccelerationY

Maximum Accelleation on the Y-axis since last report

integer32

Null values possible.

MinAccelerationZ

Minimum Accelleation on the Z-axis since last report

integer32

Null values possible.

MaxAccelerationZ

Maximum Accelleation on the Z-axis since last report

integer32

Null values possible.

LightLevel

Light Level (0-1500)

integer32

Null values possible.

LightLevelMax

Max Light level (0-1500) since last report (if available)

integer32

Null values possible.

LightLevelMin

Min Light level (0-1500) since last report (if available)

integer32

Null values possible.

Trigger

Flags.

UnitReportTriggerEnum

None.

TotalPowerOnTimerGPS

Total number of seconds used on GPS

integer32

Null values possible.

TotalPowerOnTimerGSM

Total number of seconds used on GSM

integer32

Null values possible.

TotalOnTimerMotion

Total number of seconds registered as motion by the unit

integer32

Null values possible.

TotalPowerOnCounter

Total number of report attempts made by unit

integer32

Null values possible.

SatSignalSum

GPS satellite signal sum

integer32

Null values possible.

GSMNetwork

2G, 3G, 4G

string

None.

TotalRotation

Total rotation counter

integer64

Null values possible.

ReferenceId

Unit's referenceId

string

None.

MessageId

Unit's messageId

integer64

None.

ServerDate

Timestamp for message received at server

date

Null values possible.

IsLog

Indicates if this sensor data originates from a log message

boolean

None.

IsSMS

Indicates if this sensor data originates from an SMS transmission

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "SerialNumber": "sample string 2",
    "Timestamp": "2024-11-21T09:57:26.7337558+00:00",
    "Temperature": 1.0,
    "TemperatureMax": 1.0,
    "TemperatureMin": 1.0,
    "Humidity": 1.0,
    "HumidityMin": 1.0,
    "HumidityMax": 1.0,
    "Pressure": 1.0,
    "PressureMin": 1.0,
    "PressureMax": 1.0,
    "BatteryPercent": 1,
    "VoltageBeforeMessage": 1,
    "GSMTimeOn": 1,
    "SignalStrength": 1,
    "NumberOfSatellites": 1,
    "AccelerationX": 1,
    "AccelerationY": 1,
    "AccelerationZ": 1,
    "PeakAccelerationX": 1,
    "PeakAccelerationY": 1,
    "PeakAccelerationZ": 1,
    "PeakAccelerationTimestamp": "2024-11-21T09:57:26.7337558+00:00",
    "MinAccelerationX": 1,
    "MaxAccelerationX": 1,
    "MinAccelerationY": 1,
    "MaxAccelerationY": 1,
    "MinAccelerationZ": 1,
    "MaxAccelerationZ": 1,
    "LightLevel": 1,
    "LightLevelMax": 1,
    "LightLevelMin": 1,
    "Trigger": 0,
    "TotalPowerOnTimerGPS": 1,
    "TotalPowerOnTimerGSM": 1,
    "TotalOnTimerMotion": 1,
    "TotalPowerOnCounter": 1,
    "SatSignalSum": 1,
    "GSMNetwork": "sample string 4",
    "TotalRotation": 1,
    "ReferenceId": "sample string 5",
    "MessageId": 6,
    "ServerDate": "2024-11-21T09:57:26.7337558+00:00",
    "IsLog": true,
    "IsSMS": true
  },
  {
    "Id": 1,
    "SerialNumber": "sample string 2",
    "Timestamp": "2024-11-21T09:57:26.7337558+00:00",
    "Temperature": 1.0,
    "TemperatureMax": 1.0,
    "TemperatureMin": 1.0,
    "Humidity": 1.0,
    "HumidityMin": 1.0,
    "HumidityMax": 1.0,
    "Pressure": 1.0,
    "PressureMin": 1.0,
    "PressureMax": 1.0,
    "BatteryPercent": 1,
    "VoltageBeforeMessage": 1,
    "GSMTimeOn": 1,
    "SignalStrength": 1,
    "NumberOfSatellites": 1,
    "AccelerationX": 1,
    "AccelerationY": 1,
    "AccelerationZ": 1,
    "PeakAccelerationX": 1,
    "PeakAccelerationY": 1,
    "PeakAccelerationZ": 1,
    "PeakAccelerationTimestamp": "2024-11-21T09:57:26.7337558+00:00",
    "MinAccelerationX": 1,
    "MaxAccelerationX": 1,
    "MinAccelerationY": 1,
    "MaxAccelerationY": 1,
    "MinAccelerationZ": 1,
    "MaxAccelerationZ": 1,
    "LightLevel": 1,
    "LightLevelMax": 1,
    "LightLevelMin": 1,
    "Trigger": 0,
    "TotalPowerOnTimerGPS": 1,
    "TotalPowerOnTimerGSM": 1,
    "TotalOnTimerMotion": 1,
    "TotalPowerOnCounter": 1,
    "SatSignalSum": 1,
    "GSMNetwork": "sample string 4",
    "TotalRotation": 1,
    "ReferenceId": "sample string 5",
    "MessageId": 6,
    "ServerDate": "2024-11-21T09:57:26.7337558+00:00",
    "IsLog": true,
    "IsSMS": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfSensorDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <SensorDataModel>
    <AccelerationX>1</AccelerationX>
    <AccelerationY>1</AccelerationY>
    <AccelerationZ>1</AccelerationZ>
    <BatteryPercent>1</BatteryPercent>
    <GSMNetwork>sample string 4</GSMNetwork>
    <GSMTimeOn>1</GSMTimeOn>
    <Humidity>1</Humidity>
    <HumidityMax>1</HumidityMax>
    <HumidityMin>1</HumidityMin>
    <Id>1</Id>
    <IsLog>true</IsLog>
    <IsSMS>true</IsSMS>
    <LightLevel>1</LightLevel>
    <LightLevelMax>1</LightLevelMax>
    <LightLevelMin>1</LightLevelMin>
    <MaxAccelerationX>1</MaxAccelerationX>
    <MaxAccelerationY>1</MaxAccelerationY>
    <MaxAccelerationZ>1</MaxAccelerationZ>
    <MessageId>6</MessageId>
    <MinAccelerationX>1</MinAccelerationX>
    <MinAccelerationY>1</MinAccelerationY>
    <MinAccelerationZ>1</MinAccelerationZ>
    <NumberOfSatellites>1</NumberOfSatellites>
    <PeakAccelerationTimestamp>2024-11-21T09:57:26.7337558+00:00</PeakAccelerationTimestamp>
    <PeakAccelerationX>1</PeakAccelerationX>
    <PeakAccelerationY>1</PeakAccelerationY>
    <PeakAccelerationZ>1</PeakAccelerationZ>
    <Pressure>1</Pressure>
    <PressureMax>1</PressureMax>
    <PressureMin>1</PressureMin>
    <ReferenceId>sample string 5</ReferenceId>
    <SatSignalSum>1</SatSignalSum>
    <SerialNumber>sample string 2</SerialNumber>
    <ServerDate>2024-11-21T09:57:26.7337558+00:00</ServerDate>
    <SignalStrength>1</SignalStrength>
    <Temperature>1</Temperature>
    <TemperatureMax>1</TemperatureMax>
    <TemperatureMin>1</TemperatureMin>
    <Timestamp>2024-11-21T09:57:26.7337558+00:00</Timestamp>
    <TotalOnTimerMotion>1</TotalOnTimerMotion>
    <TotalPowerOnCounter>1</TotalPowerOnCounter>
    <TotalPowerOnTimerGPS>1</TotalPowerOnTimerGPS>
    <TotalPowerOnTimerGSM>1</TotalPowerOnTimerGSM>
    <TotalRotation>1</TotalRotation>
    <Trigger>None</Trigger>
    <VoltageBeforeMessage>1</VoltageBeforeMessage>
  </SensorDataModel>
  <SensorDataModel>
    <AccelerationX>1</AccelerationX>
    <AccelerationY>1</AccelerationY>
    <AccelerationZ>1</AccelerationZ>
    <BatteryPercent>1</BatteryPercent>
    <GSMNetwork>sample string 4</GSMNetwork>
    <GSMTimeOn>1</GSMTimeOn>
    <Humidity>1</Humidity>
    <HumidityMax>1</HumidityMax>
    <HumidityMin>1</HumidityMin>
    <Id>1</Id>
    <IsLog>true</IsLog>
    <IsSMS>true</IsSMS>
    <LightLevel>1</LightLevel>
    <LightLevelMax>1</LightLevelMax>
    <LightLevelMin>1</LightLevelMin>
    <MaxAccelerationX>1</MaxAccelerationX>
    <MaxAccelerationY>1</MaxAccelerationY>
    <MaxAccelerationZ>1</MaxAccelerationZ>
    <MessageId>6</MessageId>
    <MinAccelerationX>1</MinAccelerationX>
    <MinAccelerationY>1</MinAccelerationY>
    <MinAccelerationZ>1</MinAccelerationZ>
    <NumberOfSatellites>1</NumberOfSatellites>
    <PeakAccelerationTimestamp>2024-11-21T09:57:26.7337558+00:00</PeakAccelerationTimestamp>
    <PeakAccelerationX>1</PeakAccelerationX>
    <PeakAccelerationY>1</PeakAccelerationY>
    <PeakAccelerationZ>1</PeakAccelerationZ>
    <Pressure>1</Pressure>
    <PressureMax>1</PressureMax>
    <PressureMin>1</PressureMin>
    <ReferenceId>sample string 5</ReferenceId>
    <SatSignalSum>1</SatSignalSum>
    <SerialNumber>sample string 2</SerialNumber>
    <ServerDate>2024-11-21T09:57:26.7337558+00:00</ServerDate>
    <SignalStrength>1</SignalStrength>
    <Temperature>1</Temperature>
    <TemperatureMax>1</TemperatureMax>
    <TemperatureMin>1</TemperatureMin>
    <Timestamp>2024-11-21T09:57:26.7337558+00:00</Timestamp>
    <TotalOnTimerMotion>1</TotalOnTimerMotion>
    <TotalPowerOnCounter>1</TotalPowerOnCounter>
    <TotalPowerOnTimerGPS>1</TotalPowerOnTimerGPS>
    <TotalPowerOnTimerGSM>1</TotalPowerOnTimerGSM>
    <TotalRotation>1</TotalRotation>
    <Trigger>None</Trigger>
    <VoltageBeforeMessage>1</VoltageBeforeMessage>
  </SensorDataModel>
</ArrayOfSensorDataModel>