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
- Get the last reading of the sensor
- API endpoint slug
- tempstick.last_sensor_reading
- Runtime method
- performQuery("tempstick.last_sensor_reading")
Query fields
Sensor ID Dropdown list
- Label
- Which sensor do you want a reading from?
- Slug
- sensor_id
- Required
- true
- Can have default value
- false
Ingredients
Sensor IDThe ID of the sensor
- Slug
- sensor_id
- Filter code
- Tempstick.lastSensorReading.SensorID
- Type
- String
- Example
- SensorID
Sensor nameThe name of the sensor
- Slug
- sensor_name
- Filter code
- Tempstick.lastSensorReading.SensorName
- Type
- String
- Example
- My sensor name
Last checkinThe date and time the sensor last checked in
- Slug
- last_checkin
- Filter code
- Tempstick.lastSensorReading.LastCheckin
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Temp fThe sensor's temperature in Fahrenheit
- Slug
- temp_f
- Filter code
- Tempstick.lastSensorReading.TempF
- Type
- String
- Example
- 32
Next checkinThe date and time the sensor is expected to check in again
- Slug
- next_checkin
- Filter code
- Tempstick.lastSensorReading.NextCheckin
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
HumidityThe sensor's humidity reading
- Slug
- humidity
- Filter code
- Tempstick.lastSensorReading.Humidity
- Type
- String
- Example
- 50
Temp cThe sensor's temperature in Celsius
- Slug
- temp_c
- Filter code
- Tempstick.lastSensorReading.TempC
- Type
- String
- Example
- 0