climate state in webapp
This commit is contained in:
parent
2dab738d31
commit
98d2f0e7e1
|
@ -60,15 +60,6 @@
|
|||
}
|
||||
|
||||
|
||||
el = document.createElement('p');
|
||||
el.appendChild(document.createTextNode("Full charge state:"));
|
||||
|
||||
state_json = document.createElement('pre');
|
||||
state_json.appendChild(document.createTextNode(JSON.stringify(state.charge_state, null, '\t')));
|
||||
el.appendChild(state_json);
|
||||
info_div.appendChild(el);
|
||||
|
||||
|
||||
home = document.createElement('p');
|
||||
if (state.location_data.home) {
|
||||
home.appendChild(document.createTextNode("At home"));
|
||||
|
@ -77,6 +68,25 @@
|
|||
}
|
||||
|
||||
info_div.appendChild(home);
|
||||
|
||||
|
||||
el = document.createElement('p');
|
||||
el.appendChild(document.createTextNode("Full charge state:"));
|
||||
|
||||
state_json = document.createElement('pre');
|
||||
state_json.appendChild(document.createTextNode(JSON.stringify(state.charge_state, null, '\t')));
|
||||
el.appendChild(state_json);
|
||||
info_div.appendChild(el);
|
||||
|
||||
el = document.createElement('p');
|
||||
el.appendChild(document.createTextNode("Full climate state:"));
|
||||
|
||||
state_json = document.createElement('pre');
|
||||
state_json.appendChild(document.createTextNode(JSON.stringify(state.climate_state, null, '\t')));
|
||||
el.appendChild(state_json);
|
||||
info_div.appendChild(el);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function get_emoji(charge_state) {
|
||||
|
|
Loading…
Reference in a new issue