SDK Documentation

load

load(self, config)
"""
Loads the serialized triggers from a file or json object and prepares them for evaluation.

Parameters:
file: String containing the path to a file or dictionary containing the serialized triggers.
"""

evaluate

evaluate(self, state)
"""
Evaluates the state of the device against created triggers.

Parameters:
state: Dictionary containing state data of the device.

Returns:
A list of tuples containing (trigger_id [string], fired_status [boolean], status_code[int]). 
"""

Logs will be stored in /dev/null when logging is enabled and pushed by the update service to either Scale's backend or the update server.


Did this page help you?