Actions and Methods
- An action is one-way direction, it's a function that will be triggered from the renderer but does not expect to send an answer
- A method is two-way direction, it's a function that will be triggered from the renderer and expects an answer
Bee
These endpoints are used to manage the bees within the system:
General
Methods
createBee: Adds a new bee to the swarm.deleteBee: Deletes a bee from the swarm.updateBee: Updates the configuration for a specific bee.getCurrentBeeStates: Gets the current bee state, which bees are online and what their network performance is.fetchBee: Retrieves data for a specific bee.fetchActiveBees: Retrieves data for a bees that are active (in the swarm)fetchActiveBeesData: Retrieves data for a bees that are active (in the swarm)fetchAllBees: Retrieves a list of all bees in the system.fetchAllBeesData: Retrieves data for all beesfetchInActiveBees: Retrieves a list of inactive bees.fetchInActiveBeesData: Retrieves a list of inactive bees.
Actions
setBeeActive: Activates or deactivates a bee.setBeePozyxTagId: Connects a bee to a Pozyx tag id
Jack and Jacktrip Control
These endpoints control the Jack audio system and Jacktrip for audio streaming between bees:
Methods
killJackAndJacktrip: Stops both Jack and Jacktrip.killJack: Stops the Jack audio server.killJacktrip: Stops the Jacktrip audio stream.makeAudioConnection: Makes a Jack audio connectionstartJack: Starts the Jack audio server.startJackWithJacktripHubClient: Starts Jack and sets up a Jacktrip HUB client connectionstartJackWithJacktripP2PServer: Starts Jack and sets up Jacktrip peer-to-peer server. This is needed if kweenb wants to conect with a bee in P2P mode.
Audio Triggering
These endpoints handle audio-related operations such as managing audio files, configuring audio parameters, and controlling the audio stream:
Methods
deleteAudio: Deletes an audio file on the beegetAudioFiles: Retrieves a list of available audio filesgetAudioScenes: Fetches the current audio sceneskillPureData: Kills the Pure Data process on the beesetAudioParam: Sets an audio parameter for a specific bee (volue, low, mid, high)setAudioParamForAllBees: Sets an audio parameter for all bees (volue, low, mid, high)startAudio: Starts playing a filestopAudio: Stops the audio file playingstartPureData: Start Pure Data on the beeuploadAudioFiles: Uploads new audio files.
KweenB
General
Methods
kweenb:getKweenBVersion: Gets the kweenb version.kweenb:openDialog: Opens a dialog.
Jack and Jacktrip Control
Methods
kweenb:calculateCurrentLatency: Calculates the latency with current Jack and Jacktrip settingkweenb:isJackAndJacktripInstalled: Check if Jack and Jacktrip is installed on the local computerkweenb:killJackAndJacktrip: Kill Jack and Jacktrip on the local computerkweenb:startJacktripHubServer: Starts a Jacktrip Hub server on the local computerkweenb:startJackWithJacktripHubClient: Start Jack with a Jacktrip hub clientkweenb:startJackWithJacktripP2PClient: Start Jack with a Jacktrip P2P clientkweenb:makeHubAudioConnections: Makes all hub Jack audio connections (from kweenb to kweenb-remote to bee)kweenb:makeP2PAudioConnections: Makes all P2P Jack audio connections (straight from kween to a bee)kweenb:disconnectP2PAudioConnections: Disconnect the P2P Jack audio connectionskweenb:makeAudioConnection: Make a single Jack audio connection in Jack
Actions
kweenb:setJackFolderPath: Sets the Jack binary folder pathkweenb:setJacktripBinPath: Sets the Jacktrip binary folder path
Settings
General
Methods
setting:fetchSettings: Get all the settingssetting:updateSetting: Update a specific setting
Presets
General
Methods
presets:getAudioPresets: Get audio presetspresets:activatePreset: This will get the preset and overwrites the settings in kween matching this preset
Positioning
General
Methods
positioning:connectPozyxMqttBroker: Connect to the Pozyx MQTT brokerpositioning:getAllTagIds: Get all tag idspositioning:getTargetsAndOptionsForAlgorithm: Get the targets and options for an algorithm
Actions
positioning:disconnectPozyxMqttBrokers: Disconnect from the Pozyx MQTT brokerpositioning:enablePositioningControllerTargetType:positioning:enablePositioningControllerAlgorithm":positioning:updatePositioningControllerAlgorithmOptions: