Skip to main content

veilleConfig (since v4.0.0)

Usage

This parameter allows you to configure the standby feature built into Retorik Framework. Its definition is as follows:

interface VeilleConfiguration {
enabled?: boolean
killConversationOnLaunch?: boolean
delayBeforeLaunchInSeconds?: number
views?: {
news?: {
enabled: boolean
muted?: boolean
}
screenSaver?: {
enabled: boolean
url: string
timerBeforeSwitchInSeconds?: number
}
slideShow?: {
enabled: boolean
urls: Array<string>
timerBeforeSwitchInSeconds?: number
}
}
autoExitFromWebcam?: boolean
}

There are 4 possible screens for standby mode, one default and 3 configurable ones that cycle through in sequence.

  • default: black screen with blinking text in English, visible if none of the 3 configurable screens are enabled
  • configurable (in order of appearance if multiple are present):
    • screenSaver: full-page image
    • news: news channel built into Retorik Framework
    • slideShow: slideshow of one or more images

Parameters

NameRequiredTypeDescription
enabledNobooleanStandby mode is enabled only if this parameter is true
killConversationOnLaunchNobooleanIf this parameter is true, a new conversation will be created when entering and exiting standby mode
delayBeforeLaunchInSecondsNonumberDelay in seconds of inactivity before standby mode is triggered
autoExitFromWebcamNobooleanIf this parameter is true and webcam access is granted, detecting a face in front of the webcam will automatically exit standby mode
viewsNoViewsConfiguration of the available views

Views

NameRequiredTypeDescription
newsNoNewsConfiguration of the news channel view
screenSaverNoScreenSaverConfiguration of the screen saver view
slideShowNoSlideShowConfiguration of the slideshow view

News

NameRequiredTypeDescription
enabledYesbooleanThe news channel view is enabled if this parameter is true
mutedNobooleanIf this parameter is true, the news channel audio will be muted

ScreenSaver

NameRequiredTypeDescription
enabledYesbooleanThe screen saver view is enabled if this parameter is true
urlYesstringURL of the image to display in full page
timerBeforeSwitchInSecondsNonumberDuration in seconds before switching to the next view (if multiple views are enabled)

SlideShow

NameRequiredTypeDescription
enabledYesbooleanThe slideshow view is enabled if this parameter is true
urlsYesArray<string>List of image URLs to display in the slideshow
timerBeforeSwitchInSecondsNonumberDuration in seconds before switching to the next view (if multiple views are enabled)