Skip to content

Commit

Permalink
update tbr_reutlingen_de to support new source used for 2025 (#3541)
Browse files Browse the repository at this point in the history
  • Loading branch information
srempfer committed Jan 20, 2025
1 parent de87e35 commit 4367b74
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9200,7 +9200,7 @@
},
"args_ics_tbr_reutlingen_de": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md",
"description": "Konfiguriere deinen Service Provider. \n\n- Öffnen Sie https://www.tbr-reutlingen.de/entsorgungskalender und gehen Sie zum Bereich `Entsorgungskalender 2025`.\n- Wählen Sie ihre Straße, die gewünschten Abfallarten und den Zeitraum aus.\n- Klicken Sie mit der rechten Maustaste auf `ICS` und kopieren Sie den Link.\n- Verwenden Sie diesen Link als `url`-Parameter.\n- Der Link beinhaltet einen Abfrageparameter namens `timeperiod`, welcher das Start- und Enddatum des ausgewählten Jahres definiert. Sie müssen dessen Wert von z.B. `20250101-20251231` zu '{%Y}0101-{%Y}1231' abändern.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md",
"data": {
"calendar_title": "Kalender Titel",
"file": "Datei",
Expand All @@ -9222,7 +9222,7 @@
},
"reconfigure_ics_tbr_reutlingen_de": {
"title": "Quelle Neu Konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md",
"description": "Konfiguriere deinen Service Provider. \n\n- Öffnen Sie https://www.tbr-reutlingen.de/entsorgungskalender und gehen Sie zum Bereich `Entsorgungskalender 2025`.\n- Wählen Sie ihre Straße, die gewünschten Abfallarten und den Zeitraum aus.\n- Klicken Sie mit der rechten Maustaste auf `ICS` und kopieren Sie den Link.\n- Verwenden Sie diesen Link als `url`-Parameter.\n- Der Link beinhaltet einen Abfrageparameter namens `timeperiod`, welcher das Start- und Enddatum des ausgewählten Jahres definiert. Sie müssen dessen Wert von z.B. `20250101-20251231` zu '{%Y}0101-{%Y}1231' abändern.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md",
"data": {
"calendar_title": "Kalender Titel",
"file": "Datei",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9227,7 +9227,7 @@
},
"args_ics_tbr_reutlingen_de": {
"title": "Configure Source",
"description": "Configure your service provider. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"description": "Configure your service provider. \n\n- Open https://www.tbr-reutlingen.de/entsorgungskalender and go to section `Entsorgungskalender 2025`.\n- Select your street, desired waste types and timeperiod.\n- Right-click on `ICS` and copy link address.\n- Use this link as `url` parameter.\n- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to '{%Y}0101-{%Y}1231'.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"data": {
"calendar_title": "Calendar Title",
"file": "File",
Expand All @@ -9249,7 +9249,7 @@
},
"reconfigure_ics_tbr_reutlingen_de": {
"title": "Reconfigure Source",
"description": "Configure your service provider. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"description": "Configure your service provider. \n\n- Open https://www.tbr-reutlingen.de/entsorgungskalender and go to section `Entsorgungskalender 2025`.\n- Select your street, desired waste types and timeperiod.\n- Right-click on `ICS` and copy link address.\n- Use this link as `url` parameter.\n- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to '{%Y}0101-{%Y}1231'.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"data": {
"calendar_title": "Calendar Title",
"file": "File",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9151,7 +9151,7 @@
},
"args_ics_tbr_reutlingen_de": {
"title": "Configurer la Source",
"description": "Configurez votre fournisseur de services. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nPlus de détails : https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"description": "Configurez votre fournisseur de services. \n\n- Open https://www.tbr-reutlingen.de/entsorgungskalender and go to section `Entsorgungskalender 2025`.\n- Select your street, desired waste types and timeperiod.\n- Right-click on `ICS` and copy link address.\n- Use this link as `url` parameter.\n- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to '{%Y}0101-{%Y}1231'.\n\n\nPlus de détails : https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"data": {
"calendar_title": "Titre du Calendrier",
"file": "File",
Expand All @@ -9173,7 +9173,7 @@
},
"reconfigure_ics_tbr_reutlingen_de": {
"title": "Reconfigurer la Source",
"description": "Configurez votre fournisseur de services. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nPlus de détails : https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"description": "Configurez votre fournisseur de services. \n\n- Open https://www.tbr-reutlingen.de/entsorgungskalender and go to section `Entsorgungskalender 2025`.\n- Select your street, desired waste types and timeperiod.\n- Right-click on `ICS` and copy link address.\n- Use this link as `url` parameter.\n- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to '{%Y}0101-{%Y}1231'.\n\n\nPlus de détails : https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"data": {
"calendar_title": "Titre du Calendrier",
"file": "File",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9158,7 +9158,7 @@
},
"args_ics_tbr_reutlingen_de": {
"title": "Configurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Open https://www.tbr-reutlingen.de/entsorgungskalender and go to section `Entsorgungskalender 2025`.\n- Select your street, desired waste types and timeperiod.\n- Right-click on `ICS` and copy link address.\n- Use this link as `url` parameter.\n- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to '{%Y}0101-{%Y}1231'.\n\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"data": {
"calendar_title": "Nome Calendario",
"file": "Nome File",
Expand All @@ -9180,7 +9180,7 @@
},
"reconfigure_ics_tbr_reutlingen_de": {
"title": "Riconfigurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Go to https://www.tbr-reutlingen.de/entsorgungskalender and select your street. \n- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.\n- Replace the `url` in the example configuration with this link.\n- The trailing part of the URL is a URL-encoded JSON string. It contains the \"from\" and \"to\" dates for the calendar. You need to replace the \"from\" date with '01.01.{%Y}' and the \"to\" date with '31.12.{%Y}'. You can use a ureldecoding/-encoding service to make the URL path easier to edit.\n\n\nPer maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Open https://www.tbr-reutlingen.de/entsorgungskalender and go to section `Entsorgungskalender 2025`.\n- Select your street, desired waste types and timeperiod.\n- Right-click on `ICS` and copy link address.\n- Use this link as `url` parameter.\n- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to '{%Y}0101-{%Y}1231'.\n\n\nPer maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/tbr_reutlingen_de.md.",
"data": {
"calendar_title": "Nome Calendario",
"file": "Nome File",
Expand Down
11 changes: 6 additions & 5 deletions doc/ics/tbr_reutlingen_de.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ Technischer Betriebsdienst Reutlingen is supported by the generic [ICS](/doc/sou

## How to get the configuration arguments

- Go to <https://www.tbr-reutlingen.de/entsorgungskalender> and select your street.
- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.
- Replace the `url` in the example configuration with this link.
- The trailing part of the URL is a URL-encoded JSON string. It contains the "from" and "to" dates for the calendar. You need to replace the "from" date with `01.01.{%Y}` and the "to" date with `31.12.{%Y}`. You can use a ureldecoding/-encoding service to make the URL path easier to edit.
- Open <https://www.tbr-reutlingen.de/entsorgungskalender> and go to section `Entsorgungskalender 2025`.
- Select your street, desired waste types and timeperiod.
- Right-click on `ICS` and copy link address.
- Use this link as `url` parameter.
- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to `{%Y}0101-{%Y}1231`.

## Examples

Expand All @@ -19,5 +20,5 @@ waste_collection_schedule:
sources:
- name: ics
args:
url: https://www.tbr-reutlingen.de/tools/garbageCalendar/ics/1/%7B%22garbageTypeFilter%22%3A%7B%22RM2%22%3A%22RM2%22%2C%22RM4%22%3A%22RM4%22%2C%22BIO%22%3A%22BIO%22%2C%22GES%22%3A%22GES%22%2C%22GRG%22%3A%22GRG%22%2C%22PAP%22%3A%22PAP%22%2C%22WST%22%3A%22WST%22%7D%2C%22dateFilter%22%3A%7B%22from%22%3A%2201.01.{%Y}%22%2C%22to%22%3A%2231.12.{%Y}%22%7D%7D
url: https://api.abfall.io/?key=1bf5dd3852fd8c24ec5679c53f678540&mode=export&idhousenumber=658&wastetypes=27,50,66,65,31,3061,169&timeperiod={%Y}0101-{%Y}1231&showinactive=false&type=ics
```
19 changes: 13 additions & 6 deletions doc/ics/yaml/tbr_reutlingen_de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ title: Technischer Betriebsdienst Reutlingen
url: https://www.tbr-reutlingen.de
howto:
en: |
- Go to <https://www.tbr-reutlingen.de/entsorgungskalender> and select your street.
- Right-click on `Abfuhrtermine (iCal) herunterladen` and copy link address.
- Replace the `url` in the example configuration with this link.
- The trailing part of the URL is a URL-encoded JSON string. It contains the "from" and "to" dates for the calendar. You need to replace the "from" date with `01.01.{%Y}` and the "to" date with `31.12.{%Y}`. You can use a ureldecoding/-encoding service to make the URL path easier to edit.
- Open <https://www.tbr-reutlingen.de/entsorgungskalender> and go to section `Entsorgungskalender 2025`.
- Select your street, desired waste types and timeperiod.
- Right-click on `ICS` and copy link address.
- Use this link as `url` parameter.
- The link contains a query parameter called `timeperiod` which defines the start and end of the selected year. You need to modify the value of it from e.g. `20250101-20251231` to `{%Y}0101-{%Y}1231`.
de: |
- Öffnen Sie <https://www.tbr-reutlingen.de/entsorgungskalender> und gehen Sie zum Bereich `Entsorgungskalender 2025`.
- Wählen Sie ihre Straße, die gewünschten Abfallarten und den Zeitraum aus.
- Klicken Sie mit der rechten Maustaste auf `ICS` und kopieren Sie den Link.
- Verwenden Sie diesen Link als `url`-Parameter.
- Der Link beinhaltet einen Abfrageparameter namens `timeperiod`, welcher das Start- und Enddatum des ausgewählten Jahres definiert. Sie müssen dessen Wert von z.B. `20250101-20251231` zu `{%Y}0101-{%Y}1231` abändern.
test_cases:
Reutlingen:
url:
https://www.tbr-reutlingen.de/tools/garbageCalendar/ics/1/%7B%22garbageTypeFilter%22%3A%7B%22RM2%22%3A%22RM2%22%2C%22RM4%22%3A%22RM4%22%2C%22BIO%22%3A%22BIO%22%2C%22GES%22%3A%22GES%22%2C%22GRG%22%3A%22GRG%22%2C%22PAP%22%3A%22PAP%22%2C%22WST%22%3A%22WST%22%7D%2C%22dateFilter%22%3A%7B%22from%22%3A%2201.01.{%Y}%22%2C%22to%22%3A%2231.12.{%Y}%22%7D%7D
url:
https://api.abfall.io/?key=1bf5dd3852fd8c24ec5679c53f678540&mode=export&idhousenumber=658&wastetypes=27,50,66,65,31,3061,169&timeperiod={%Y}0101-{%Y}1231&showinactive=false&type=ics

0 comments on commit 4367b74

Please sign in to comment.