Add Abfallwirtschaft Sonneberg (#1690)

Co-authored-by: 5ila5 <38183212+5ila5@users.noreply.github.com>
This commit is contained in:
Marcel Brückner
2024-01-18 11:52:37 +01:00
committed by GitHub
parent bcc8d09cd3
commit cb6afe0c3e
5 changed files with 197 additions and 1 deletions

View File

@@ -536,6 +536,7 @@ Waste collection schedules in the following formats and countries are supported.
- [Abfallwirtschaft Rems-Murr](/doc/source/awido_de.md) / abfallwirtschaft-rems-murr.de
- [Abfallwirtschaft Rendsburg](/doc/source/awr_de.md) / awr.de
- [Abfallwirtschaft Rheingau-Taunus-Kreis](/doc/source/c_trace_de.md) / eaw-rheingau-taunus.de
- [Abfallwirtschaft Sonneberg](/doc/ics/abfallwirtschaft_sonneberg_de.md) / abfallwirtschaft-sonneberg.de
- [Abfallwirtschaft Stadt Fürth](/doc/source/abfallwirtschaft_fuerth_eu.md) / abfallwirtschaft.fuerth.eu
- [Abfallwirtschaft Stadt Nürnberg](/doc/source/abfallnavi_de.md) / nuernberg.de
- [Abfallwirtschaft Stadt Schweinfurt](/doc/source/schweinfurt_de.md) / schweinfurt.de

View File

@@ -0,0 +1,112 @@
# Abfallwirtschaft Sonneberg
Abfallwirtschaft Sonneberg 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://www.abfallwirtschaft-sonneberg.de/abfallkalender/>.
- Select your municipality (`Ort`), district (`Ortsteil`) and - if necessary - street (`Straße`).
- Right-click each dropdown field an click `Inspect`. This will open your browser's developer tools and display the corresponding HTML source:
```html
<!-- Some lines of code have been removed from the below for readability -->
<select class="form-control" id="ort" name="ort">
<option value="">Bitte Ort wählen</option>
<option value="Föritztal">Föritztal</option>
<option value="Neuhaus am Rennweg">Neuhaus am Rennweg</option>
<option value="Sonneberg">Sonneberg</option>
</select>
<select class="form-control stadtteil" name="stadtteil" id="stadtteil">
<option value="" selected=""></option>
<option value="Bettelhecken">Bettelhecken (ab Bettelhecker Straße Nr. 57 und 66)</option>
<option value="Hönbach">Hönbach</option>
<option value="Innenstadtbereich">Innenstadtbereich</option>
<option value="Steinbach">Steinbach (einschl. gesamte Bergstr.)</option>
</select>
<select class="form-control" name="strasse" id="strasse">
<option value="" selected=""></option>
<option value="Alte Molkerei">Alte Molkerei</option>
<option value="Bettelhecker Straße bis Nr. 55 und 64">Bettelhecker Straße bis Nr. 55 und 64 (Coburger Allee bis Eisenbahnbrücke)</option>
</select>
```
You will need to get the exact `value` of your selected option as an option's value might differ from the text shown in the dropdown field for certain options, especially for the longer.
- Replace the corresponding `params` in the example configuration with your values.
*Please note that there's usually no need to replace umlauts in parameter values with their respective Unicode number (e.g. `ä` -> `\xE4`).*
*This just happens while generating this documentation from source.*
*Refer to [Abfallwirtschaft Sonneberg's documentation source](/doc/ics/yaml/abfallwirtschaft_sonneberg_de.yaml) for unaltered examples.*
## Examples
### Föritztal, Schwärzdorf
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
method: POST
params:
ort: "F\xF6ritztal"
stadtteil: "Schw\xE4rzdorf"
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
```
### Neuhaus am Rennweg, Neuhaus am Rennweg
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
method: POST
params:
ort: Neuhaus am Rennweg
stadtteil: Neuhaus am Rennweg
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
```
### Sonneberg, Hönbach
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
method: POST
params:
ort: Sonneberg
stadtteil: "H\xF6nbach"
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
```
### Sonneberg, Innenstadtbereich, Coburger Allee
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
method: POST
params:
ort: Sonneberg
stadtteil: Innenstadtbereich
strasse: Coburger Allee
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
```
### Sonneberg, Steinbach (einschl. gesamte Bergstr.)
```yaml
waste_collection_schedule:
sources:
- name: ics
args:
method: POST
params:
ort: Sonneberg
stadtteil: Steinbach
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
```

View File

@@ -0,0 +1,82 @@
title: Abfallwirtschaft Sonneberg
url: https://www.abfallwirtschaft-sonneberg.de
howto: |
- Goto <https://www.abfallwirtschaft-sonneberg.de/abfallkalender/>.
- Select your municipality (`Ort`), district (`Ortsteil`) and - if necessary - street (`Straße`).
- Right-click each dropdown field an click `Inspect`. This will open your browser's developer tools and display the corresponding HTML source:
```html
<!-- Some lines of code have been removed from the below for readability -->
<select class="form-control" id="ort" name="ort">
<option value="">Bitte Ort wählen</option>
<option value="Föritztal">Föritztal</option>
<option value="Neuhaus am Rennweg">Neuhaus am Rennweg</option>
<option value="Sonneberg">Sonneberg</option>
</select>
<select class="form-control stadtteil" name="stadtteil" id="stadtteil">
<option value="" selected=""></option>
<option value="Bettelhecken">Bettelhecken (ab Bettelhecker Straße Nr. 57 und 66)</option>
<option value="Hönbach">Hönbach</option>
<option value="Innenstadtbereich">Innenstadtbereich</option>
<option value="Steinbach">Steinbach (einschl. gesamte Bergstr.)</option>
</select>
<select class="form-control" name="strasse" id="strasse">
<option value="" selected=""></option>
<option value="Alte Molkerei">Alte Molkerei</option>
<option value="Bettelhecker Straße bis Nr. 55 und 64">Bettelhecker Straße bis Nr. 55 und 64 (Coburger Allee bis Eisenbahnbrücke)</option>
</select>
```
You will need to get the exact `value` of your selected option as an option's value might differ from the text shown in the dropdown field for certain options, especially for the longer.
- Replace the corresponding `params` in the example configuration with your values.
*Please note that there's usually no need to replace umlauts in parameter values with their respective Unicode number (e.g. `ä` -> `\xE4`).*
*This just happens while generating this documentation from source.*
*Refer to [Abfallwirtschaft Sonneberg's documentation source](/doc/ics/yaml/abfallwirtschaft_sonneberg_de.yaml) for unaltered examples.*
test_cases:
Föritztal, Schwärzdorf:
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
method: POST
params:
# Municipality
ort: Föritztal
# District
stadtteil: Schwärzdorf
Neuhaus am Rennweg, Neuhaus am Rennweg:
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
method: POST
params:
# Municipality
ort: Neuhaus am Rennweg
# District
stadtteil: Neuhaus am Rennweg
Sonneberg, Hönbach:
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
method: POST
params:
# Municipality
ort: Sonneberg
# District
stadtteil: Hönbach
Sonneberg, Innenstadtbereich, Coburger Allee:
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
method: POST
params:
# Municipality
ort: Sonneberg
# District
stadtteil: Innenstadtbereich
# Street (required for the chosen district)
strasse: Coburger Allee
Sonneberg, Steinbach (einschl. gesamte Bergstr.):
url: https://www.abfallwirtschaft-sonneberg.de/PHPtoICS{%Y}.php
method: POST
params:
# Municipality
ort: Sonneberg
# District
stadtteil: Steinbach

View File

@@ -155,6 +155,7 @@ This source has been successfully tested with the following service providers:
- [Abfallwirtschaft Kreis Plön](/doc/ics/kreis_ploen_de.md) / kreis-ploen.de
- [Abfallwirtschaft Landkreis Haßberg](/doc/ics/awhas_de.md) / awhas.de
- [Abfallwirtschaft Potsdam-Mittelmark (APM)](/doc/ics/apm_de.md) / apm-niemegk.de
- [Abfallwirtschaft Sonneberg](/doc/ics/abfallwirtschaft_sonneberg_de.md) / abfallwirtschaft-sonneberg.de
- [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
- [Abfallwirtschaftsbetrieb München](/doc/ics/awm_muenchen_de.md) / awm-muenchen.de

File diff suppressed because one or more lines are too long