2020-11-10 19:40:42 +00:00
{% extends 'base.html' %}
{% block content_inner %}
{% if data %}
2021-04-17 20:28:57 +00:00
< form action = "/config/server/update" method = "POST" >
2020-11-10 19:40:42 +00:00
< label for = "host" > Server Host:< / label >
< input type = "text" id = "host" name = "host" class = "form-control" value = "{{data.state.host}}" >
< br >
< label for = "port" > Server Port:< / label >
< input type = "number" id = "port" name = "port" class = "form-control" value = "{{data.state.port}}" >
< br >
2021-04-04 21:34:46 +00:00
< label for = "port" > WebSockets Port:< / label >
< input type = "number" id = "ws_port" name = "ws_port" class = "form-control" value = "{{data.state.ws_port}}" >
< br >
2020-11-10 19:40:42 +00:00
< label for = "name" > Server Name:< / label >
< input type = "text" id = "name" name = "name" class = "form-control" value = "{{data.state.server_name}}" >
< br >
< label for = "channels" > Number of Channels:< / label >
< input type = "number" id = "channels" name = "channels" class = "form-control" value = "{{data.state.num_channels}}" >
2021-04-04 21:34:46 +00:00
< br >
2021-04-05 21:13:53 +00:00
< label for = "serial_port" > BAPS Controller Serial Port:< / label >
< select class = "form-control" name = "serial_port" >
2021-04-04 21:34:46 +00:00
< label > Serial Ports< / label >
{% for port in data.ser_ports %}
2021-04-05 21:13:53 +00:00
< option value = "{{port}}" { % if port = = data . state . serial_port % } selected { % endif % } > {{port}}< / option >
2021-04-04 21:34:46 +00:00
{% endfor %}
< / select >
2021-04-10 22:59:49 +00:00
< hr >
< label for = "myradio_base_url" > MyRadio Base URL:< / label >
< input type = "text" id = "myradio_base_url" name = "myradio_base_url" class = "form-control" value = "{{data.state.myradio_base_url}}" >
2021-04-04 21:34:46 +00:00
< br >
2021-04-10 22:59:49 +00:00
< label for = "myradio_api_url" > MyRadio API URL:< / label >
< input type = "text" id = "myradio_api_url" name = "myradio_api_url" class = "form-control" value = "{{data.state.myradio_api_url}}" >
< br >
< label for = "myradio_api_key" > MyRadio API Key:< / label >
< input type = "text" id = "myradio_api_key" name = "myradio_api_key" class = "form-control" placeholder = "Hidden ({% if data.state.myradio_api_key %}value set, type to replace{% else %}value not set yet{% endif %})" value = "" >
2021-04-22 22:14:55 +00:00
< br >
< label for = "myradio_api_tracklist_source" > Tracklist Source ID (char):< / label >
< input type = "text" id = "myradio_api_tracklist_source" name = "myradio_api_tracklist_source" class = "form-control" value = "{{data.state.myradio_api_tracklist_source}}" >
< br >
< label for = "serial_port" > Tracklist Mode:< / label >
< select class = "form-control" name = "tracklist_mode" >
< label > Modes< / label >
{% for mode in data.tracklist_modes %}
< option value = "{{mode}}" { % if mode = = data . state . tracklist_mode % } selected { % endif % } > {{ mode.capitalize() }}< / option >
{% endfor %}
< / select >
2021-06-20 23:22:29 +00:00
< p > < small >
Delayed tracklisting is 20s, to account for cueing with fader down.< br >
Fader Live means if a BAPS Controller is present with support, tracklists will trigger only if fader is up.
< / small > < / p >
2021-09-30 18:12:26 +00:00
< label for = "serial_port" > Normalisation:< / label >
< select class = "form-control" name = "normalisation_mode" >
< label > Modes< / label >
{% for mode in data.normalisation_modes %}
< option value = "{{mode}}" { % if mode = = data . state . normalisation_mode % } selected { % endif % } > {{ mode.capitalize() }}< / option >
{% endfor %}
< / select >
< p > < small >
2022-03-19 17:54:39 +00:00
Normalisation requests significant CPU requirements, if you're finding the CPU usage is too high / causing audio glitches, disable this feature. < code > ffmpeg< / code > or < code > avconf< / code > required.
2021-09-30 18:12:26 +00:00
< / small > < / p >
2021-04-10 22:59:49 +00:00
< hr >
2021-04-04 21:34:46 +00:00
< input type = "submit" class = "btn btn-primary" value = "Save & Restart Server" >
2020-11-10 19:40:42 +00:00
< / form >
{% endif %}
2021-04-04 21:34:46 +00:00
{% endblock %}