- weather: allow to get city

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-20 23:51:49 +01:00
committed by Thilo Graf
parent c639827324
commit 6c1e155cfe

View File

@@ -64,6 +64,10 @@ class CWeather
void setCoords(std::string new_coords, std::string new_city = "Unknown"); void setCoords(std::string new_coords, std::string new_city = "Unknown");
void show(int x = 50, int y = 50); void show(int x = 50, int y = 50);
void hide(); void hide();
std::string getCity()
{
return city;
};
std::string getActTemp() std::string getActTemp()
{ {
return to_string((int)(act_temp + 0.5)); return to_string((int)(act_temp + 0.5));