Explore Plans
Mobile menu Close menu
AirthingsAirthings

History of CO2 level above threshold

This query returns a list of when the CO2 level for a device rises above the provided threshold. Note: this query will only return future events after this Applet is created.

Developer info

API endpoint slug
airthings.history_of_co2_level_above_threshold
Runtime method
performQuery("airthings.history_of_co2_level_above_threshold")

Query fields

Device Dropdown list

Label
Device
Helper text
The device you would like to get CO2 levels from.
Slug
device
Required
true
Can have default value
false

Threshold Text input > Regular expression

Label
Threshold
Slug
threshold
Required
true
Can have default value
true

Ingredients

Created atDate and time event was created.

Slug
created_at
Filter code
Airthings.historyOfCo2LevelAboveThreshold.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00

Co2 levelThe CO2 level. In parts per million.

Slug
value
Filter code
Airthings.historyOfCo2LevelAboveThreshold.Co2Level
Type
String
Example
120

DeviceName of the device.

Slug
device
Filter code
Airthings.historyOfCo2LevelAboveThreshold.Device
Type
String
Example
Home - Living Room