Subwoofer
This tutorial provides a step-by-step guide to retrieving subwoofer information in a Nureva® audio system using the available API.
Supported devices
- HDX
What can be controlled with the API?
- Get information about the configured subwoofer
Minimum role required: general
generalThe Get devices and Get device endpoints can be accessed with the general role (recommended) or any role of a higher level. Follow the Authorization tutorial to authenticate with a general role and obtain YOUR_GENERAL_AUTHPARAMETERS which is required for the requests below.
Overview
-
Use Get devices to make a request to get all peripheral configurations.
-
Use Get device to get a specific peripheral configuration.
Instructions
Step 1 - Make a request to get all peripheral configurations
To get all peripheral configurations, use the Get devices endpoint.
- Set the path with the IP address of the Nureva device followed by
/api/v1/room/devices. - Update the headers to include
Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint using thegeneralaccount. - Update the headers to include
Nureva-Client-Idas key andintegration_app_nameas the value. - Update the headers to include
Nureva-Client-Versionas key and0.0.1as the value. - Send the GET request. The code sample below is a request to retrieve the peripherals for the Nureva device with the IP address of
10.0.0.1.
Example of request
curl --request GET \
--url https://10.0.0.1/api/v1/room/devices \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \- If the call is successful, an HTTP status code of 200 OK and the Nureva device details together with all its peripherals will be returned.
Example of response
{
"devices": [
{
"deviceId": "MK072S69M025060",
"deviceType": "nu-audio-device",
"audioDeviceType": "HDX",
"deviceStatusColor": "green",
"hardwareComponents": [
{
"portNumber": 1,
"connectionStatus": "Connected",
"hardwareId": "AAFDE9C1E2E7",
"model": "HDX_AudioBar"
},
{
"portNumber": 5,
"connectionStatus": "Connected",
"hardwareId": "XXXXX0X0X0X5",
"model": "HDX_MicPod"
}
]
},
{
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"deviceType": "subwoofer",
"customName": "Subwoofer"
}
]
}Step 2 - Make a request to get subwoofer configuration
To get the subwoofer configuration of a single peripheral, use the Get device endpoint.
- Set the path with the IP address of the Nureva device followed by
/api/v1/room/devices/<deviceId>, wheredeviceIdis the ID of the peripheral. - Update the headers to include
Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint using thegeneralaccount. - Update the headers to include
Nureva-Client-Idas key andintegration_app_nameas the value. - Update the headers to include
Nureva-Client-Versionas key and0.0.1as the value. - Send the GET request. The code sample below is a request to retrieve the subwoofer settings for the Nureva device with the IP address of
10.0.0.1and device IDxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Example of request
curl --request GET \
--url https://10.0.0.1/api/v1/room/devices/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \- If the call is successful, an HTTP status code of 200 OK and the specified peripheral configuration will be returned.
Example of response
{
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"deviceType": "subwoofer",
"customName": "Subwoofer"
}
Tutorial complete!You now understand how to retrieve subwoofer information.
Updated 14 days ago
