diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py index f5f1bc14..9e9d63ff 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py @@ -44,6 +44,8 @@ class Source: # get ics file params = { "position_nos": id, + "name": f"{self._street} {self._house_number}", + "mode": "download", } r = requests.get( "https://stadtreinigung-leipzig.de/wir-kommen-zu-ihnen/abfallkalender/ical.ics", diff --git a/doc/ics/stadtreinigung_leipzig_de.md b/doc/ics/stadtreinigung_leipzig_de.md index f47024ce..f44d5876 100644 --- a/doc/ics/stadtreinigung_leipzig_de.md +++ b/doc/ics/stadtreinigung_leipzig_de.md @@ -5,8 +5,8 @@ Stadtreinigung Leipzig is supported by the generic [ICS](/doc/source/ics.md) sou ## How to get the configuration arguments -- Goto and select your location. -- Click on `Abonnieren` to get a webcal link. +- Goto , select your location and click on "Termine anzeigen". +- Copy the address of the link 'Herunterladen' to get a webcal link. - Replace the `url` in the example configuration with this link. ## Examples @@ -19,5 +19,5 @@ waste_collection_schedule: - name: ics args: regex: (.*), .* - url: https://stadtreinigung-leipzig.de/wir-kommen-zu-ihnen/abfallkalender/ical.ics?position_nos=38296&name=Sandgrubenweg + url: https://stadtreinigung-leipzig.de/wir-kommen-zu-ihnen/abfallkalender/ical.ics?position_nos=38296&name=Sandgrubenweg&mode=download ``` diff --git a/doc/ics/yaml/stadtreinigung_leipzig_de.yaml b/doc/ics/yaml/stadtreinigung_leipzig_de.yaml index 7ea67048..fbe7ba36 100644 --- a/doc/ics/yaml/stadtreinigung_leipzig_de.yaml +++ b/doc/ics/yaml/stadtreinigung_leipzig_de.yaml @@ -1,10 +1,10 @@ title: Stadtreinigung Leipzig url: https://stadtreinigung-leipzig.de/ howto: | - - Goto and select your location. - - Click on `Abonnieren` to get a webcal link. + - Goto , select your location and click on "Termine anzeigen". + - Copy the address of the link 'Herunterladen' to get a webcal link. - Replace the `url` in the example configuration with this link. test_cases: Sandgrubenweg 27: - url: "https://stadtreinigung-leipzig.de/wir-kommen-zu-ihnen/abfallkalender/ical.ics?position_nos=38296&name=Sandgrubenweg" + url: "https://stadtreinigung-leipzig.de/wir-kommen-zu-ihnen/abfallkalender/ical.ics?position_nos=38296&name=Sandgrubenweg&mode=download" regex: "(.*), .*"