diff --git a/lib/source/api-abfallio.js b/lib/source/api-abfallio.js index e55127c..ea1bfa8 100644 --- a/lib/source/api-abfallio.js +++ b/lib/source/api-abfallio.js @@ -475,13 +475,6 @@ class SourceApiAbfallIo extends BaseSource { } const pickupData = await this.getApiCached(config, `abfallio-pickups-${provider}-${cityId}.ics`); - const wasteTypeMap = { - Restmüll: { id: '333', name: 'Restmüll 120l/240l', color: '#242425' }, - Biomüll: { id: '50', name: 'Biomüll', color: '#824300' }, - 'Gelbe Tonne': { id: '299', name: 'Wertstoffe', color: '#f4b324' }, - Altpapier: { id: '53', name: 'Papier 120l/240l', color: '#2d76ba' }, - }; - const events = ical.parseICS(pickupData); const appointments = []; @@ -489,13 +482,9 @@ class SourceApiAbfallIo extends BaseSource { for (const key in events) { const event = events[key]; if (event.type === 'VEVENT') { - const summary = event.summary || ''; - const localDate = new Date(event.start).toLocaleDateString('en-CA'); const description = event.description || ''; - const wasteType = wasteTypeMap[summary] || {}; - const appointment = { id: `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, date: localDate, @@ -503,9 +492,9 @@ class SourceApiAbfallIo extends BaseSource { location: null, note: description, wasteType: { - id: wasteType.id || '', - name: wasteType.name || '', - color: wasteType.color || '', + id: '', + name: event.summary, + color: '', internals: { pdfLegend: null, iconLow: null,