From 9dbac8c04520b329e1994af2020d355c46eac143 Mon Sep 17 00:00:00 2001 From: ananyevgv <81970899+ananyevgv@users.noreply.github.com> Date: Tue, 9 Jan 2024 00:56:50 +0300 Subject: [PATCH] Update basement-s3.yaml --- basement-s3.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/basement-s3.yaml b/basement-s3.yaml index b812402..9fe8424 100644 --- a/basement-s3.yaml +++ b/basement-s3.yaml @@ -121,6 +121,9 @@ image: - file: mdi:sine-wave id: iwave resize: 24x24 + - file: mdi:weather-night + id: imoon + resize: 24x24 - file: mdi:home-thermometer-outline id: ihome resize: 16x16 @@ -563,16 +566,13 @@ display: it.image(177, 42, id(ipercent)); it.printf(95, 50, id(font1),"%s", to_string(id(ip).state).c_str()); + + it.strftime(64, 0, id(font2),"%H %M", id(sntp_time).now()); static int i = 0; i++; - if ((i % 2) == 0) { - it.strftime(64, 0, id(font2),"%H:", id(sntp_time).now()); - it.strftime(100, 0, id(font2),"%M", id(sntp_time).now()); - } - else { - it.strftime(64, 0, id(font2),"%H", id(sntp_time).now()); - it.strftime(100, 0, id(font2),"%M", id(sntp_time).now()); - } + if ((i % 2) == 0) + it.print(96, 0, id(font2),":"); + if ((id(elevation).state) > 0) it.image(150, 2, id(isun)); else