add ICS for ilm-kreis.de

This commit is contained in:
mampfes
2023-04-07 08:49:51 +02:00
parent aa38495241
commit 0dffef1843
5 changed files with 64 additions and 21 deletions

View File

@@ -113,6 +113,7 @@ Waste collection schedules in the following formats and countries are supported.
- [Abfallwirtschafts-Zweckverband des Landkreises Hersfeld-Rotenburg](/doc/source/awido_de.md) / azv-hef-rof.de
- [Abfallwirtschaftsbetrieb Bergisch Gladbach](/doc/source/abfallnavi_de.md) / bergischgladbach.de
- [Abfallwirtschaftsbetrieb Esslingen](/doc/source/awb_es_de.md) / awb-es.de
- [Abfallwirtschaftsbetrieb Ilm-Kreis](/doc/ics/ilm_kreis_de.md) / ilm-kreis.de
- [Abfallwirtschaftsbetrieb Landkreis Ahrweiler](/doc/source/meinawb_de.md) / meinawb.de
- [Abfallwirtschaftsbetrieb Landkreis Altenkirchen](/doc/source/awido_de.md) / awb-ak.de
- [Abfallwirtschaftsbetrieb Landkreis Augsburg](/doc/source/c_trace_de.md) / awb-landkreis-augsburg.de

37
doc/ics/ilm_kreis_de.md Normal file
View File

@@ -0,0 +1,37 @@
# Abfallwirtschaftsbetrieb Ilm-Kreis
Abfallwirtschaftsbetrieb Ilm-Kreis 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://aik.ilm-kreis.de/Abfuhrtermine/> and select your municipality.
- Right-click on `Terminexport` and select `Inspect`.
- You should see a HTML fragment like this:
```html
<input class="" style="width:50%;" type="button" title="Termine im Format ICS exportieren" value="Terminexport" data-href="/output/options.php?ModID=48&amp;call=ical&amp;&amp;pois=3053.8&amp;kat=1%2C">
```
The relevant information pieces are the 2 numbers behind `ModID` and `pois` at the end of the HTML fragment:
```
ModID=48
pois=3053.8
```
- Replace the numbers behind `ModID` and `pois` in the example configuration your values.
## Examples
### Oppach
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
headers:
referer: https://aik.ilm-kreis.de
url: https://aik.ilm-kreis.de/output/options.php?ModID=48&call=ical&pois=3053.8
```

View File

@@ -0,0 +1,24 @@
title: Abfallwirtschaftsbetrieb Ilm-Kreis
url: https://www.ilm-kreis.de
howto: |
- Goto <https://aik.ilm-kreis.de/Abfuhrtermine/> and select your municipality.
- Right-click on `Terminexport` and select `Inspect`.
- You should see a HTML fragment like this:
```html
<input class="" style="width:50%;" type="button" title="Termine im Format ICS exportieren" value="Terminexport" data-href="/output/options.php?ModID=48&amp;call=ical&amp;&amp;pois=3053.8&amp;kat=1%2C">
```
The relevant information pieces are the 2 numbers behind `ModID` and `pois` at the end of the HTML fragment:
```
ModID=48
pois=3053.8
```
- Replace the numbers behind `ModID` and `pois` in the example configuration your values.
test_cases:
Oppach:
url: "https://aik.ilm-kreis.de/output/options.php?ModID=48&call=ical&pois=3053.8"
headers:
referer: "https://aik.ilm-kreis.de"

View File

@@ -11,6 +11,7 @@ This source has been successfully tested with the following service providers:
### Germany
- [Abfallwirtschaftsbetrieb Ilm-Kreis](/doc/ics/ilm_kreis_de.md) / ilm-kreis.de
- [Abfallwirtschaftsbetrieb Landkreis Karlsruhe](/doc/ics/awb_landkreis_karlsruhe_de.md) / awb-landkreis-karlsruhe.de
- [AVL - Abfallverwertungsgesellschaft des Landkreises Ludwigsburg mbH](/doc/ics/avl_ludwigsburg_de.md) / avl-ludwigsburg.de
- [Awista Starnberg](/doc/ics/awista_starnberg_de.md) / awista-starnberg.de
@@ -39,7 +40,6 @@ In addition, users reported that the following service providers are working:
- [Abfallwirtschaft Kreis Böblingen](https://www.lrabb.de/start/Service+_+Verwaltung/Abfuhrtermine.html)
- [AWM München](https://www.awm-muenchen.de) ([Notes](#awm-münchen))
- [Gemeinde Zorneding](https://www.zorneding.de/Wohnen-Leben/Abfall-Energie-Wasser/M%C3%BCllkalender/index.php) ([Notes](#gemeinde-zorneding))
- [Abfallwirtschaftsbetrieb Ilm-Kreis](https://aik.ilm-kreis.de/) ([Notes](#abfallwirtschaftsbetrieb-ilm-kreis))
### Sweden
@@ -376,22 +376,3 @@ waste_collection_schedule:
```
Removes the needless prefix "Abfuhr: " from the waste collection type.
***
### Abfallwirtschaftsbetrieb Ilm-Kreis
Go to the [service provider website](https://aik.ilm-kreis.de/Abfuhrtermine/) and select location and street. Selection of desired waste types is optional. Afterwards an iCal calendar export is provided. Download it and find the download URL. Some parameters of the URL can be omitted. (e.g. `kat`, `ArtID`, `alarm`)
Important: The base url of the provider's website `https://aik.ilm-kreis.de` needs to be set as a [custom header](#custom-headers) `referer`. Otherwise you'll get an HTTP 403 error.
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
url: "https://aik.ilm-kreis.de/output/options.php?ModID=48&call=ical&=&ArtID[0]=1.1&ArtID[1]=1.4&ArtID[2]=1.2&pois=3053.562&kat=1,&alarm=0"
headers:
referer: "https://aik.ilm-kreis.de"
calendar_title: Abfuhrtermine Witzleben
```

File diff suppressed because one or more lines are too long