Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ics provider for wetzlar de #2989

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions doc/ics/wetzlar_de.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Stadt Wetzlar

Stadt Wetzlar is supported by the generic [ICS](/doc/source/ics.md) source. For all available configuration options, please refer to the source description.


## How to get the configuration arguments

- Visit <https://wetzlar.de/leben-in-wetzlar/abfall-und-entsorgung/> and select `Jahreskalender <Jahr>`.
- Search for your `Ortsteil und Straße`.
- Select `Ansicht` and the `Abfallart` you want to see.
- Click `anzeigen`
- Right-click copy link address on the `Jahreskalender als iCal` link to get a ICAL link.
- Use this link as `url` parameter.
- Replace the Year in(`abfuhrtermine-2024`) with `{%Y}` in the URL e.g. `abfuhrtermine-{%Y}`.

## Examples

### Abelsgasse (Wetzlar)

```yaml
waste_collection_schedule:
sources:
- name: ics
args:
url: https://wetzlar.de/leben-in-wetzlar/abfall-und-entsorgung/abfuhrtermine-{%Y}.php?sp_garbagecalendar_location=Abelsgasse+%28Wetzlar%29&sp_garbagecalendar_view=categoryView&sp_garbagecalendar_garbageTypes%5B%5D=waste&sp_garbagecalendar_garbageTypes%5B%5D=bio&sp_garbagecalendar_garbageTypes%5B%5D=recycle&sp_garbagecalendar_garbageTypes%5B%5D=paper&sp_garbagecalendar_dateSelect_month=11&sp_garbagecalender_icalDownload=true
```
26 changes: 26 additions & 0 deletions doc/ics/yaml/wetzlar_de.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Stadt Wetzlar
url: https://wetzlar.de
country: Germany
howto:
en: |
- Visit <https://wetzlar.de/leben-in-wetzlar/abfall-und-entsorgung/> and select `Jahreskalender <Jahr>`.
- Search for your `Ortsteil und Straße`.
- Select `Ansicht` and the `Abfallart` you want to see.
- Click `anzeigen`
- Right-click copy link address on the `Jahreskalender als iCal` link to get a ICAL link.
- Use this link as `url` parameter.
- Replace the Year in(`abfuhrtermine-2024`) with `{%Y}` in the URL e.g. `abfuhrtermine-{%Y}`.

de: |
- Besuchen Sie https://wetzlar.de/leben-in-wetzlar/abfall-und-entsorgung/ und wählen Sie Jahreskalender <Jahr>.
- Suchen Sie nach Ihrem `Ortsteil und Straße`.
- Wählen Sie `Ansicht` und die gewünschte `Abfallart`.
- Klicken Sie auf `anzeigen`.
- Klicken Sie mit der rechten Maustaste auf den Link `Jahreskalender als iCal` und wählen Sie "Link-Adresse kopieren", um den ICAL-Link zu erhalten.
- Verwenden Sie diesen Link als`url`.
- Ersetzen Sie das Jahr in (`abfuhrtermine-2024`) mit {%Y}` im URL z.B. `abfuhrtermine-{%Y}`.

test_cases:
Abelsgasse (Wetzlar):
url: https://wetzlar.de/leben-in-wetzlar/abfall-und-entsorgung/abfuhrtermine-{%Y}.php?sp_garbagecalendar_location=Abelsgasse+%28Wetzlar%29&sp_garbagecalendar_view=categoryView&sp_garbagecalendar_garbageTypes%5B%5D=waste&sp_garbagecalendar_garbageTypes%5B%5D=bio&sp_garbagecalendar_garbageTypes%5B%5D=recycle&sp_garbagecalendar_garbageTypes%5B%5D=paper&sp_garbagecalendar_dateSelect_month=11&sp_garbagecalender_icalDownload=true
1 change: 1 addition & 0 deletions doc/source/ics.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ This source has been successfully tested with the following service providers:
- [Technischer Betriebsdienst Reutlingen](/doc/ics/tbr_reutlingen_de.md) / tbr-reutlingen.de
- [ULM (EBU)](/doc/ics/ebu_ulm_de.md) / ebu-ulm.de
- [Wenden](/doc/ics/abfuhrtermine_info.md) / gemeinde-wenden.de
- [Wetzlar](/doc/ics/wetzlar_de.md) / wetzlar.de
- [ZAH Hildesheim](/doc/ics/zah_hildesheim_de.md) / zah-hildesheim.de
- [ZBG Gladbeck](/doc/ics/zb_gladbeck_de.md) / zb-gladbeck.de
- [ZfA Iserlohn](/doc/ics/zfa_iserlohn_de.md) / zfa-iserlohn.de
Expand Down