Browse Source

display update

esphome
Hendrik Langer 3 years ago
parent
commit
3d9e6aecad
  1. 2
      common/base.yaml
  2. 4
      common/battery.yaml
  3. 5
      common/display-hendrik.yaml
  4. 3
      common/display.yaml

2
common/base.yaml

@ -4,7 +4,7 @@ esphome:
board: lolin_d32_pro
project:
name: "xd0.esp32weatherstation2"
version: "0.1.0"
version: "0.1.1"
includes:
- fonts/weather_icon_map.h
- custom/veml6075_custom_sensor.h

4
common/battery.yaml

@ -5,8 +5,8 @@ sensor:
name: "${node_name} VBAT Voltage"
id: voltage
attenuation: 11db
# filters:
# - multiply: 2
filters:
- multiply: 1.71
# filters:
# - lambda: return ( x/4096.0 ) * 2 * 3.42;
update_interval: 60s

5
common/display-hendrik.yaml

@ -3,7 +3,7 @@ font:
- file: 'fonts/Vera.ttf'
id: font1
size: 10
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/²³µΩ€[]'
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/²³µΩ€[]?'
- file: 'fonts/Vera.ttf'
id: font2
size: 20
@ -52,7 +52,7 @@ display:
reset_pin: 33
model: 2.13in-ttgo
rotation: 90
update_interval: 60s
update_interval: 180s
full_update_every: 1
id: my_display
pages:
@ -139,7 +139,6 @@ display:
} else {
it.printf(248, 105, id(font1), TextAlign::TOP_RIGHT, "nc");
}
interval:
- interval: 30s

3
common/display.yaml

@ -52,7 +52,7 @@ display:
reset_pin: 33
model: 2.13in-ttgo
rotation: 90
update_interval: 60s
update_interval: 180s
full_update_every: 1
id: my_display
pages:
@ -159,6 +159,7 @@ display:
it.printf(248, 105, id(font1), TextAlign::TOP_RIGHT, "nc");
}
it.printf(184,115, id(font1), "%.1f°C, %.1f%%H, %.0fhPa", id(temperature_springer).state, id(humidity_springer).state, id(pressure_springer).state);
interval:
- interval: 30s
then:

Loading…
Cancel
Save