Skip to content

Commit ab37e8c

Browse files
authored
Add dew point display (lmarzen#212)
* add dew point * Add function to draw current dew point on display * Add function to draw current dewpoint * Comment out POS_DEWPOINT definition in config.h * Update locale header with additional constants * Add files via upload add dew point to locale files
1 parent 49cce00 commit ab37e8c

14 files changed

Lines changed: 67 additions & 2 deletions

platformio/include/_locale.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ extern const char *TXT_AIR_POLLUTION;
5656
extern const char *TXT_VISIBILITY;
5757
extern const char *TXT_INDOOR_TEMPERATURE;
5858
extern const char *TXT_INDOOR_HUMIDITY;
59+
extern const char *TXT_DEWPOINT;
5960

6061
// MOON PHASE
6162
extern const char *TXT_MOONPHASE;
@@ -286,3 +287,4 @@ extern const char *TXT_WL_CONNECTION_LOST;
286287
extern const char *TXT_WL_DISCONNECTED;
287288

288289
#endif
290+

platformio/include/config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
// #define POS_MOONRISE 2
218218
// #define POS_MOONSET 3
219219
// #define POS_MOONPHASE 4
220+
// #define POS_DEWPOINT 5
220221

221222

222223
// Choose the style of moon phase icon you like

platformio/include/locales/locale_de_DE.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const char *TXT_AIR_POLLUTION = "Luftverschmutzung";
9292
const char *TXT_VISIBILITY = "Sichtweite";
9393
const char *TXT_INDOOR_TEMPERATURE = "Temperatur";
9494
const char *TXT_INDOOR_HUMIDITY = "Feuchtigkeit";
95+
const char *TXT_DEWPOINT = "Taupunkt";
9596

9697
// MOON PHASE
9798
const char *TXT_MOONPHASE = "Mondphase";

platformio/include/locales/locale_en_GB.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const char *TXT_AIR_POLLUTION = "Air Pollution";
8484
const char *TXT_VISIBILITY = "Visibility";
8585
const char *TXT_INDOOR_TEMPERATURE = "Temperature";
8686
const char *TXT_INDOOR_HUMIDITY = "Humidity";
87+
const char *TXT_DEWPOINT = "Dew Point";
8788

8889
// MOON PHASE
8990
const char *TXT_MOONPHASE = "Moon Phase";
@@ -257,7 +258,7 @@ extern "C" {
257258
// HONG_KONG_AQHI INDIA_AQI CHINA_AQI
258259
// SINGAPORE_PSI SOUTH_KOREA_CAI UNITED_KINGDOM_DAQI
259260
// UNITED_STATES_AQI
260-
const aqi_scale_t AQI_SCALE = HONG_KONG_AQHI;
261+
const aqi_scale_t AQI_SCALE = UNITED_KINGDOM_DAQI;
261262

262263
const char *AUSTRALIA_AQI_TXT[6] =
263264
{

platformio/include/locales/locale_en_US.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const char *TXT_AIR_POLLUTION = "Air Pollution";
8484
const char *TXT_VISIBILITY = "Visibility";
8585
const char *TXT_INDOOR_TEMPERATURE = "Temperature";
8686
const char *TXT_INDOOR_HUMIDITY = "Humidity";
87+
const char *TXT_DEWPOINT = "Dew Point";
8788

8889
// MOON PHASE
8990
const char *TXT_MOONPHASE = "Moon Phase";

platformio/include/locales/locale_es_ES.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const char *TXT_AIR_POLLUTION = "Contaminaci\363n del aire";
8484
const char *TXT_VISIBILITY = "Visibilidad";
8585
const char *TXT_INDOOR_TEMPERATURE = "Temperatura";
8686
const char *TXT_INDOOR_HUMIDITY = "Humedad";
87+
const char *TXT_DEWPOINT = "Punto de rocío";
8788

8889
// MOON PHASE
8990
const char *TXT_MOONPHASE = "Fase lunar";

platformio/include/locales/locale_et_EE.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const char *TXT_AIR_POLLUTION = "\xD5husaaste";
9191
const char *TXT_VISIBILITY = "N\xE4htavus";
9292
const char *TXT_INDOOR_TEMPERATURE = "Temperatuur";
9393
const char *TXT_INDOOR_HUMIDITY = "\xD5huniiskus";
94+
const char *TXT_DEWPOINT = "Kastepunkt";
9495

9596
// MOON PHASE
9697
const char *TXT_MOONPHASE = "Kuufaas";

platformio/include/locales/locale_fi_FI.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const char *TXT_AIR_POLLUTION = "Ilmansaaste";
9292
const char *TXT_VISIBILITY = "N\xE4kyvyys";
9393
const char *TXT_INDOOR_TEMPERATURE = "L\xE4mp\xF6tila";
9494
const char *TXT_INDOOR_HUMIDITY = "Ilmankosteus";
95+
const char *TXT_DEWPOINT = "Kastepiste";
9596

9697
// MOON PHASE
9798
const char *TXT_MOONPHASE = "Kuunvaihe";

platformio/include/locales/locale_fr_FR.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const char *TXT_AIR_POLLUTION = "Pollution de L'air";
9292
const char *TXT_VISIBILITY = "Visibilit\351";
9393
const char *TXT_INDOOR_TEMPERATURE = "Temp\351rature";
9494
const char *TXT_INDOOR_HUMIDITY = "Humidit\351";
95+
const char *TXT_DEWPOINT = "Point de ros\351e";
9596

9697
// MOON PHASE
9798
const char *TXT_MOONPHASE = "Phase lunaire";
@@ -100,7 +101,7 @@ const char *TXT_WAXING_CRESCENT = "Premier croissant";
100101
const char *TXT_FIRST_QUARTER = "Premier quartier";
101102
const char *TXT_WAXING_GIBBOUS = "Gibbeuse croissante";
102103
const char *TXT_FULL_MOON = "Pleine";
103-
const char *TXT_WANING_GIBBOUS = "Gibbeuse d\xE9croissante";
104+
const char *TXT_WANING_GIBBOUS = "Gibbeuse d\351croissante";
104105
const char *TXT_THIRD_QUARTER = "Dernier quartier";
105106
const char *TXT_WANING_CRESCENT = "Dernier croissant";
106107

platformio/include/locales/locale_it_IT.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const char *TXT_AIR_POLLUTION = "Inquinamento aria";
9292
const char *TXT_VISIBILITY = "Visibilit\340";
9393
const char *TXT_INDOOR_TEMPERATURE = "Temperatura int.";
9494
const char *TXT_INDOOR_HUMIDITY = "Umidit\340 int.";
95+
const char *TXT_DEWPOINT = "Punto di rugiada";
9596

9697
// MOON PHASE
9798
const char *TXT_MOONPHASE = "Fase lunare";

0 commit comments

Comments
 (0)