mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-06 16:27:12 +01:00
sch: display calendar events in terminal
This commit is contained in:
@@ -1014,6 +1014,15 @@ void event(::terminal::CommandContext&& ctx) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!last_actions.empty()) {
|
||||
ctx.output.print(PSTR("Calendar events:\n"));
|
||||
for (auto& entry : last_actions) {
|
||||
ctx.output.printf_P(PSTR("- cal#%zu at %s\n"),
|
||||
entry.index,
|
||||
format_last_action(entry).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
#if SCHEDULER_SUN_SUPPORT
|
||||
ctx.output.print(PSTR("Sun events:\n"));
|
||||
internal::dump_sunrise_sunset(ctx);
|
||||
|
||||
Reference in New Issue
Block a user