climate state in webapp

This commit is contained in:
Alex Janka 2024-01-15 13:01:36 +11:00
parent 2dab738d31
commit 98d2f0e7e1

View file

@ -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'); home = document.createElement('p');
if (state.location_data.home) { if (state.location_data.home) {
home.appendChild(document.createTextNode("At home")); home.appendChild(document.createTextNode("At home"));
@ -77,6 +68,25 @@
} }
info_div.appendChild(home); 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) { function get_emoji(charge_state) {