aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/WeatherSymbols.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/WeatherSymbols.cpp')
-rw-r--r--src/displayapp/screens/WeatherSymbols.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/displayapp/screens/WeatherSymbols.cpp b/src/displayapp/screens/WeatherSymbols.cpp
index de66312f..f7e41547 100644
--- a/src/displayapp/screens/WeatherSymbols.cpp
+++ b/src/displayapp/screens/WeatherSymbols.cpp
@@ -59,3 +59,26 @@ const char* Pinetime::Applications::Screens::Symbols::GetCondition(const Pinetim
return "";
}
}
+
+const char* Pinetime::Applications::Screens::Symbols::GetSimpleCondition(const Pinetime::Controllers::SimpleWeatherService::Icons icon) {
+ switch (icon) {
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Sun:
+ return "Clear";
+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudsSun:
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Clouds:
+ case Pinetime::Controllers::SimpleWeatherService::Icons::BrokenClouds:
+ return "Clouds";
+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudShowerHeavy:
+ return "Rain";
+ case Pinetime::Controllers::SimpleWeatherService::Icons::CloudSunRain:
+ return "Drizzle";
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Thunderstorm:
+ return "Thunder";
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Snow:
+ return "Snow";
+ case Pinetime::Controllers::SimpleWeatherService::Icons::Smog:
+ return "Mist";
+ default:
+ return "";
+ }
+}