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 new air quality readings available.
- API endpoint slug
- foobot.history_of_air_quality_readings
- Runtime method
- performQuery("foobot.history_of_air_quality_readings")
Query fields
Device ID Dropdown list
- Label
- Which Foobot?
- Slug
- device_id
- Required
- true
- Can have default value
- false
Ingredients
Reading timeDate & time of reading.
- Slug
- created_at
- Filter code
- Foobot.historyOfAirQualityReadings.ReadingTime
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Device nameThe name of the Foobot.
- Slug
- device_name
- Filter code
- Foobot.historyOfAirQualityReadings.DeviceName
- Type
- String
- Example
- HappyBot
Global pollutionThe global pollution index.
- Slug
- global_index
- Filter code
- Foobot.historyOfAirQualityReadings.GlobalPollution
- Type
- String
- Example
- 13.37
Pm valuePM sensor value in µg/m³.
- Slug
- pm_value
- Filter code
- Foobot.historyOfAirQualityReadings.PmValue
- Type
- String
- Example
- 2.2
Voc valueVOC sensor value in ppb.
- Slug
- voc_value
- Filter code
- Foobot.historyOfAirQualityReadings.VocValue
- Type
- String
- Example
- 187
Co2 valueCO2 sensor value in ppm.
- Slug
- co2_value
- Filter code
- Foobot.historyOfAirQualityReadings.Co2Value
- Type
- String
- Example
- 502
Tmp valueTemperature sensor value in °C or °F.
- Slug
- tmp_value
- Filter code
- Foobot.historyOfAirQualityReadings.TmpValue
- Type
- String
- Example
- 21.7
Hum valueRelative humidity value in %.
- Slug
- hum_value
- Filter code
- Foobot.historyOfAirQualityReadings.HumValue
- Type
- String
- Example
- 55.3