mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
weather: formatting code using astyle
Origin commit data
------------------
Branch: ni/coolstream
Commit: f63728bbb5
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-03 (Fri, 03 May 2024)
Origin message was:
------------------
- weather: formatting code using astyle
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -118,7 +118,7 @@ bool CWeather::GetWeatherDetails()
|
|||||||
std::string lat = coords.substr(0, coords.find_first_of(','));
|
std::string lat = coords.substr(0, coords.find_first_of(','));
|
||||||
std::string lon = coords.substr(coords.find_first_of(',') + 1);
|
std::string lon = coords.substr(coords.find_first_of(',') + 1);
|
||||||
|
|
||||||
std::string data = "https://api.openweathermap.org/data/"+api+"/onecall?lat=" + lat + "&lon=" + lon + "&units=metric&lang=de&exclude=minutely,hourly,flags,alerts&appid=" + key;
|
std::string data = "https://api.openweathermap.org/data/" + api + "/onecall?lat=" + lat + "&lon=" + lon + "&units=metric&lang=de&exclude=minutely,hourly,flags,alerts&appid=" + key;
|
||||||
JSONCPP_STRING answer;
|
JSONCPP_STRING answer;
|
||||||
JSONCPP_STRING formattedErrors;
|
JSONCPP_STRING formattedErrors;
|
||||||
|
|
||||||
|
@@ -210,7 +210,7 @@ bool CWeatherSetup::changeNotify(const neutrino_locale_t OptionName, void */*dat
|
|||||||
weather_api_key_short.clear();
|
weather_api_key_short.clear();
|
||||||
weather_onoff->setActive(CApiKey::check_weather_api_key());
|
weather_onoff->setActive(CApiKey::check_weather_api_key());
|
||||||
}
|
}
|
||||||
else if(ARE_LOCALES_EQUAL(OptionName, LOCALE_WEATHER_API_VERSION))
|
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_WEATHER_API_VERSION))
|
||||||
{
|
{
|
||||||
g_settings.weather_api_version = WEATHER_API_OPTIONS[weather_api_version].valname;
|
g_settings.weather_api_version = WEATHER_API_OPTIONS[weather_api_version].valname;
|
||||||
CWeather::getInstance()->updateApi();
|
CWeather::getInstance()->updateApi();
|
||||||
|
Reference in New Issue
Block a user