Explore Plans
Mobile menu Close menu
Air Quality by IQAir AirVisualAir Quality by IQAir AirVisual

History of device's AQI being above a value

This query returns a list of when your AirVisual device's AQI was above a value that you provided. Note: this query will only return future events after this Applet is created.

Developer info

API endpoint slug
IQAir.history_of_device_s_aqi_being_above_a_value
Runtime method
performQuery("IQAir.history_of_device_s_aqi_being_above_a_value")

Query fields

Sharing code Text input

Label
Share code
Helper text
Your AirVisual Pro's share code, click here to get more information
Slug
sharing_code
Required
true
Can have default value
true

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
IQAir.historyOfDeviceSAqiBeingAboveAValue.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00

ValueValue reported by the device

Slug
value
Filter code
IQAir.historyOfDeviceSAqiBeingAboveAValue.Value
Type
String
Example
124

Device nameName of the device

Slug
node_name
Filter code
IQAir.historyOfDeviceSAqiBeingAboveAValue.DeviceName
Type
String
Example
Home

MetricThe metric name the event has been triggered with.

Slug
metric
Filter code
IQAir.historyOfDeviceSAqiBeingAboveAValue.Metric
Type
String
Example
AQI

ThresholdThe threshold value at which an event will be triggered if the value crosses it.

Slug
threshold
Filter code
IQAir.historyOfDeviceSAqiBeingAboveAValue.Threshold
Type
String
Example
50