Group Location
Explore Plans
Mobile menu Close menu
FoobotFoobot

History of VOC threshold is crossed

This query returns a list of when the VOC (volatile organic compound) sensor value was above or below the 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_voc_threshold_is_crossed
Runtime method
performQuery("foobot.history_of_voc_threshold_is_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
VOC Threshold Value
Helper text
Slug
threshold_value
Required
true
Can have default value
false

Ingredients

Event time

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

Voc value

Slug
sensor_value
Filter code
Foobot.historyOfVocThresholdIsCrossed.VocValue
Type
String
Example
245.0

Device name

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