Update clock.yaml/clock.yaml
last known good config before i attempt to add framebuffer back
This commit is contained in:
parent
8819e770d6
commit
bb2aee5b0d
|
|
@ -1,5 +1,5 @@
|
|||
esphome:
|
||||
name: mini-display-tv--yellow
|
||||
name: mini-display-tv-yellow
|
||||
friendly_name: Mini Display TV - Yellow
|
||||
|
||||
esp8266:
|
||||
|
|
@ -47,21 +47,21 @@ light:
|
|||
restore_mode: RESTORE_AND_ON
|
||||
|
||||
font:
|
||||
- file: "gfonts://Micro 5"
|
||||
- file: "gfonts://Atkinson Hyperlegible"
|
||||
id: dspfont
|
||||
size: 110
|
||||
size: 75
|
||||
|
||||
- file: "gfonts://Micro 5"
|
||||
- file: "gfonts://Atkinson Hyperlegible"
|
||||
id: dspfont_small
|
||||
size: 44
|
||||
size: 30
|
||||
|
||||
- file: "gfonts://Micro 5"
|
||||
- file: "gfonts://Atkinson Hyperlegible"
|
||||
id: dspfont_medium
|
||||
size: 66
|
||||
size: 40
|
||||
|
||||
- file: "gfonts://Micro 5"
|
||||
- file: "gfonts://Atkinson Hyperlegible"
|
||||
id: dspfont_am_pm
|
||||
size: 50
|
||||
size: 20
|
||||
|
||||
color:
|
||||
- id: color_white
|
||||
|
|
@ -107,12 +107,12 @@ display:
|
|||
// Display AM/PM (Using %p to show AM/PM text)
|
||||
it.strftime(230, 42, id(dspfont_am_pm), text_color, TextAlign::BASELINE_RIGHT, "%p", id(esptime).now());
|
||||
|
||||
// Display the date in MM/DD/YYYY format
|
||||
it.strftime(0, 110, id(dspfont_medium), text_color, TextAlign::BASELINE, "%m/%d/%Y", id(esptime).now());
|
||||
// Display the date in abbreviated weekday, MM/DD format (no year)
|
||||
it.strftime(0, 110, id(dspfont_medium), text_color, TextAlign::BASELINE, "%a %m/%d", id(esptime).now());
|
||||
|
||||
// Display "Party mode: ON" or "No fun allowed"
|
||||
if (id(air_purifier_outlet1).state) {
|
||||
it.printf(0, 230, id(dspfont_small), text_color, TextAlign::BASELINE_LEFT, "Party mode: ON");
|
||||
} else {
|
||||
it.printf(0, 230, id(dspfont_small), text_color, TextAlign::BASELINE_LEFT, "No fun allowed");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue