Add ICS documentation for Landkreis Amberg-Sulzbach

This commit is contained in:
5ila5
2024-07-11 22:03:21 +02:00
committed by 5ila5
parent f276b73ade
commit 7fe7ae547e
5 changed files with 64 additions and 1 deletions

View File

@@ -841,6 +841,7 @@ Waste collection schedules in the following formats and countries are supported.
- [Kronberg im Taunus](/doc/source/abfallnavi_de.md) / kronberg.de
- [KV Cochem-Zell](/doc/source/buergerportal_de.md) / cochem-zell-online.de
- [KWU Entsorgung Landkreis Oder-Spree](/doc/source/kwu_de.md) / kwu-entsorgung.de
- [Landkreis Amberg-Sulzbach](/doc/ics/landkreis_as_de.md) / landkreis-as.de
- [Landkreis Anhalt-Bitterfeld](/doc/ics/abikw_de.md) / abikw.de
- [Landkreis Ansbach](/doc/source/awido_de.md) / landkreis-ansbach.de
- [Landkreis Aschaffenburg](/doc/source/awido_de.md) / landkreis-aschaffenburg.de

View File

@@ -0,0 +1,44 @@
# Landkreis Amberg-Sulzbach
Landkreis Amberg-Sulzbach 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
- Goto <https://landkreis-as.de/abfallwirtschaft/abfuhrtermine.php> and select your location.
- Click on `Kalenderübersicht anzegen`.
- Right click -> copy link address on the `exportieren` link.
- Replace the `url` in the example configuration with this link.
- You can also use the `regex` to strip unwanted text from the event summary.
## Examples
### Sulzenbach-Rosenberg Am Anger (no regex)
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
url: https://landkreis-as.de/abfallwirtschaft/abfuhrtermine_kalender_sulzbach-rosenberg8.ics
```
### Freudenberg (regex strip after `|`)
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
regex: (.*?)\s+\|.*
url: https://landkreis-as.de/abfallwirtschaft/abfuhrtermine_kalender_freudenberg.ics
```
### Ensdorf (regex also strip `! vorgefahren !`)
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
regex: (.*?)\s+(\||\!).*
url: https://landkreis-as.de/abfallwirtschaft/abfuhrtermine_kalender_ensdorf.ics
```

View File

@@ -0,0 +1,17 @@
title: Landkreis Amberg-Sulzbach
url: https://landkreis-as.de
howto: |
- Goto <https://landkreis-as.de/abfallwirtschaft/abfuhrtermine.php> and select your location.
- Click on `Kalenderübersicht anzegen`.
- Right click -> copy link address on the `exportieren` link.
- Replace the `url` in the example configuration with this link.
- You can also use the `regex` to strip unwanted text from the event summary.
test_cases:
Sulzenbach-Rosenberg Am Anger (no regex):
url: "https://landkreis-as.de/abfallwirtschaft/abfuhrtermine_kalender_sulzbach-rosenberg8.ics"
Freudenberg (regex strip after `|`):
url: "https://landkreis-as.de/abfallwirtschaft/abfuhrtermine_kalender_freudenberg.ics"
regex: (.*?)\s+\|.*
Ensdorf (regex also strip `! vorgefahren !`):
url: "https://landkreis-as.de/abfallwirtschaft/abfuhrtermine_kalender_ensdorf.ics"
regex: (.*?)\s+(\||\!).*

View File

@@ -201,6 +201,7 @@ This source has been successfully tested with the following service providers:
- [Herten (durth-roos.de)](/doc/ics/herten_de.md) / herten.de
- [Kreis Steinburg](/doc/ics/steinburg_de.md) / steinburg.de
- [Kreisstadt Groß-Gerau](/doc/ics/gross_gerau_de.md) / gross-gerau.de
- [Landkreis Amberg-Sulzbach](/doc/ics/landkreis_as_de.md) / landkreis-as.de
- [Landkreis Anhalt-Bitterfeld](/doc/ics/abikw_de.md) / abikw.de
- [Landkreis Böblingen](/doc/ics/abfall_app_net.md) / lrabb.de
- [Landkreis Hameln-Pyrmont](/doc/ics/hameln_pyrmont_de.md) / hameln-pyrmont.de

File diff suppressed because one or more lines are too long