Group Location
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.

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
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
Slug
operator
Required
true
Can have default value
true

Threshold value Dropdown list

Label
Particulate Matter Threshold Value
Helper text
Slug
threshold_value
Required
true
Can have default value
false

Ingredients

Event time

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

Pm value

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

Device name

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