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:
vanhofen
2024-05-03 23:12:40 +02:00
parent fd8202c674
commit 14e345f53b
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ bool CWeather::GetWeatherDetails()
std::string lat = coords.substr(0, coords.find_first_of(','));
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 formattedErrors;

View File

@@ -210,7 +210,7 @@ bool CWeatherSetup::changeNotify(const neutrino_locale_t OptionName, void */*dat
weather_api_key_short.clear();
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;
CWeather::getInstance()->updateApi();