mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
lcd4l: write weather_city file
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7e775d0c5f
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-20 (Wed, 20 Mar 2019)
Origin message was:
------------------
- lcd4l: write weather_city file
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -104,6 +104,7 @@ extern CPictureViewer *g_PicViewer;
|
||||
#define FCOLOR2 LCD_DATADIR "fcolor2"
|
||||
#define PBCOLOR LCD_DATADIR "pbcolor"
|
||||
|
||||
#define WEATHER_CITY LCD_DATADIR "weather_city"
|
||||
#define WEATHER_TEMP LCD_DATADIR "weather_temp"
|
||||
#define WEATHER_ICON LCD_DATADIR "weather_icon"
|
||||
|
||||
@@ -253,6 +254,7 @@ void CLCD4l::Init()
|
||||
m_Start = "00:00";
|
||||
m_End = "00:00";
|
||||
|
||||
m_wcity = "";
|
||||
m_wtemp = "";
|
||||
m_wicon = "";
|
||||
|
||||
@@ -1018,6 +1020,13 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
|
||||
if (g_settings.weather_enabled && CWeather::getInstance()->checkUpdate(firstRun))
|
||||
{
|
||||
std::string wcity = CWeather::getInstance()->getCity();
|
||||
if (m_wcity.compare(wcity))
|
||||
{
|
||||
WriteFile(WEATHER_CITY, wcity);
|
||||
m_wcity = wcity;
|
||||
}
|
||||
|
||||
int forecast = 1; // days for forecast
|
||||
|
||||
std::string wtemp = CWeather::getInstance()->getActTemp();
|
||||
@@ -1038,7 +1047,6 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
m_wicon = wicon;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user