Skip to content

Commit

Permalink
ICS contarina_it now suggest a regex and split_at parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
5ila5 committed Jan 23, 2024
1 parent d529562 commit 2bd2cb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/ics/contarina_it.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
```
3 changes: 3 additions & 0 deletions doc/ics/yaml/contarina_it.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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: ".*: (.*)"

0 comments on commit 2bd2cb8

Please sign in to comment.