TJBot configuration
Raspberry Pi hardware driver
Raspberry Pi model on which TJBot is running
Static ReadonlyHardwareHardware list
Static ReadonlyVERSIONTJBot library version
Moves TJBot's arm all the way back. If this method doesn't move the arm all the way back, the servo motor stop point defined in TJBot.Servo.ARM_BACK may need to be overridden. Valid servo values are in the range [500, 2300].
Resolves when the arm is fully back.
Classify an image using the configured vision engine.
Image buffer or file path
Describe an image using the configured vision engine (Azure only).
Image buffer or file path
Detect faces in an image using the configured vision engine.
Image buffer or file path
Detect objects in an image using the configured vision engine.
Image buffer or file path
List the AI/ML models on this device.
OptionalmodelType: ModelTypeArray of installed model keys
Initialize TJBot with configuration. Can be called multiple times to reconfigure. Performs cleanup of previous initialization, loads configuration, detects hardware, initializes all configured hardware and AI models eagerly.
OptionaloverrideConfig: Partial<TJBotConfigSchema>(optional) Configuration object to overlay on top of loaded config.
OptionalrecipeConfigPath: string(optional) Path to recipe configuration file (default: recipe.toml in current working directory)
Listen for a spoken utterance (streaming mode - uses callbacks).
Callback for partial transcription results
Callback for final transcription result
Promise that resolves when transcription completes
Lowers TJBot's arm. If this method doesn't move the arm all the way back, the servo motor stop point defined in TJBot.Servo.ARM_DOWN may need to be overridden. Valid servo values are in the range [500, 2300].
Resolves when the arm is fully lowered.
Play a sound at the specified path.
The path to the sound file to be played.
Pulse the LED a single time.
The color to shine the LED. May be specified in a number of
formats, including: hexadecimal, (e.g. "0xF12AC4", "11FF22", "#AABB24"), "on", "off",
or may be a named color in the colornames package. Hexadecimal colors
follow an #RRGGBB format.
The duration the pulse should last. The duration should be in the range [0.5, 2.0] seconds.
A promise that resolves when the LED pulse animation completes.
https://github.com/timoxley/colornames|Colornames for a list of color names.
Raises TJBot's arm. If this method doesn't move the arm all the way back, the servo motor stop point defined in TJBot.Servo.ARM_UP may need to be overridden. Valid servo values are in the range [500, 2300].
Resolves when the arm is fully raised.
Get a random color.
Random named color.
Change the level of TJBot's logging.
Logging level (see Winston's list of logging levels)
Change the color of the LED.
The color to shine the LED. May be specified in a number of
formats, including: hexadecimal, (e.g. "0xF12AC4", "11FF22", "#AABB24"), "on", "off",
or may be a named color in the colornames package. Hexadecimal colors
follow an #RRGGBB format.
A promise that resolves when the LED color has been set.
https://github.com/timoxley/colornames|Colornames for a list of color names.
Get the list of all colors recognized by TJBot.
List of all named colors recognized by shine() and pulse().
Sleep for the specified number of seconds.
Number of seconds to sleep
StaticgetStaticgetGet recipe-specific configuration. This method can be used before calling TJBot.getInstance().initialize()
in case a recipe needs to dynamically determine which hardware components should be configured.
(optional) Path to recipe configuration file (default: recipe.toml in current working directory)
The recipe configuration as a key-value object. If no recipe configuration file is found, returns an empty object.
Class representing a TJBot