[mod] Termin-Beschreibung mit anzeigen

This commit is contained in:
Christian Fraß 2025-06-12 05:25:15 +00:00
parent 0ac13808c5
commit a824b97626
4 changed files with 28 additions and 2 deletions

View file

@ -125,6 +125,7 @@ namespace _munin.sources.ical_feed
"title": vevent.summary,
"begin": begin,
"end": end,
"description": (vevent.description ?? null),
"location": (vevent.location ?? null),
"tags": vevent.categories,
};

View file

@ -73,7 +73,7 @@ namespace _munin.targets.email
}
),
lib_plankton.string.coin(
"{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}",
"{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}{{macro_description}}",
{
"title_label": labels.title.toUpperCase(),
"macro_tags": (
@ -105,6 +105,18 @@ namespace _munin.targets.email
}
)
),
"macro_description": (
(event.description === null)
?
""
:
lib_plankton.string.coin(
"\n\n{{description_value}}",
{
"description_value": event.description,
}
)
),
}
)
);

View file

@ -43,7 +43,7 @@ namespace _munin.targets.telegram_bot
parameters.bot_token,
parameters.chat_id,
lib_plankton.string.coin(
"*{{head}}*\n\n\{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}",
"*{{head}}*\n\n\{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}{{macro_description}}",
{
"head": labels.head,
"macro_tags": (
@ -76,6 +76,18 @@ namespace _munin.targets.telegram_bot
}
)
),
"macro_description": (
(event.description === null)
?
""
:
lib_plankton.string.coin(
"\n\n{{description_value}}",
{
"description_value": event.description,
}
)
),
}
),
{

View file

@ -37,6 +37,7 @@ namespace _munin
title : string;
begin : lib_plankton.pit.type_datetime,
end : (null | lib_plankton.pit.type_datetime),
description : (null | string);
location : (null | string);
tags : (null | Array<string>);
};