Allow to configure displayed city name

This commit is contained in:
Marcel Stör
2018-08-08 22:08:50 +02:00
parent 2987803042
commit e9063650d9
2 changed files with 2 additions and 1 deletions

View File

@@ -377,7 +377,7 @@ void drawCurrentWeather() {
gfx.setFont(ArialRoundedMTBold_14);
gfx.setColor(MINI_BLUE);
gfx.setTextAlignment(TEXT_ALIGN_RIGHT);
gfx.drawString(220, 65, currentWeather.cityName);
gfx.drawString(220, 65, DISPLAYED_CITY_NAME);
gfx.setFont(ArialRoundedMTBold_36);
gfx.setColor(MINI_WHITE);

View File

@@ -39,6 +39,7 @@ data for. It'll be a URL like https://openweathermap.org/city/2657896. The numbe
at the end is what you assign to the constant below.
*/
String OPEN_WEATHER_MAP_LOCATION_ID = "2657896";
String DISPLAYED_CITY_NAME = "Zurich";
/*
Arabic -> ar, Bulgarian -> bg, Catalan -> ca, Czech -> cz, German -> de, Greek -> el,
English -> en, Persian (Farsi) -> fa, Finnish -> fi, French -> fr, Galician -> gl,