LogoLogo
Hub HomeDownloadsDocumentationReleases
  • Welcome
  • Introduction to HOLOPLOT
    • HOLOPLOT unique capabilities
    • HOLOPLOT technology
    • HOLOPLOT OS
      • Audio signal flow
    • Product family
  • user guides
    • HOLOPLOT system design
      • System design best practices
        • Introduction to sound system design
        • Which HOLOPLOT product is best suited to the application?
        • How do I decide on the position of my arrays?
        • What should be the size and aspect ratio of my arrays?
      • Beam design best practices
        • What are the fundamental principles of designing with beams?
        • How do I set up my coverage zones and what impact does that have on my design?
        • What are the different beam parameters and how do I apply them in my design?
        • How do I apply those beams in real world applications?
    • HOLOPLOT system deployment
      • Integration overview
      • Unboxing
      • Networking overview
      • AES67 Quick start guide
      • Advanced Network Configuration Tips
      • Power
      • Rigging
        • X1 Rigging Components
        • X1 standard rigging side plate attachment guide
        • X1 Standard rigging lifting procedures
        • X1 custom rigging
      • Venue validation
      • System operation & monitoring
      • Pairing the arrays & routing audio
      • Align and tune beams
      • Measurement and system optimization
    • Troubleshooting
  • HOLOPLOT Plan
    • Getting started
      • Recommended specifications
      • Installing HOLOPLOT Plan
      • Additional 3rd party tools
      • Navigating the interface
    • Onboarding videos
    • Importing 3D assets from SketchUp
      • Setting up the SketchUp toolkit
      • Installing the Khronos glTF Exporter for SketchUp
      • Defining zone types in SketchUp
      • Importing assets from SketchUp
    • Working with Matrix Arrays
      • Creating arrays
      • Moving arrays
    • Working with zones
      • Defining zone types
      • Drawing zones
      • Moving zones
    • Working with presets
      • Creating a preset
      • Working with preset layers
      • Working with environmental conditions
    • Working with beams
      • Creating a Parametric Beam
        • Adjusting Parametric Beam parameters
      • Creating a Virtual Source
        • Adjusting Virtual Source parameters
      • Creating a Coverage Beam
        • Assigning zones to a Coverage Beam
        • Adjusting Coverage Beam parameters
        • Optimizing a Coverage Beam
        • Working with beam variants (advanced)
      • Creating an LF Coverage Beam
        • Creating crossovers
      • Routing Beams
    • Simulation
      • Simulation controls
      • Tuning
      • Probe Mode
      • Simulating with S21 arrays
    • Saving & exporting
      • Exporting to AFMG EASE
  • HOLOPLOT Control
    • Getting started
      • Accessing HOLOPLOT Control
      • Navigating the interface
    • Configuring the system
      • Setting up system essentials
      • Managing a project
      • Pairing Modules
      • Network Settings - RAVENNA only
      • Stream Management - RAVENNA only
      • Setting up Analog mode on X2 Modules
    • Operating the system
      • Getting an overview of the active project
      • Routing streams to audio inputs
      • Switching presets and environmental conditions
      • Applying actions to the system
      • Tuning beams
      • Monitoring level meters
    • Maintaining the system
      • Monitoring device health
      • Module driver test
      • Module and Controller events
      • Module and Controllers Issues List
  • HOLOPLOT API
    • Getting started
    • Documentation
      • Arrays and modules
      • Beams and presets
      • Device health
      • Controllers
      • System operation
      • Spaces
    • Examples
      • Changing a preset
      • Adjusting the system's gain
Powered by GitBook
LogoLogo

HOLOPLOT

  • HOLOPLOT Website
  • Contact
  • Imprint
  • Privacy Policy

© 2024 HOLOPLOT GmbH. All rights reserved.

On this page

Was this helpful?

Export as PDF
  1. HOLOPLOT API
  2. Examples

Changing a preset

A couple of steps are needed to perform a preset change in our system.

  • Getting a list of spaces and presets

  • Patching a selected space with the desired preset

That data can be fetched from the interactive API or other HTTP request methods.

Getting a list of spaces

This is done through the GET /spaces method. Here is a sample data output. You can try it out yourself.

{
  "1ca6407b-05f7-4bee-ac93-ec8c19879749": {
    "name": "Conference breakout",
    "presets": {
      "023c3d35-5d5c-4def-aea2-3ae07c88ddae": {
        "name": "Preset 1 for Conference breakout"
      },
      "75258a79-f949-44e2-b248-519665a404f2": {
        "name": "Preset 2 for Conference breakout"
      }
    },
    "active_preset_id": "023c3d35-5d5c-4def-aea2-3ae07c88ddae",
    "active_environmental_conditions_id": null
  },
  "1d32edb0-4a56-4571-a6c5-49050ca06d51": {
    "name": "Main Hall",
    "presets": {
      "23d6cd0e-5b53-460b-9202-b152538850c0": {
        "name": "Preset 2 for Main Hall"
      },
      "51fa103c-44bb-4ccd-96f7-4c0c2d90c34f": {
        "name": "Preset 3 for Main Hall"
      },
      "9d2514db-0cf6-4cdf-86fc-362f16e3e6d7": {
        "name": "Preset 1 for Main Hall"
      }
    },
    "active_preset_id": "23d6cd0e-5b53-460b-9202-b152538850c0",
    "active_environmental_conditions_id": null,
    "environmental_conditions": {
      "temperature_celsius": 20,
      "atmospheric_pressure_pascal": 101325,
      "humidity_percentage": 50
    }
  },
  "e37c777e-a4b4-4edb-b9dc-d28a497517cf": {
    "name": "Food court",
    "presets": {
      "daa1d51e-9e16-47d7-b142-d6e921acf9bc": {
        "name": "Preset 1 for Food court"
      }
    },
    "active_preset_id": null,
    "active_environmental_conditions_id": null
  }
}

In the response above, you can already see the list of available spaces (“Conference breakout,” “Main Hall,” and “Food Court”) and their respective presets. Each space and Preset is referenced by a unique identifier (UUID).

For this example, let’s examine the “Main Hall”. Its ID is 1d32edb0-4a56-4571-a6c5-49050ca06d51.

…
  "1d32edb0-4a56-4571-a6c5-49050ca06d51": {
    "name": "Main Hall",
    "presets": {
      "23d6cd0e-5b53-460b-9202-b152538850c0": {
        "name": "Preset 2 for Main Hall"
      },
      "51fa103c-44bb-4ccd-96f7-4c0c2d90c34f": {
        "name": "Preset 3 for Main Hall"
      },
      "9d2514db-0cf6-4cdf-86fc-362f16e3e6d7": {
        "name": "Preset 1 for Main Hall"
      }
    },
    "active_preset_id": "23d6cd0e-5b53-460b-9202-b152538850c0",
    "active_environmental_conditions_id": null,
    "environmental_conditions": {
      "temperature_celsius": 20,
      "atmospheric_pressure_pascal": 101325,
      "humidity_percentage": 50
    }
  },
…

It has three available presets, and the currently active preset is Preset 2 for Main Hall.

Changing the active preset

We will use the PATCH /spaces/{space-id} method for this operation. We will change the active preset to Preset 1 for Main Hall. The method takes a request body with the following format:

{
  "active_preset_id": "51fa103c-44bb-4ccd-96f7-4c0c2d90c34f"
}

Using cURL

cURL is a program available on Windows 10 and above, MacOS, and Linux OS. It provides a simple way to interact with HTTP endpoints and test API requests. Whenever you use one of the API Methods in the interactive documentation, it will display the corresponding request as a cURL command. This makes it easy to copy, paste, and iterate the request.

curl -X 'PATCH' \
  'http://localhost:6789/spaces/1d32edb0-4a56-4571-a6c5-49050ca06d51' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "active_preset_id": "51fa103c-44bb-4ccd-96f7-4c0c2d90c34f"
}'

You should expect a response with the confirmed patched space when you send that.

Using QLab

You need to create a Script Cue and include the following code. The script is simply an AppleScript version of the cURL command.

do shell script "curl -X 'PATCH' 'http://localhost:6789/spaces/1d32edb0-4a56-4571-a6c5-49050ca06d51' -H 'accept: application/json'  -H 'Content-Type: application/json' -d '{
\"active_preset_id\": \"23d6cd0e-5b53-460b-9202-b152538850c0\" }'"
PreviousExamplesNextAdjusting the system's gain

Last updated 10 months ago

Was this helpful?

Request
Additional information in the API Application
Changing the preset