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