moved Dashboard.html in speparate folder to refresh zones.

This commit is contained in:
schrom01
2022-08-25 13:24:11 +02:00
parent 442a7a8b11
commit 1066adcc63
5 changed files with 29 additions and 172 deletions
+8 -3
View File
@@ -5,11 +5,16 @@
<link rel="stylesheet" href="{{ url_for('static', filename='Styles/main.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='Styles/switch.css') }}">
<meta charset="UTF-8">
<meta http-equiv="refresh" content="5" >
<!-- <meta http-equiv="refresh" content="5" > -->
<script>
function executeAction(command, index, value) {
send_web_request('{{url_for("executeAction")}}', 'no', 'command=' + command + '&index=' + index + '&value=' + value);
function executeAction(command, index, value, elementId) {
var url = '{{url_for("executeAction")}}';
var messageString = 'no';
var varString = 'command=' + command + '&index=' + index + '&value=' + value;
send_web_request(url, messageString, varString, elementId);
}
</script>
</head>