From 98d2f0e7e192910151c4877b344ea761b79cd173 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 15 Jan 2024 13:01:36 +1100 Subject: [PATCH] climate state in webapp --- webapp/index.html | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/webapp/index.html b/webapp/index.html index e800e40..0d1629a 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -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) {