mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
glcd/weather: use next day after 4pm; align display to lcd4linux
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8fee8bd7c7
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-01-08 (Mon, 08 Jan 2024)
Origin message was:
------------------
- glcd/weather: use next day after 4pm; align display to lcd4linux
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -105,7 +105,11 @@ void RenderWeather(bool standby)
|
||||
y = t.glcd_standby_weather_y_position;
|
||||
}
|
||||
|
||||
int forecast = 0; // 0 is current day
|
||||
time_t _n = time(NULL);
|
||||
struct tm *_t;
|
||||
_t = localtime(&_n);
|
||||
|
||||
int forecast = _t->tm_hour < 16 ? 0 : 1; // 0 is current day; after 4pm use next day
|
||||
|
||||
std::string current_wcity = "";
|
||||
std::string current_wtimestamp = "";
|
||||
|
Reference in New Issue
Block a user