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 board: lolin_d32_pro
project: project:
name: "xd0.esp32weatherstation2" name: "xd0.esp32weatherstation2"
version: "0.1.0" version: "0.1.1"
includes: includes:
- fonts/weather_icon_map.h - fonts/weather_icon_map.h
- custom/veml6075_custom_sensor.h - custom/veml6075_custom_sensor.h

4
common/battery.yaml

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

5
common/display-hendrik.yaml

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

3
common/display.yaml

@ -52,7 +52,7 @@ display:
reset_pin: 33 reset_pin: 33
model: 2.13in-ttgo model: 2.13in-ttgo
rotation: 90 rotation: 90
update_interval: 60s update_interval: 180s
full_update_every: 1 full_update_every: 1
id: my_display id: my_display
pages: pages:
@ -159,6 +159,7 @@ display:
it.printf(248, 105, id(font1), TextAlign::TOP_RIGHT, "nc"); 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); 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:
- interval: 30s - interval: 30s
then: then:

Loading…
Cancel
Save