Get the global settings (in-memory snapshot)
curl --request GET \
--url http://localhost:6063/settingsimport requests
url = "http://localhost:6063/settings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:6063/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6063",
CURLOPT_URL => "http://localhost:6063/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:6063/settings"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:6063/settings")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6063/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"music_dir": "/Users/tsirysandratraina/Music",
"volume_limit": 320,
"balance": 0,
"bass": 1,
"treble": 0,
"channel_config": 0,
"stereo_width": 100,
"crossfade": 5,
"crossfade_fade_in_delay": 7,
"crossfade_fade_out_delay": 7,
"crossfade_fade_in_duration": 1,
"crossfade_fade_out_duration": 1,
"playlist_shuffle": false,
"repeat_mode": 846620009,
"eq_enabled": true,
"eq_precut": 7,
"eq_band_settings": [
{
"cutoff": -16,
"q": 64,
"gain": 10
},
{
"cutoff": 9,
"q": 125,
"gain": 10
},
{
"cutoff": 21,
"q": 250,
"gain": 10
},
{
"cutoff": 9,
"q": 500,
"gain": 10
},
{
"cutoff": -35,
"q": 1000,
"gain": 10
},
{
"cutoff": -81,
"q": 2000,
"gain": 10
},
{
"cutoff": -41,
"q": 4000,
"gain": 10
},
{
"cutoff": 1,
"q": 8000,
"gain": 10
},
{
"cutoff": 15,
"q": 16000,
"gain": 7
},
{
"cutoff": 24,
"q": 0,
"gain": 0
}
],
"replaygain_settings": {
"noclip": true,
"type": 0,
"preamp": 0
},
"compressor_settings": {
"threshold": -24,
"makeup_gain": 0,
"ratio": 4,
"knee": 1,
"release_time": 300,
"attack_time": 5
},
"dithering_enabled": true,
"timestretch_enabled": false,
"play_frequency": 3400,
"surround_enabled": 0,
"surround_balance": -25
}Settings
Get the global settings (in-memory snapshot)
GET
/
settings
Get the global settings (in-memory snapshot)
curl --request GET \
--url http://localhost:6063/settingsimport requests
url = "http://localhost:6063/settings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:6063/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6063",
CURLOPT_URL => "http://localhost:6063/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:6063/settings"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:6063/settings")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6063/settings")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"music_dir": "/Users/tsirysandratraina/Music",
"volume_limit": 320,
"balance": 0,
"bass": 1,
"treble": 0,
"channel_config": 0,
"stereo_width": 100,
"crossfade": 5,
"crossfade_fade_in_delay": 7,
"crossfade_fade_out_delay": 7,
"crossfade_fade_in_duration": 1,
"crossfade_fade_out_duration": 1,
"playlist_shuffle": false,
"repeat_mode": 846620009,
"eq_enabled": true,
"eq_precut": 7,
"eq_band_settings": [
{
"cutoff": -16,
"q": 64,
"gain": 10
},
{
"cutoff": 9,
"q": 125,
"gain": 10
},
{
"cutoff": 21,
"q": 250,
"gain": 10
},
{
"cutoff": 9,
"q": 500,
"gain": 10
},
{
"cutoff": -35,
"q": 1000,
"gain": 10
},
{
"cutoff": -81,
"q": 2000,
"gain": 10
},
{
"cutoff": -41,
"q": 4000,
"gain": 10
},
{
"cutoff": 1,
"q": 8000,
"gain": 10
},
{
"cutoff": 15,
"q": 16000,
"gain": 7
},
{
"cutoff": 24,
"q": 0,
"gain": 0
}
],
"replaygain_settings": {
"noclip": true,
"type": 0,
"preamp": 0
},
"compressor_settings": {
"threshold": -24,
"makeup_gain": 0,
"ratio": 4,
"knee": 1,
"release_time": 300,
"attack_time": 5
},
"dithering_enabled": true,
"timestretch_enabled": false,
"play_frequency": 3400,
"surround_enabled": 0,
"surround_balance": -25
}Response
200 - application/json
Settings
Live global_settings snapshot. Fields mirror apps/settings.h.
Available options:
builtin, fifo, airplay, squeezelite, chromecast, snapcast_tcp, upnp Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I