diff --git a/byd_bat/webif/templates/index.html b/byd_bat/webif/templates/index.html
index 6c9f57ea6..cc25237ce 100644
--- a/byd_bat/webif/templates/index.html
+++ b/byd_bat/webif/templates/index.html
@@ -61,69 +61,23 @@
if (dataSet === 'devices_info' || dataSet === null) {
var objResponse = JSON.parse(response);
+ shngInsertText('batttype',objResponse['batttype']);
shngInsertText('bydip',objResponse['bydip']);
- shngInsertText('imppath',objResponse['imppath']);
- shngInsertText('last_homedata',objResponse['last_homedata']);
- shngInsertText('last_diagdata',objResponse['last_diagdata']);
-
- shngInsertText('current',objResponse['current']);
- shngInsertText('power',objResponse['power']);
- shngInsertText('power_charge',objResponse['power_charge']);
- shngInsertText('power_charge2',objResponse['power_charge']);
- shngInsertText('power_discharge',objResponse['power_discharge']);
- shngInsertText('power_discharge2',objResponse['power_discharge']);
shngInsertText('soc',objResponse['soc']);
- shngInsertText('soc2',objResponse['soc']);
- shngInsertText('soh',objResponse['soh']);
- shngInsertText('tempbatt',objResponse['tempbatt']);
- shngInsertText('tempmax',objResponse['tempmax']);
- shngInsertText('tempmin',objResponse['tempmin']);
- shngInsertText('voltbatt',objResponse['voltbatt']);
- shngInsertText('voltdiff',objResponse['voltdiff']);
- shngInsertText('voltmax',objResponse['voltmax']);
- shngInsertText('voltmin',objResponse['voltmin']);
- shngInsertText('voltout',objResponse['voltout']);
-
- shngInsertText('bms',objResponse['bms']);
- shngInsertText('bmu',objResponse['bmu']);
- shngInsertText('bmubanka',objResponse['bmubanka']);
- shngInsertText('bmubankb',objResponse['bmubankb']);
- shngInsertText('batttype',objResponse['batttype']);
- shngInsertText('batttype2',objResponse['batttype']);
- shngInsertText('errorstr',objResponse['errorstr']);
- shngInsertText('grid',objResponse['grid']);
- shngInsertText('invtype',objResponse['invtype']);
- shngInsertText('modules',objResponse['modules']);
- shngInsertText('bmsqty',objResponse['bmsqty']);
shngInsertText('capacity_total',objResponse['capacity_total']);
- shngInsertText('paramt',objResponse['paramt']);
- shngInsertText('serial',objResponse['serial']);
+ shngInsertText('power_charge',objResponse['power_charge']);
+ shngInsertText('power_discharge',objResponse['power_discharge']);
+ shngInsertText('last_homedata',objResponse['last_homedata']);
+ shngInsertText('last_diagdata',objResponse['last_diagdata']);
+ shngInsertText('imppath',objResponse['imppath']);
+ document.getElementById('connection').checked = objResponse['connection'];
- shngInsertText('t1_soc',objResponse['t1_soc']);
- shngInsertText('t1_bat_voltag',objResponse['t1_bat_voltag']);
- shngInsertText('t1_v_out',objResponse['t1_v_out']);
- shngInsertText('t1_current',objResponse['t1_current']);
- shngInsertText('t1_volt_max',objResponse['t1_volt_max']);
- shngInsertText('t1_volt_min',objResponse['t1_volt_min']);
- shngInsertText('t1_temp_max',objResponse['t1_temp_max']);
- shngInsertText('t1_temp_min',objResponse['t1_temp_min']);
- shngInsertText('t2_soc',objResponse['t2_soc']);
- shngInsertText('t2_bat_voltag',objResponse['t2_bat_voltag']);
- shngInsertText('t2_v_out',objResponse['t2_v_out']);
- shngInsertText('t2_current',objResponse['t2_current']);
- shngInsertText('t2_volt_max',objResponse['t2_volt_max']);
- shngInsertText('t2_volt_min',objResponse['t2_volt_min']);
- shngInsertText('t2_temp_max',objResponse['t2_temp_max']);
- shngInsertText('t2_temp_min',objResponse['t2_temp_min']);
- shngInsertText('t3_soc',objResponse['t3_soc']);
- shngInsertText('t3_bat_voltag',objResponse['t3_bat_voltag']);
- shngInsertText('t3_v_out',objResponse['t3_v_out']);
- shngInsertText('t3_current',objResponse['t3_current']);
- shngInsertText('t3_volt_max',objResponse['t3_volt_max']);
- shngInsertText('t3_volt_min',objResponse['t3_volt_min']);
- shngInsertText('t3_temp_max',objResponse['t3_temp_max']);
- shngInsertText('t3_temp_min',objResponse['t3_temp_min']);
-
+ shngInsertText('r1_table',objResponse['r1_table']);
+ shngInsertText('r2_table',objResponse['r2_table']);
+ shngInsertText('r3_table',objResponse['r3_table']);
+ shngInsertText('r4_table',objResponse['r4_table']);
+ shngInsertText('r5_table',objResponse['r5_table']);
+
var source = 'static/img/bydvt1.png',
timestamp = (new Date()).getTime(),
newUrl = source + '?_=' + timestamp;
@@ -136,6 +90,20 @@
timestamp = (new Date()).getTime(),
newUrl = source + '?_=' + timestamp;
document.getElementById("bydvt3").src = newUrl;
+
+ var source = 'static/img/bydvbt1.png',
+ timestamp = (new Date()).getTime(),
+ newUrl = source + '?_=' + timestamp;
+ document.getElementById("bydvbt1").src = newUrl;
+ var source = 'static/img/bydvbt2.png',
+ timestamp = (new Date()).getTime(),
+ newUrl = source + '?_=' + timestamp;
+ document.getElementById("bydvbt2").src = newUrl;
+ var source = 'static/img/bydvbt3.png',
+ timestamp = (new Date()).getTime(),
+ newUrl = source + '?_=' + timestamp;
+ document.getElementById("bydvbt3").src = newUrl;
+
var source = 'static/img/bydtt1.png',
timestamp = (new Date()).getTime(),
newUrl = source + '?_=' + timestamp;
@@ -191,6 +159,15 @@
}
});
+
+
+
{% block buttons %}
-{% if 1==2 %}
+{% if 1==1 %}
-
+ {{ _('Verbindung') }}
{% endif %}
{% endblock %}
@@ -253,7 +230,7 @@
-{% set tabcount = 4 %}
+{% set tabcount = 5 %}
{% set tab2title = ""+_('BYD Diagnose')+"" %}
{% block bodytab2 %}
-
-
-
-
-
- |
- Turm 1 |
- Turm 2 |
- Turm 3 |
-
-
-
-
- SOC: |
- |
- |
- |
-
-
- {{ _('Batteriespannung') }}: |
- |
- |
- |
-
-
- {{ _('Spannung Out') }}: |
- |
- |
- |
-
-
- {{ _('Strom') }}: |
- |
- |
- |
-
-
- {{ _('Spannung max (Zelle)') }}: |
- |
- |
- |
-
-
- {{ _('Spannung min (Zelle)') }}: |
- |
- |
- |
-
-
- {{ _('Temperatur max (Zelle)') }}: |
- |
- |
- |
-
-
- {{ _('Temperatur min (Zelle)') }}: |
- |
- |
- |
-
-
-
+
{% endblock bodytab2 %}
@@ -471,12 +286,21 @@
|
+
+ |
+
|
+
+ |
+
|
+
+ |
+
{% endblock bodytab3 %}
@@ -486,6 +310,7 @@
-->
{% set tab4title = "
"+_('BYD Temperaturen')+"" %}
{% block bodytab4 %}
+
|
@@ -498,3 +323,45 @@
{% endblock bodytab4 %}
+
+
+{% set tab5title = "
"+_('BYD Log-Daten')+"" %}
+{% block bodytab5 %}
+
+
+
+{% endblock bodytab5 %}