Align platform label and display server time in clock box

This commit is contained in:
Paul Brinkmeier 2025-04-28 01:06:45 +02:00
parent 6e53521b84
commit dc4180320b

View File

@ -61,10 +61,10 @@ struct Timetable {
// Selectable timetables // Selectable timetables
Timetable timetables[] = { Timetable timetables[] = {
{"Johanneskirche, Bstg. 1", "/departures?stop_id=de:08311:30104&platform=1"}, {"Johanneskirche Bstg. 1", "/departures?stop_id=de:08311:30104&platform=1"},
{"Johanneskirche, Bstg. 2", "/departures?stop_id=de:08311:30104&platform=2"}, {"Johanneskirche Bstg. 2", "/departures?stop_id=de:08311:30104&platform=2"},
{"Blumenthalstr., Bstg. A", "/departures?stop_id=de:08221:1225&platform=A"}, {"Blumenthalstr Bstg. A", "/departures?stop_id=de:08221:1225&platform=A"},
{"Blumenthalstr., Bstg. B", "/departures?stop_id=de:08221:1225&platform=B"} {"Blumenthalstr Bstg. B", "/departures?stop_id=de:08221:1225&platform=B"}
}; };
size_t selectedTimetable = 0; size_t selectedTimetable = 0;
@ -233,7 +233,6 @@ void StateShowingDepartures::enter() {
break; break;
} }
char symbol[3] = {0}; char symbol[3] = {0};
char direction[16] = {0}; char direction[16] = {0};
@ -252,6 +251,10 @@ void StateShowingDepartures::enter() {
line++; line++;
} }
clearClock();
display.setCursor(CLOCK_X, CLOCK_Y);
display.printf("%5s", departures["serverTime"].as<const char *>());
} }
void StateShowingDepartures::tick() { void StateShowingDepartures::tick() {