Skip to content

Commit

Permalink
Add Seon (Switzerland)
Browse files Browse the repository at this point in the history
  • Loading branch information
starwarsfan authored and 5ila5 committed Oct 29, 2024
1 parent 21f6744 commit 50539b2
Show file tree
Hide file tree
Showing 9 changed files with 174 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1916,6 +1916,7 @@ If your service provider is not listed, feel free to open a [source request issu
- [Schliern](/doc/source/koeniz_ch.md) / koeniz.citymobile.ch
- [Schwellbrunn](/doc/source/a_region_ch.md) / a-region.ch
- [Schönengrund](/doc/source/a_region_ch.md) / a-region.ch
- [Seon](/doc/ics/seon_ch.md) / seon.ch
- [Speicher](/doc/source/a_region_ch.md) / a-region.ch
- [Spiegel](/doc/source/koeniz_ch.md) / koeniz.citymobile.ch
- [Stadt Bülach](/doc/ics/buelach_ch.md) / buelach.ch
Expand Down
6 changes: 6 additions & 0 deletions custom_components/waste_collection_schedule/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -12159,6 +12159,12 @@
},
"id": "a_region_ch"
},
{
"title": "Seon",
"module": "ics",
"default_params": {},
"id": "ics_seon_ch"
},
{
"title": "Speicher",
"module": "a_region_ch",
Expand Down
42 changes: 42 additions & 0 deletions custom_components/waste_collection_schedule/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -11023,6 +11023,48 @@
},
"data_description": {}
},
"args_ics_seon_ch": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\n- Gehe zu https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370\n- Klicke auf `Entsorgungskalender Google`, um den Link zum Entsorgungskalender zu erhalten. Ggf. `URL in die Zwischenablage kopieren` verwenden.\n- `url`im der Beispielkonfiguration mit der kopierten URL ersetzen.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/seon_ch.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_seon_ch": {
"title": "Quelle Neu Konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\n- Gehe zu https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370\n- Klicke auf `Entsorgungskalender Google`, um den Link zum Entsorgungskalender zu erhalten. Ggf. `URL in die Zwischenablage kopieren` verwenden.\n- `url`im der Beispielkonfiguration mit der kopierten URL ersetzen.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/seon_ch.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_ics_buelach_ch": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\n- Visit https://www.buelach.ch/themen/umwelt-energie-entsorgung/entsorgung/entsorgung-entsorgungskalender. \n- Right-click -> copy link address on the \"Entsorgungskalender\" link to get the link to the ICS file.\n- Use this url as the `url` argument.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/buelach_ch.md",
Expand Down
42 changes: 42 additions & 0 deletions custom_components/waste_collection_schedule/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11029,6 +11029,48 @@
},
"data_description": {}
},
"args_ics_seon_ch": {
"title": "Configure Source",
"description": "Configure your service provider. \n\n- Go to https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370\n- Click on `Entsorgungskalender Google` to get a ical link. If the button is broken use the `URL in Zwichenablage kopieren` button.\n- Replace the `url` in the example configuration with this link.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/seon_ch.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_seon_ch": {
"title": "Reconfigure Source",
"description": "Configure your service provider. \n\n- Go to https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370\n- Click on `Entsorgungskalender Google` to get a ical link. If the button is broken use the `URL in Zwichenablage kopieren` button.\n- Replace the `url` in the example configuration with this link.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/seon_ch.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_ics_buelach_ch": {
"title": "Configure Source",
"description": "Configure your service provider. \n\n- Visit https://www.buelach.ch/themen/umwelt-energie-entsorgung/entsorgung/entsorgung-entsorgungskalender. \n- Right-click -> copy link address on the \"Entsorgungskalender\" link to get the link to the ICS file.\n- Use this url as the `url` argument.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/buelach_ch.md.",
Expand Down
42 changes: 42 additions & 0 deletions custom_components/waste_collection_schedule/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -11012,6 +11012,48 @@
},
"data_description": {}
},
"args_ics_seon_ch": {
"title": "Configurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Go to https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370\n- Click on `Entsorgungskalender Google` to get a ical link. If the button is broken use the `URL in Zwichenablage kopieren` button.\n- Replace the `url` in the example configuration with this link.\n\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/seon_ch.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_seon_ch": {
"title": "Riconfigurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Go to https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370\n- Click on `Entsorgungskalender Google` to get a ical link. If the button is broken use the `URL in Zwichenablage kopieren` button.\n- Replace the `url` in the example configuration with this link.\n\n\nPer maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/seon_ch.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_ics_buelach_ch": {
"title": "Configurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Visit https://www.buelach.ch/themen/umwelt-energie-entsorgung/entsorgung/entsorgung-entsorgungskalender. \n- Right-click -> copy link address on the \"Entsorgungskalender\" link to get the link to the ICS file.\n- Use this url as the `url` argument.\n\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/buelach_ch.md.",
Expand Down
22 changes: 22 additions & 0 deletions doc/ics/seon_ch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Seon

Seon 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

- Go to <https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370>
- Click on `Entsorgungskalender Google` to get a ical link. If the button is broken use the `URL in Zwichenablage kopieren` button.
- Replace the `url` in the example configuration with this link.

## Examples

### Oberdorfstrasse 11, 5703 Seon

```yaml
waste_collection_schedule:
sources:
- name: ics
args:
url: https://www.seon.ch/public/upload/assets/5125/Entsorgungskalender%202024%20Google.ics?fp=2
```
17 changes: 17 additions & 0 deletions doc/ics/yaml/seon_ch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Seon
url: https://seon.ch
country: ch
howto:
en: |
- Go to <https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370>
- Click on `Entsorgungskalender Google` to get a ical link. If the button is broken use the `URL in Zwichenablage kopieren` button.
- Replace the `url` in the example configuration with this link.
de: |
- Gehe zu <https://www.seon.ch/verwaltung/dienstleistungen.html/21/service/370>
- Klicke auf `Entsorgungskalender Google`, um den Link zum Entsorgungskalender zu erhalten. Ggf. `URL in die Zwischenablage kopieren` verwenden.
- `url`im der Beispielkonfiguration mit der kopierten URL ersetzen.
test_cases:
Oberdorfstrasse 11, 5703 Seon:
url:
https://www.seon.ch/public/upload/assets/5125/Entsorgungskalender%202024%20Google.ics?fp=2
1 change: 1 addition & 0 deletions doc/source/ics.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ This source has been successfully tested with the following service providers:

- [Canton of Zürich](/doc/ics/openerz_metaodi_ch.md) / openerz.metaodi.ch
- [Münsingen BE, Switzerland](/doc/ics/muensingen_ch.md) / muensingen.ch
- [Seon](/doc/ics/seon_ch.md) / seon.ch
- [Stadt Bülach](/doc/ics/buelach_ch.md) / buelach.ch

### United Kingdom
Expand Down
Loading

0 comments on commit 50539b2

Please sign in to comment.