diff --git a/src/views/device-manage.mustache b/src/views/device-manage.mustache index b38a2a8..816ebb2 100644 --- a/src/views/device-manage.mustache +++ b/src/views/device-manage.mustache @@ -58,6 +58,13 @@ {{Reboot Device}}
+ + {{Brightness}} + + + + + {{Device Logs}} @@ -185,6 +192,26 @@ }); } + function sendBrightness(brightnessElement) { + const clientip = $('#client_ip').val(); + const brightness = $('#brightness').val(); + const url = `http://${clientip}:{{webserver_port}}/brightness?value=${brightness}`; + console.log('brightness:', url); + $.ajax({ + url: url, + type: 'POST', + async: true, + success: function (result, textStatus, jqXHR) { + //$('#' + id).text(text); + }, + error: function(xhr, textStatus, errorThrown) { + //$('#' + id).text('Error'); + console.error('Error:', textStatus); + console.error('Error Thrown:', errorThrown); + } + }); + } + function sendImageData(id, imageData) { $.ajax({ url: '/api/device/screen/{{name}}', diff --git a/static/locales/de.json b/static/locales/de.json index ff2f2f1..a0e64c6 100644 --- a/static/locales/de.json +++ b/static/locales/de.json @@ -144,5 +144,6 @@ "Timezone": "Timezone", "Clear Device IP Addresses": "Clear Device IP Addresses", "Model": "Model", - "Exclude From Reboots": "Exclude From Reboots" + "Exclude From Reboots": "Exclude From Reboots", + "Brightness": "Helligkeit" } diff --git a/static/locales/en.json b/static/locales/en.json index 847ff4e..1986e90 100644 --- a/static/locales/en.json +++ b/static/locales/en.json @@ -144,5 +144,6 @@ "Timezone": "Timezone", "Clear Device IP Addresses": "Clear Device IP Addresses", "Model": "Model", - "Exclude From Reboots": "Exclude From Reboots" + "Exclude From Reboots": "Exclude From Reboots", + "Brightness": "Brightness" } diff --git a/static/locales/es.json b/static/locales/es.json index 4fa64a0..14435d0 100644 --- a/static/locales/es.json +++ b/static/locales/es.json @@ -142,5 +142,6 @@ "Timezone": "Timezone", "Clear Device IP Addresses": "Clear Device IP Addresses", "Model": "Model", - "Exclude From Reboots": "Exclude From Reboots" + "Exclude From Reboots": "Exclude From Reboots", + "Brightness": "Brightness" }