Calendar and waste collection dates for STEM, served as JSON.
calendar reads iCalendar (.ics) files, downloads shared calendars and the EVS waste collection calendar
and offers the upcoming entries through web-api, for example for a
dashboard.
- Reads all
.icsfiles inplugins/calendar/calendarFiles/; private events are ignored - Files are checked every 30 seconds and only parsed again when they changed
- Shared calendars (e.g. Nextcloud or Google share links) are downloaded regularly
- EVS waste calendar is downloaded every night at 03:30 with the STEM script
get_evs-data - A new file only replaces the old one if it can be parsed
- Waste types are recognized by the event title:
| Title | Type |
|---|---|
Restabfalltonne |
BLACK |
Gelber Sack, Gelbe Tonne, Gelbe Tonne/Gelber Sack |
YELLOW |
Biotonne |
GREEN |
Blaue Tonne |
BLUE |
| anything else | OTHER |
| Requirement | Version |
|---|---|
| STEM | 1.2.0 or newer (stem-api) |
| Plugins | web-api |
| Script | get_evs-data in the STEM scripts (only for the EVS calendar) |
- Build the plugin with
mvn clean package(or take the build from Jenkins). - Copy
target/calendar.jarinto thepluginsfolder of STEM and the libraries fromtarget/librariesaslibraries.zip(folderlibrariesinside) intoplugins/calendar/. - Start STEM once to create
plugins/calendar/config.yml, add your calendars and restart STEM.
| Key | Default | Description |
|---|---|---|
general.shared_refresh_minutes |
15 |
Download interval of the shared calendars (minutes) |
sharedCalendars.<key>.link |
– | Download link of a shared calendar |
Example:
general:
shared_refresh_minutes: 15
sharedCalendars:
family:
link: "https://cloud.example.com/remote.php/dav/public-calendars/abc123?export"
work:
link: "https://calendar.example.com/share/xyz.ics"Every shared calendar is stored as calendarFiles/shared_<key>.ics. Calendars removed from the
configuration are deleted from the folder. Other .ics files can be put into calendarFiles/ by hand.
| Path | Description |
|---|---|
/calendar/reminder |
All entries from today 00:00 until 30 hours later, sorted by date |
/calendar/trash |
Next collection date for BLACK, GREEN, YELLOW and BLUE |
/calendar/reminder returns entries like:
{ "reminderType": "trash", "name": "...", "date": "Montag 3 November 2026", "type": "BLACK" }reminderType is other for all non-waste entries. Dates are formatted in German.
Copyright (c) MirraNET, Niklas Linz. Licensed under the GNU Lesser General Public License v3.0.
