From 2bd2cb82865b36edbba900d82b56d3d70e360d12 Mon Sep 17 00:00:00 2001 From: 5ila5 <5ila5@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:16:50 +0100 Subject: [PATCH] ICS contarina_it now suggest a regex and split_at parameter --- doc/ics/contarina_it.md | 3 +++ doc/ics/yaml/contarina_it.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/ics/contarina_it.md b/doc/ics/contarina_it.md index 2ca0ee86a..987ebd392 100644 --- a/doc/ics/contarina_it.md +++ b/doc/ics/contarina_it.md @@ -7,6 +7,7 @@ Contarina S.p.A is supported by the generic [ICS](/doc/source/ics.md) source. Fo - Copy the `url` in the example configuration with this link. - Replace the url's `{zone}` substring with your location's zone code (check below for the chart) +- Keeping `regex` and `split_at` as they are will remove potetially unnecessary names and split the waste types if there are multiple in one day. Zone codes `{code} : {zone}`: - 1 : "Treviso - cintura urbana", @@ -73,5 +74,7 @@ waste_collection_schedule: sources: - name: ics args: + regex: '.*: (.*)' + split_at: ', ' url: https://contarina.it/ajax/moduli/appbugfixapi/genera_ics_calendari?id_zona=1 ``` diff --git a/doc/ics/yaml/contarina_it.yaml b/doc/ics/yaml/contarina_it.yaml index 87a80408e..600cfadde 100644 --- a/doc/ics/yaml/contarina_it.yaml +++ b/doc/ics/yaml/contarina_it.yaml @@ -4,6 +4,7 @@ country: it howto: | - Copy the `url` in the example configuration with this link. - Replace the url's `{zone}` substring with your location's zone code (check below for the chart) + - Keeping `regex` and `split_at` as they are will remove potetially unnecessary names and split the waste types if there are multiple in one day. Zone codes `{code} : {zone}`: - 1 : "Treviso - cintura urbana", @@ -64,3 +65,5 @@ howto: | test_cases: Treviso - cintura urbana": url: "https://contarina.it/ajax/moduli/appbugfixapi/genera_ics_calendari?id_zona=1" + split_at: ", " + regex: ".*: (.*)"