From 746e3d790148c9c6a7a569e56ca78d06b58f149b Mon Sep 17 00:00:00 2001 From: 5ila5 <5ila5@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:44:40 +0200 Subject: [PATCH] add ICS goes_nl --- README.md | 1 + .../waste_collection_schedule/sources.json | 5 ++++ doc/ics/goes_nl.md | 23 +++++++++++++++++++ doc/ics/yaml/goes_nl.yaml | 10 ++++++++ doc/source/ics.md | 1 + info.md | 2 +- 6 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 doc/ics/goes_nl.md create mode 100644 doc/ics/yaml/goes_nl.yaml diff --git a/README.md b/README.md index 25291995..6a70d57c 100644 --- a/README.md +++ b/README.md @@ -1225,6 +1225,7 @@ If your service provider is not listed, feel free to open a [source request issu - [Gemeente Voorschoten](/doc/source/hvcgroep_nl.md) / voorschoten.nl - [Gemeente Waalre](/doc/source/hvcgroep_nl.md) / waalre.nl - [Gemeente Westland](/doc/source/ximmio_nl.md) / gemeentewestland.nl +- [Goes](/doc/ics/goes_nl.md) / goes.nl - [Heusden](/doc/source/afvalstoffendienst_nl.md) / heusden.afvalstoffendienstkalender.nl - [HVC Groep](/doc/source/hvcgroep_nl.md) / hvcgroep.nl - [Meerlanden](/doc/source/ximmio_nl.md) / meerlanden.nl diff --git a/custom_components/waste_collection_schedule/sources.json b/custom_components/waste_collection_schedule/sources.json index bed507b4..589937fe 100644 --- a/custom_components/waste_collection_schedule/sources.json +++ b/custom_components/waste_collection_schedule/sources.json @@ -6748,6 +6748,11 @@ "company": "westland" } }, + { + "title": "Goes", + "module": "ics", + "default_params": {} + }, { "title": "Heusden", "module": "afvalstoffendienst_nl", diff --git a/doc/ics/goes_nl.md b/doc/ics/goes_nl.md new file mode 100644 index 00000000..9a367109 --- /dev/null +++ b/doc/ics/goes_nl.md @@ -0,0 +1,23 @@ +# Goes + +Goes 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 select your location. +- Right click copy link address on the `Persoonlijke afvalkalender` button. +- Replace the `url` in the example configuration with this link. +- Replace the current year with `{%Y}` in the link. + +## Examples + +### 4472AS 2 + +```yaml +waste_collection_schedule: + sources: + - name: ics + args: + url: https://afvalkalender.goes.nl/{%Y}/4472AS-2.ics +``` diff --git a/doc/ics/yaml/goes_nl.yaml b/doc/ics/yaml/goes_nl.yaml new file mode 100644 index 00000000..7b75ac8a --- /dev/null +++ b/doc/ics/yaml/goes_nl.yaml @@ -0,0 +1,10 @@ +title: Goes +url: https://www.goes.nl/ +howto: | + - Visit and select your location. + - Right click copy link address on the `Persoonlijke afvalkalender` button. + - Replace the `url` in the example configuration with this link. + - Replace the current year with `{%Y}` in the link. +test_cases: + 4472AS 2: + url: "https://afvalkalender.goes.nl/{%Y}/4472AS-2.ics" diff --git a/doc/source/ics.md b/doc/source/ics.md index fa14e3c7..9b66bdf0 100644 --- a/doc/source/ics.md +++ b/doc/source/ics.md @@ -262,6 +262,7 @@ This source has been successfully tested with the following service providers: ### Netherlands +- [Goes](/doc/ics/goes_nl.md) / goes.nl - [Ôffalkalinder van Noardeast-Fryslân & Dantumadiel](/doc/ics/offalkalinder_nl.md) / offalkalinder.nl ### Norway diff --git a/info.md b/info.md index d3c15b67..d371b93c 100644 --- a/info.md +++ b/info.md @@ -29,7 +29,7 @@ Waste collection schedules from service provider web sites are updated daily, de | Italy | CIDIU S.p.A., Contarina S.p.A, Il Rifiutologo | | Lithuania | Kauno švara, Telšių keliai | | Luxembourg | Esch-sur-Alzette | -| 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, 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, 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, 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, Ecoharmonogram, Gmina Miękinia, Koziegłowy/Objezierze/Oborniki, Poznań, Warsaw, Wrocław |