createNoiseMeterInstance
const url = 'https://example.com/api/v1/plugins/noise-meter/instances';const options = { method: 'POST', headers: {'X-CSRF-Token': 'example', 'Content-Type': 'application/json'}, body: '{"name":"example","message":"example","warningLevel":60,"loudLevel":80,"sensitivity":100,"triggerHoldMs":1000,"clearHoldMs":3000,"displayMode":"overlay","heightPx":96,"scheduleEnabled":false,"scheduleDaysOfWeek":[1],"scheduleStartTime":"example","scheduleEndTime":"example","scheduleTimezone":"UTC","enabled":true,"targetScope":"all","targetIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/plugins/noise-meter/instances \ --header 'Content-Type: application/json' \ --header 'X-CSRF-Token: example' \ --data '{ "name": "example", "message": "example", "warningLevel": 60, "loudLevel": 80, "sensitivity": 100, "triggerHoldMs": 1000, "clearHoldMs": 3000, "displayMode": "overlay", "heightPx": 96, "scheduleEnabled": false, "scheduleDaysOfWeek": [ 1 ], "scheduleStartTime": "example", "scheduleEndTime": "example", "scheduleTimezone": "UTC", "enabled": true, "targetScope": "all", "targetIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Thresholds for the Linux Player’s room noise bar. Levels are a relative 0-100 scale measured against that player’s own microphone; they are not dB, dBA, or SPL, and no audio, sample, or microphone identifier is exchanged in either direction. warningLevel must be below loudLevel: one threshold used for both showing and hiding makes the bar flap.
object
Replaces the bar’s own TOO LOUD label. Empty is allowed.
Where the yellow zone begins, and the level the room must stay below before the bar hides.
Where the red zone begins and the bar can appear.
Percentage applied to the captured signal before normalization, for a microphone that reads quiet or hot. Not a calibration.
How long the room must stay loud before the bar appears.
How long it must stay below warningLevel before the bar hides.
When false the bar may show whenever the room is too loud. A window governs the bar alone; the room is measured either way.
Days the window may start on, Sunday 0 through Saturday 6.
At or before the start is an overnight window belonging to the start day. The window is half-open, so the end minute is outside it.
Responses
Section titled “ Responses ”Noise Meter instance created
Typed configuration
Owner or Administrator required