Explore Plans
Mobile menu Close menu
FoobotFoobot

History of PM threshold was crossed

This query returns a list of times when the PM (particulate matter) sensor value crossed a threshold. Note: this query will only return future events after this Applet is created.

Developer info

API endpoint slug
foobot.history_of_pm_threshold_was_crossed
Runtime method
performQuery("foobot.history_of_pm_threshold_was_crossed")

Query fields

Device ID Dropdown list

Label
Which Foobot?
Slug
device_id
Required
true
Can have default value
false

Operator Dropdown list

Label
Above or below?
Helper text
Determine whether the PM sensor value is above or below the threshold.
Slug
operator
Required
true
Can have default value
true

Threshold value Dropdown list

Label
Particulate Matter Threshold Value
Helper text
threshold value in µg/m³
Slug
threshold_value
Required
true
Can have default value
false

Ingredients

Event timeDate & time threshold was crossed.

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

Pm valueObserved sensor value in µg/m³.

Slug
sensor_value
Filter code
Foobot.historyOfPmThresholdWasCrossed.PmValue
Type
String
Example
15.4

Device nameThe name of the Foobot.

Slug
device_name
Filter code
Foobot.historyOfPmThresholdWasCrossed.DeviceName
Type
String
Example
HappyBot