From 4eedd1e9f58e8112c3a3d14d068b4c5c8ca7d29e Mon Sep 17 00:00:00 2001 From: 5ila5 <5ila5@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:43:36 +0200 Subject: [PATCH] add ICAL source Afval Wijzer, Netherlands --- README.md | 1 + .../waste_collection_schedule/sources.json | 6 +++ .../translations/de.json | 42 +++++++++++++++++++ .../translations/en.json | 42 +++++++++++++++++++ .../translations/it.json | 42 +++++++++++++++++++ doc/ics/mijnafvalwijzer_nl.md | 22 ++++++++++ doc/ics/yaml/mijnafvalwijzer_nl.yaml | 11 +++++ doc/source/ics.md | 1 + info.md | 2 +- 9 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 doc/ics/mijnafvalwijzer_nl.md create mode 100644 doc/ics/yaml/mijnafvalwijzer_nl.yaml diff --git a/README.md b/README.md index d74c6bf1b..088ef7652 100644 --- a/README.md +++ b/README.md @@ -1390,6 +1390,7 @@ If your service provider is not listed, feel free to open a [source request issu - ['s-Hertogenbosch](/doc/source/afvalstoffendienst_nl.md) / afvalstoffendienst.nl - [ACV Group](/doc/source/ximmio_nl.md) / acv-afvalkalender.nl +- [Afval Wijzer](/doc/ics/mijnafvalwijzer_nl.md) / mijnafvalwijzer.nl - [Afvalstoffendienst.nl](/doc/source/afvalstoffendienst_nl.md) / afvalstoffendienst.nl - [Alpen an den Rijn](/doc/source/hvcgroep_nl.md) / alphenaandenrijn.nl - [Altena](/doc/source/afvalstoffendienst_nl.md) / altena.afvalstoffendienstkalender.nl diff --git a/custom_components/waste_collection_schedule/sources.json b/custom_components/waste_collection_schedule/sources.json index d257651f5..8b3c757f2 100644 --- a/custom_components/waste_collection_schedule/sources.json +++ b/custom_components/waste_collection_schedule/sources.json @@ -8993,6 +8993,12 @@ }, "id": "ximmio_nl" }, + { + "title": "Afval Wijzer", + "module": "ics", + "default_params": {}, + "id": "ics_mijnafvalwijzer_nl" + }, { "title": "Afvalstoffendienst.nl", "module": "afvalstoffendienst_nl", diff --git a/custom_components/waste_collection_schedule/translations/de.json b/custom_components/waste_collection_schedule/translations/de.json index 9d68fcc2a..836ca08dd 100644 --- a/custom_components/waste_collection_schedule/translations/de.json +++ b/custom_components/waste_collection_schedule/translations/de.json @@ -8894,6 +8894,48 @@ }, "data_description": {} }, + "args_ics_mijnafvalwijzer_nl": { + "title": "Quelle konfigurieren", + "description": "Konfiguriere deinen Service Provider. \n\n- Visit https://www.mijnafvalwijzer.nl and search for your location. \n- Click on the calendar icon button to get a webcal link.\n- Use this url as the `url` parameter.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/mijnafvalwijzer_nl.md", + "data": { + "calendar_title": "Kalender Titel", + "file": "Datei", + "headers": "Headers", + "method": "Methode", + "offset": "Offset", + "params": "Parameter", + "regex": "Regulärer Ausdruck", + "split_at": "Trennen bei", + "title_template": "Titelvorlage", + "url": "URL", + "verify_ssl": "SSL-Verifizierung aktivieren", + "version": "Version", + "year_field": "Jahresfeld" + }, + "data_description": { + "calendar_title": "Ein lesbarerer oder benutzerfreundlicherer Name für den Müllkalender. Wenn nichts angegeben wird, wird der Name der Quelle verwendet." + } + }, + "reconfigure_ics_mijnafvalwijzer_nl": { + "title": "Quelle Neu Konfigurieren", + "description": "Konfiguriere deinen Service Provider. \n\n- Visit https://www.mijnafvalwijzer.nl and search for your location. \n- Click on the calendar icon button to get a webcal link.\n- Use this url as the `url` parameter.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/mijnafvalwijzer_nl.md", + "data": { + "calendar_title": "Kalender Titel", + "file": "Datei", + "headers": "Headers", + "method": "Methode", + "offset": "Offset", + "params": "Parameter", + "regex": "Regulärer Ausdruck", + "split_at": "Trennen bei", + "title_template": "Titelvorlage", + "url": "URL", + "verify_ssl": "SSL-Verifizierung aktivieren", + "version": "Version", + "year_field": "Jahresfeld" + }, + "data_description": {} + }, "args_hvcgroep_nl": { "title": "Quelle konfigurieren", "description": "Konfiguriere deinen Service Provider. Mehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/hvcgroep_nl.md", diff --git a/custom_components/waste_collection_schedule/translations/en.json b/custom_components/waste_collection_schedule/translations/en.json index cecb625b3..c291a822a 100644 --- a/custom_components/waste_collection_schedule/translations/en.json +++ b/custom_components/waste_collection_schedule/translations/en.json @@ -8894,6 +8894,48 @@ }, "data_description": {} }, + "args_ics_mijnafvalwijzer_nl": { + "title": "Configure Source", + "description": "Configure your service provider. \n\n- Visit https://www.mijnafvalwijzer.nl and search for your location. \n- Click on the calendar icon button to get a webcal link.\n- Use this url as the `url` parameter.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/mijnafvalwijzer_nl.md.", + "data": { + "calendar_title": "Calendar Title", + "file": "File", + "headers": "Headers", + "method": "Method", + "offset": "Offset", + "params": "Parameters", + "regex": "Regex", + "split_at": "Split At", + "title_template": "Title Template", + "url": "Url", + "verify_ssl": "Verify Ssl", + "version": "Version", + "year_field": "Year Field" + }, + "data_description": { + "calendar_title": "A more readable, or user-friendly, name for the waste calendar. If nothing is provided, the name returned by the source will be used." + } + }, + "reconfigure_ics_mijnafvalwijzer_nl": { + "title": "Reconfigure Source", + "description": "Configure your service provider. \n\n- Visit https://www.mijnafvalwijzer.nl and search for your location. \n- Click on the calendar icon button to get a webcal link.\n- Use this url as the `url` parameter.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/mijnafvalwijzer_nl.md.", + "data": { + "calendar_title": "Calendar Title", + "file": "File", + "headers": "Headers", + "method": "Method", + "offset": "Offset", + "params": "Parameters", + "regex": "Regex", + "split_at": "Split At", + "title_template": "Title Template", + "url": "Url", + "verify_ssl": "Verify Ssl", + "version": "Version", + "year_field": "Year Field" + }, + "data_description": {} + }, "args_hvcgroep_nl": { "title": "Configure Source", "description": "Configure your service provider. More details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/hvcgroep_nl.md.", diff --git a/custom_components/waste_collection_schedule/translations/it.json b/custom_components/waste_collection_schedule/translations/it.json index 23c5971e2..6eeee1fa4 100644 --- a/custom_components/waste_collection_schedule/translations/it.json +++ b/custom_components/waste_collection_schedule/translations/it.json @@ -8883,6 +8883,48 @@ }, "data_description": {} }, + "args_ics_mijnafvalwijzer_nl": { + "title": "Configurazione Sorgente", + "description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Visit https://www.mijnafvalwijzer.nl and search for your location. \n- Click on the calendar icon button to get a webcal link.\n- Use this url as the `url` parameter.\n\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/mijnafvalwijzer_nl.md.", + "data": { + "calendar_title": "Nome Calendario", + "file": "Nome File", + "headers": "Headers", + "method": "Metodo", + "offset": "Offset", + "params": "Parametri", + "regex": "Regex", + "split_at": "Split At", + "title_template": "Title Template", + "url": "Url", + "verify_ssl": "Verifica SSL", + "version": "Versione", + "year_field": "Year Field" + }, + "data_description": { + "calendar_title": "Puoi cambiare il nome del calendario della raccolta dei rifiuti, altrimenti di default verra' utilizzato il nome del tuo fornitore di servizi." + } + }, + "reconfigure_ics_mijnafvalwijzer_nl": { + "title": "Riconfigurazione Sorgente", + "description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Visit https://www.mijnafvalwijzer.nl and search for your location. \n- Click on the calendar icon button to get a webcal link.\n- Use this url as the `url` parameter.\n\n\nPer maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/mijnafvalwijzer_nl.md.", + "data": { + "calendar_title": "Nome Calendario", + "file": "Nome File", + "headers": "Headers", + "method": "Metodo", + "offset": "Offset", + "params": "Parametri", + "regex": "Regex", + "split_at": "Split At", + "title_template": "Title Template", + "url": "Url", + "verify_ssl": "Verifica SSL", + "version": "Versione", + "year_field": "Year Field" + }, + "data_description": {} + }, "args_hvcgroep_nl": { "title": "Configurazione Sorgente", "description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. Maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/hvcgroep_nl.md.", diff --git a/doc/ics/mijnafvalwijzer_nl.md b/doc/ics/mijnafvalwijzer_nl.md new file mode 100644 index 000000000..ce376d219 --- /dev/null +++ b/doc/ics/mijnafvalwijzer_nl.md @@ -0,0 +1,22 @@ +# Afval Wijzer + +Afval Wijzer 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 + +- Visit and search for your location. +- Click on the calendar icon button to get a webcal link. +- Use this url as the `url` parameter. + +## Examples + +### Tulpenburg 61 Amstelveen + +```yaml +waste_collection_schedule: + sources: + - name: ics + args: + url: https://api.mijnafvalwijzer.nl/webservices/ical/11f68080-fdd0-44cf-a77b-043bc11e833d +``` diff --git a/doc/ics/yaml/mijnafvalwijzer_nl.yaml b/doc/ics/yaml/mijnafvalwijzer_nl.yaml new file mode 100644 index 000000000..e7fe74d49 --- /dev/null +++ b/doc/ics/yaml/mijnafvalwijzer_nl.yaml @@ -0,0 +1,11 @@ +--- +title: Afval Wijzer +url: https://www.mijnafvalwijzer.nl +howto: + en: | + - Visit and search for your location. + - Click on the calendar icon button to get a webcal link. + - Use this url as the `url` parameter. +test_cases: + Tulpenburg 61 Amstelveen: + url: https://api.mijnafvalwijzer.nl/webservices/ical/11f68080-fdd0-44cf-a77b-043bc11e833d diff --git a/doc/source/ics.md b/doc/source/ics.md index 44b13d872..d8f322d9c 100644 --- a/doc/source/ics.md +++ b/doc/source/ics.md @@ -274,6 +274,7 @@ This source has been successfully tested with the following service providers: ### Netherlands +- [Afval Wijzer](/doc/ics/mijnafvalwijzer_nl.md) / mijnafvalwijzer.nl - [Goes](/doc/ics/goes_nl.md) / goes.nl - [Ôffalkalinder van Noardeast-Fryslân & Dantumadiel](/doc/ics/offalkalinder_nl.md) / offalkalinder.nl diff --git a/info.md b/info.md index 3b3d74732..a519c40d5 100644 --- a/info.md +++ b/info.md @@ -30,7 +30,7 @@ Waste collection schedules from service provider web sites are updated daily, de | Lithuania | Kauno švara, Telšių keliai | | Luxembourg | Esch-sur-Alzette, SICA | | Malta | Malta | -| Netherlands | 's-Hertogenbosch, ACV Group, Afvalstoffendienst.nl, Alpen an den Rijn, Altena, Area Afval, Avalex, Avri, Bar Afvalbeheer, Bernheze, Circulus, Cyclus NV, Dar, Den Haag, GAD, Gemeente Almere, Gemeente Berkelland, Gemeente Cranendonck, Gemeente Hellendoorn, Gemeente Lingewaard, Gemeente Meppel, Gemeente Middelburg + Vlissingen, Gemeente Peel en Maas, Gemeente Schouwen-Duiveland, Gemeente Sudwest-Fryslan, Gemeente Venray, Gemeente Voorschoten, Gemeente Waalre, Gemeente Westland, Goes, Heusden, HVC Groep, Meerlanden, Mijn Blink, Oisterwijk, PreZero, Purmerend, RAD BV, Rd4, Reinis, Spaarnelanden, Twente Milieu, Vught, Waardlanden, Ximmio, ZRD, Ôffalkalinder van Noardeast-Fryslân & Dantumadiel | +| Netherlands | 's-Hertogenbosch, ACV Group, Afval Wijzer, Afvalstoffendienst.nl, Alpen an den Rijn, Altena, Area Afval, Avalex, Avri, Bar Afvalbeheer, Bernheze, Circulus, Cyclus NV, Dar, Den Haag, GAD, Gemeente Almere, Gemeente Berkelland, Gemeente Cranendonck, Gemeente Hellendoorn, Gemeente Lingewaard, Gemeente Meppel, Gemeente Middelburg + Vlissingen, Gemeente Peel en Maas, Gemeente Schouwen-Duiveland, Gemeente Sudwest-Fryslan, Gemeente Venray, Gemeente Voorschoten, Gemeente Waalre, Gemeente Westland, Goes, Heusden, HVC Groep, Meerlanden, Mijn Blink, Oisterwijk, PreZero, Purmerend, RAD BV, Rd4, Reinis, Spaarnelanden, Twente Milieu, Vught, Waardlanden, Ximmio, ZRD, Ôffalkalinder van Noardeast-Fryslân & Dantumadiel | | New Zealand | Auckland Council, Christchurch City Council, Dunedin District Council, Gore, Invercargill & Southland, Hamilton City Council, Horowhenua District Council, Hutt City Council, Napier City Council, Porirua City, Rotorua Lakes Council, Tauranga City Council, Waipa District Council, Wellington City Council | | Norway | BIR (Bergensområdets Interkommunale Renovasjonsselskap), Fosen Renovasjon, IRiS, Min Renovasjon, Movar IKS, Oslo Kommune, ReMidt Orkland muni, Sandnes Kommune, Stavanger Kommune, Trondheim | | Poland | App Moje Odpady, Bydgoszcz Pronatura, Czerwonak, Murowana Goślina, Oborniki, Ecoharmonogram, Gmina Miękinia, Koziegłowy/Objezierze/Oborniki, MPGK Katowice, Poznań, Warsaw, Wrocław |