Skip to content

Commit

Permalink
ICS add asf_online_de
Browse files Browse the repository at this point in the history
  • Loading branch information
5ila5 committed Jul 24, 2024
1 parent 6cbb978 commit 8f2ecdf
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ Waste collection schedules in the following formats and countries are supported.
- [RSAG Rhein-Sieg-Kreis](/doc/source/muellmax_de.md) / rsag.de
- [Salzgitter (MyMuell App)](/doc/source/jumomind_de.md) / mymuell.de
- [Salzlandkreis](/doc/source/app_abfallplus_de.md) / Abfall+ App: abfallslk
- [Schleswig-Flensburg (ASF)](/doc/ics/asf_online_de.md) / asf-online.de
- [Schmitten im Taunus (MyMuell App)](/doc/source/jumomind_de.md) / mymuell.de
- [Schwarze Elster](/doc/source/app_abfallplus_de.md) / Abfall+ App: aevapp
- [Schwarzwald-Baar-Kreis](/doc/source/app_abfallplus_de.md) / Abfall+ App: abfallsbk
Expand Down
5 changes: 5 additions & 0 deletions custom_components/waste_collection_schedule/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -5339,6 +5339,11 @@
"app_id": "de.k4systems.abfallslk"
}
},
{
"title": "Schleswig-Flensburg (ASF)",
"module": "ics",
"default_params": {}
},
{
"title": "Schmitten im Taunus (MyMuell App)",
"module": "jumomind_de",
Expand Down
23 changes: 23 additions & 0 deletions doc/ics/asf_online_de.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Schleswig-Flensburg (ASF)

Schleswig-Flensburg (ASF) 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.asf-online.de/abfuhrtermine/> and select your location.
- You may want to select the `Abfallarten` if you do not want all to show up in your calendar.
- Right click -> copy-link the `Als Kalenderdatei (.ics) herunterladen` button to get the ICS link.
- Replace the `url` in the example configuration with this link.

## Examples

### Dannewerk Katenweg

```yaml
waste_collection_schedule:
sources:
- name: ics
args:
url: https://www.asf-online.de/api_v2/collection_dates/1/ort/19/strasse/100/hausnummern/1/abfallarten/R04-R02-B02-D02-P04-P44-P22-R44-R42-R11R21-R54-R52-R61-R71-R82-B82-P82-D82/kalender.ics
```
10 changes: 10 additions & 0 deletions doc/ics/yaml/asf_online_de.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Schleswig-Flensburg (ASF)
url: https://asf-online.de/
howto: |
- Goto <https://www.asf-online.de/abfuhrtermine/> and select your location.
- You may want to select the `Abfallarten` if you do not want all to show up in your calendar.
- Right click -> copy-link the `Als Kalenderdatei (.ics) herunterladen` button to get the ICS link.
- Replace the `url` in the example configuration with this link.
test_cases:
Dannewerk Katenweg:
url: "https://www.asf-online.de/api_v2/collection_dates/1/ort/19/strasse/100/hausnummern/1/abfallarten/R04-R02-B02-D02-P04-P44-P22-R44-R42-R11R21-R54-R52-R61-R71-R82-B82-P82-D82/kalender.ics"
1 change: 1 addition & 0 deletions doc/source/ics.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ This source has been successfully tested with the following service providers:
- [Neu Ulm](/doc/ics/neu_ulm_de.md) / neu-ulm.de
- [Oberhavel AWU](/doc/ics/awu_oberhavel_de.md) / awu-oberhavel.de
- [Rhein-Pfalz-Kreis](/doc/ics/abfall_app_net.md) / rhein-pfalz-kreis.de
- [Schleswig-Flensburg (ASF)](/doc/ics/asf_online_de.md) / asf-online.de
- [Stadt Detmold](/doc/ics/detmold_de.md) / detmold.de
- [Stadt Koblenz](/doc/ics/koblenz_de.md) / koblenz.de
- [Stadt Mainhausen](/doc/ics/stadt_mainhausen_de.md) / mainhausen.de
Expand Down
2 changes: 1 addition & 1 deletion info.md

Large diffs are not rendered by default.

0 comments on commit 8f2ecdf

Please sign in to comment.