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

History of device's PM2.5 drops

This query returns a list of instances when your AirVisual device's PM2.5 concentration was below a value you provide. Note: this query will only return future events after this Applet is created.

About this query

Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.

Developer info

Description
This query returns a list of instances when your AirVisual device's PM2.5 concentration was below a value you provide. Note: this query will only return future events after this Applet is created.
API endpoint slug
IQAir.history_of_device_s_pm2_5_drops
Runtime method
performQuery("IQAir.history_of_device_s_pm2_5_drops")

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.historyOfDeviceSPm25Drops.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.historyOfDeviceSPm25Drops.Value
Type
String
Example
124

Device nameName of the device

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

MetricChosen measurement name

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

ThresholdThe threshold value you provided

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

UnitThe measurement unit used

Slug
unit
Filter code
IQAir.historyOfDeviceSPm25Drops.Unit
Type
String
Example
ppm