Compare commits

...

2 commits

Author SHA1 Message Date
Patrick Moessler
0b35738aa1 enable web server 2024-01-14 01:55:46 +01:00
Patrick Moessler
20c3b02dba add segment test string 2024-01-14 01:45:22 +01:00

View file

@ -31,6 +31,9 @@ wifi:
captive_portal: captive_portal:
web_server:
local: true
external_components: external_components:
- source: - source:
type: local type: local
@ -45,7 +48,7 @@ time:
then: then:
- logger.log: - logger.log:
level: INFO level: INFO
format: "%2d%2d%2d%2d" format: "%2d %2d %2d %2d"
args: ['int(id(runtime).state/3600)%24', 'int(id(runtime).state/60)%60', 'int(id(runtime).state)%60', 'int(id(runtime).state-int(id(runtime).state)*25)'] args: ['int(id(runtime).state/3600)%24', 'int(id(runtime).state/60)%60', 'int(id(runtime).state)%60', 'int(id(runtime).state-int(id(runtime).state)*25)']
spi: spi:
@ -76,9 +79,17 @@ display:
it.strftime(0, "%H%M%s", id(sntp_time).now()); it.strftime(0, "%H%M%s", id(sntp_time).now());
it.printf(7, "%2d", clock_frames); it.printf(7, "%2d", clock_frames);
it.printf(8, ".*-_'`,0");
/*it.strftime(8, "%H%M%s", id(sntp_time).now());*/ /*it.strftime(8, "%H%M%s", id(sntp_time).now());*/
/*it.printf(11, "%1d", 0)*/ /*it.printf(11, "%1d", 0)*/
it.printf(12, "%2d%2d%2d%2d", int(id(runtime).state/3600)%24, int(id(runtime).state/60)%60, int(id(runtime).state)%60, int(id(runtime).state-int(id(runtime).state)*25) ); it.printf(12, "%2d%2d%2d%2d", int(id(runtime).state/3600)%24, int(id(runtime).state/60)%60, int(id(runtime).state)%60, int(id(runtime).state-int(id(runtime).state)*25) );
# the second display should display a test string to figure out the digit and segment map:
# digit 0: >.< character (dot segment on)
# digit 1: >*< character (upper segment on)
# digit 2: >-< character (middle segment on)
# digit 3: >_< character (lower segment on)
# digit 4: >'< character (upper left segment on)
# digit 5: >`< character (upper right segment on)
# digit 6: >,< character (lower right segment on)
# digit 7: >9< character (all on, except lower left segment)