Explore Plans
Mobile menu Close menu
UbiBot

History of light crossed a threshold

This query monitors the UbiBot device's built-in light sensor readings and returns a list of whenever the light level rose above or dropped below the value in lux you provide. Note: this query will only return future events after this Applet is created.

Developer info

API endpoint slug
ubibot.history_of_light_crossed_a_threshold
Runtime method
performQuery("ubibot.history_of_light_crossed_a_threshold"}

Query fields

Channel Dropdown list

Label
Channel ID
Helper text
Select a Channel from your account
Slug
channel_id
Required
true
Can have default value
false

Condition Dropdown list

Label
Condition
Helper text
Light level condition
Slug
condition
Required
true
Can have default value
true

Value Text input > Other

Label
Value
Helper text
Light level in lux
Slug
value
Required
true
Can have default value
true

Ingredients

Created at Date and time event was created.

Slug
created_at
Filter code
Ubibot.historyOfLightCrossedAThreshold.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00

Value Light Reading in lux

Slug
value
Filter code
Ubibot.historyOfLightCrossedAThreshold.Value
Type
String
Example
500

Channel Channel ID

Slug
channel_id
Filter code
Ubibot.historyOfLightCrossedAThreshold.ChannelId
Type
String
Example
1510