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.API endpoint slug foobot.history_of_pm_threshold_was_crossed Runtime method performQuery("foobot.history_of_pm_threshold_was_crossed")
Query fields Label Which Foobot? Slug device_id Required true Can have default value false 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 Label Particulate Matter Threshold Value Helper text threshold value in µg/m³ Slug threshold_value Required true Can have default value false
Ingredients Slug created_at Filter code Foobot.historyOfPmThresholdWasCrossed.EventTime Type Date with time (ISO8601) Example 2020-07-08T04:17:06.000+05:00 Slug sensor_value Filter code Foobot.historyOfPmThresholdWasCrossed.PmValue Type String Example 15.4 Slug device_name Filter code Foobot.historyOfPmThresholdWasCrossed.DeviceName Type String Example HappyBot