Skip to content

Commit ef0e0be

Browse files
committed
39c3: prep deployment
1 parent 06b8a58 commit ef0e0be

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

firmware/packages/base.yaml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ logger:
2323

2424
wifi:
2525
networks:
26-
- ssid: WHY2025
26+
- ssid: 39C3
2727
eap:
2828
username: outboundonly
2929
password: outboundonly
30-
# - ssid: WHY2025-open
30+
- ssid: 39C3-open
3131

3232
# fallback from secrets
3333
- ssid: !secret wifi_ssid
@@ -137,13 +137,38 @@ sensor:
137137
- platform: template
138138
name: "Dew Point"
139139
lambda: |-
140-
return (243.5*(log(id(bme280_humidity).state/100)+((17.67*id(bme280_temperature).state)/
141-
(243.5+id(bme280_temperature).state)))/(17.67-log(id(bme280_humidity).state/100)-
142-
((17.67*id(bme280_temperature).state)/(243.5+id(bme280_temperature).state))));
140+
float T = id(bme280_temperature).state;
141+
float R = id(bme280_humidity).state;
142+
return (
143+
243.5 * (
144+
log(R / 100)
145+
+ (
146+
(17.67 * T) / (243.5 +T )
147+
)
148+
) / (
149+
17.67 - log(R/100) - (
150+
(17.67 * T) / (243.5 + T)
151+
)
152+
)
153+
);
143154
unit_of_measurement: °C
144155
icon: 'mdi:thermometer-alert'
145156
update_interval: ${update_interval}
146157

158+
- platform: template
159+
name: "Heat index"
160+
lambda: |-
161+
float T = id(bme280_temperature).state;
162+
float R = id(bme280_humidity).state;
163+
float Tsq = pow(T, 2.0);
164+
float Rsq = pow(R, 2.0);
165+
return (-8.78469475556 + 1.61139411 * T + 2.33854883889 * R - 0.14611605 * T * R
166+
- 0.012308094 * Tsq - 0.0164248277778 * Rsq
167+
+ 2.211732e-3 * Tsq * R + 7.2546e-4 * T * Rsq
168+
- 3.582e-6 * Tsq * Rsq);
169+
unit_of_measurement: °C
170+
update_interval: ${update_interval}
171+
147172
- platform: adc
148173
pin: A0
149174
name: "Sound Voltage"

0 commit comments

Comments
 (0)