mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-07 21:58:29 +02:00
weather: allow to get city
Origin commit data
------------------
Branch: ni/coolstream
Commit: b9048f05e4
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
@@ -65,6 +65,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));
|
||||||
|
Reference in New Issue
Block a user