{% for k, v in blockArray[count]["camera"].iteritems() %}
- {% if v[1] %}
-
+ {% if v[0] %}
+
{% endif %}
+
diff --git a/templates/domoticz_counter_charts.html b/templates/domoticz_counter_charts.html
index 09c5f51..c6629f2 100644
--- a/templates/domoticz_counter_charts.html
+++ b/templates/domoticz_counter_charts.html
@@ -17,9 +17,9 @@
$(document).ready(function() {
{% for k, v in blockArray[count]["domoticz_counter_charts"].iteritems() %}
- ShowGeneralGraph("domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", 1, "{{v[2]}}", "{{v[1]}}");
+ ShowGeneralGraph("domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", 1, "{{v[3]}}", "{{v[2]}}");
$("div#title_block_{{count}} h2").html("{{k}}");
- setInterval(ShowGeneralGraph,60000,"domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", 1, "{{v[2]}}", "{{v[1]}}");
+ setInterval(ShowGeneralGraph,60000,"domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", 1, "{{v[3]}}", "{{v[2]}}");
{% endfor %}
});
diff --git a/templates/domoticz_percentage_charts.html b/templates/domoticz_percentage_charts.html
index 366d8c0..eca234c 100644
--- a/templates/domoticz_percentage_charts.html
+++ b/templates/domoticz_percentage_charts.html
@@ -17,9 +17,9 @@
$(document).ready(function() {
{% for k, v in blockArray[count]["domoticz_percentage_charts"].iteritems() %}
- ShowPercentageLog("domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", "{{v[1]}}");
+ ShowPercentageLog("domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", "{{v[2]}}");
$("div#title_block_{{count}} h2").html("{{k}}");
- setInterval(ShowPercentageLog,60000,"domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", "{{v[1]}}");
+ setInterval(ShowPercentageLog,60000,"domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", "{{v[2]}}");
{% endfor %}
});
diff --git a/templates/domoticz_smart_charts.html b/templates/domoticz_smart_charts.html
index eeac38c..c590fb9 100644
--- a/templates/domoticz_smart_charts.html
+++ b/templates/domoticz_smart_charts.html
@@ -17,9 +17,9 @@
$(document).ready(function() {
{% for k, v in blockArray[count]["domoticz_smart_charts"].iteritems() %}
- ShowSmartLog("domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", "{{v[2]}}", "{{v[1]}}");
+ ShowSmartLog("domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", "{{v[3]}}", "{{v[2]}}");
$("div#title_block_{{count}} h2").html("{{k}}");
- setInterval(ShowSmartLog,60000,"domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", "{{v[2]}}", "{{v[1]}}");
+ setInterval(ShowSmartLog,60000,"domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", "{{v[3]}}", "{{v[2]}}");
{% endfor %}
});
diff --git a/templates/domoticz_temp_charts.html b/templates/domoticz_temp_charts.html
index c53559e..81cca1d 100644
--- a/templates/domoticz_temp_charts.html
+++ b/templates/domoticz_temp_charts.html
@@ -17,9 +17,9 @@
$(document).ready(function() {
{% for k, v in blockArray[count]["domoticz_temp_charts"].iteritems() %}
- ShowTempLog("domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", "{{v[1]}}");
+ ShowTempLog("domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", "{{v[2]}}");
$("div#title_block_{{count}} h2").html("{{k}}");
- setInterval(ShowGeneralGraph,60000,"domoticz-chart-block-{{count}}",{{v[0]}},"{{k}}", "{{v[1]}}");
+ setInterval(ShowGeneralGraph,60000,"domoticz-chart-block-{{count}}",{{v[1]}},"{{k}}", "{{v[2]}}");
{% endfor %}
});
diff --git a/templates/donut_charts.html b/templates/donut_charts.html
index b216877..5c5fa3d 100644
--- a/templates/donut_charts.html
+++ b/templates/donut_charts.html
@@ -22,7 +22,7 @@ var donut_chart_block_{{count}} = Morris.Donut({
$(document).ready(function() {
var donutChartElements=[];
{% for k, v in blockArray[count]["donut_charts"].iteritems() %}
- donutChartElements.push("{{v[0]}}");
+ donutChartElements.push("{{v[1]}}");
{% endfor %}
redrawDonutChart(donutChartElements, donut_chart_block_{{count}});
setInterval(redrawDonutChart,9000,donutChartElements, donut_chart_block_{{count}});
diff --git a/templates/footer.html b/templates/footer.html
index cccf9dd..2c87061 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -9,18 +9,23 @@
-