From 03158edde1d3ce9a84df5b278006696745e5ffc8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 20 Mar 2019 23:51:49 +0100 Subject: [PATCH] weather: allow to get city Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b9048f05e43c6034add685a24bd5010523add900 Author: vanhofen Date: 2019-03-20 (Wed, 20 Mar 2019) Origin message was: ------------------ - weather: allow to get city ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/weather.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/weather.h b/src/gui/weather.h index 4f5d69013..79b12eba4 100644 --- a/src/gui/weather.h +++ b/src/gui/weather.h @@ -65,6 +65,10 @@ class CWeather void setCoords(std::string new_coords, std::string new_city = "Unknown"); void show(int x = 50, int y = 50); void hide(); + std::string getCity() + { + return city; + }; std::string getActTemp() { return to_string((int)(act_temp + 0.5));