The smart city template is a report template that presents all significant air quality and environment parameters useful for monitoring and understanding the status of the environment. Sensor values that are polled by the sensors connected to your device will then be mapped out to this template. Only the properties of the sensors connected to your device will have values, while the rest will just be blank or null.
The JSON payload that the Push API sends every interval uses this template, as well as the JSON file that can be sourced from the GET API “/reports” endpoint**.** As you may noticed, the arrangement and naming of properties are the same with the report’s columns that can be found in the report page (see Reports page for details). That is because all of them are using the same smart city template.
Available Parameters / Properties:
Installation / Base Unit Details:
installation_id
- <string> The installation id assigned to the device.
installation_name
- <string> The installation name assigned to the device.
installation_site
- <string> The installation site assigned to the device. Note: this is not yet configurable from the portal
bu_serial
- <string> The serial of the device.
bu_endpoint
- <string> The endpoint name of the device registered in the LwM2M server.
gps_mode
- <number> The GPS mode activated in the device. Note: this is not yet configurable from the portal
polling_interval
- <number> The polling interval set in the device’s settings. Note: the value is not yet available in the report.
posting_interval
- <number> The posting interval set in the device’s settings. Note: this is not yet configurable from the portal.
Sensor and health data:
dataset_id
- <number> The unique identifier / counter assigned to each payload. This is useful for tracing and debugging data gaps. Note: this feature is not yet available.
timestamp
- <number> The timestamp when the sensor values were polled.
battery
- <number> The device’s battery percentage.
gps_duration_fix
- <number> Refers to how long a GPS fix was obtained.
gps_latitude
gps_longitude
gps_speed
- <number>Refers to how fast the vehicle was moving with the device on it. Applicable only if the device is moving or positioned on top of a mobile unit.