Skip to content

Commit

Permalink
Add a generic source for publidata based French areas + specific inst…
Browse files Browse the repository at this point in the history
…ances (#2824)

* Add a generic source for publidata based French areas + specific instances

Support for schedules provided by [Publidata](https://www.publidata.io/fr/).

They operate the schedules of at least the following communities:

- GPSEO
- Orléans Métropole
- Tours métropole

A specific source is provided for GPSEO, Orléans Métropole and Tours Métropole.

The reason going for both the generic and specic approaches is to both
improve discoverability of the integration for inhabitants from the
three mentioned areas, and still leave the possibility to some more
adventurous users from other, covered by publidata places, to benefit
from it.

* fix remaining copy-pastingg traces

* Fix & improvements after review

- Drop inheritance in favor of EXTRA_INFO, thanks @5ila5
- Align icons on #2814
- Add more instances: Châteauroux, Saint Quentin en Yvelines, Saumur,
  Versailles

* fix variable name

* Update publidata_fr.md after previous changes

* reformatting + ./update_docu_links.py

---------

Co-authored-by: Vincent Desprez <[email protected]>
Co-authored-by: 5ila5 <[email protected]>
  • Loading branch information
3 people authored Oct 12, 2024
1 parent 6cd3f8d commit f87fe88
Show file tree
Hide file tree
Showing 8 changed files with 713 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,17 @@ If your service provider is not listed, feel free to open a [source request issu
<details>
<summary>France</summary>

- [Châteauroux Métropole](/doc/source/publidata_fr.md) / chateauroux-metropole.fr
- [Communauté de Communes de Montesquieu](/doc/source/cc-montesquieu_fr.md) / cc-montesquieu.fr
- [Grand Paris Seine et Oise](/doc/source/publidata_fr.md) / infos-dechets.gpseo.fr
- [Mairie de Mamirolle](/doc/source/mamirolle_info.md) / mamirolle.info
- [Orléans Métropole](/doc/source/publidata_fr.md) / triermondechet.orleans-metropole.fr
- [Publidata generic source](/doc/source/publidata_fr.md) / publidata.io/fr
- [Saint Quentin en Yvelines](/doc/source/publidata_fr.md) / saint-quentin-en-yvelines.fr
- [Saumur Val de Loire](/doc/source/publidata_fr.md) / saumurvaldeloire.fr
- [Sivom Rive Droite - Bassens](/doc/source/sivom_rivedroite_fr.md) / sivom-rivedroite.fr
- [Tours Métropole](/doc/source/publidata_fr.md) / tours-metropole.fr
- [Versailles Grand Parc](/doc/source/publidata_fr.md) / versaillesgrandparc.fr
</details>

<details>
Expand Down
62 changes: 62 additions & 0 deletions custom_components/waste_collection_schedule/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -3910,23 +3910,85 @@
}
],
"France": [
{
"title": "Ch\u00e2teauroux M\u00e9tropole",
"module": "publidata_fr",
"default_params": {
"instance_id": 897
},
"id": "publidata_fr"
},
{
"title": "Communaut\u00e9 de Communes de Montesquieu",
"module": "cc-montesquieu_fr",
"default_params": {},
"id": "cc-montesquieu_fr"
},
{
"title": "Grand Paris Seine et Oise",
"module": "publidata_fr",
"default_params": {
"instance_id": 1294
},
"id": "publidata_fr"
},
{
"title": "Mairie de Mamirolle",
"module": "mamirolle_info",
"default_params": {},
"id": "mamirolle_info"
},
{
"title": "Orl\u00e9ans M\u00e9tropole",
"module": "publidata_fr",
"default_params": {
"instance_id": 100
},
"id": "publidata_fr"
},
{
"title": "Publidata generic source",
"module": "publidata_fr",
"default_params": {},
"id": "publidata_fr"
},
{
"title": "Saint Quentin en Yvelines",
"module": "publidata_fr",
"default_params": {
"instance_id": 701
},
"id": "publidata_fr"
},
{
"title": "Saumur Val de Loire",
"module": "publidata_fr",
"default_params": {
"instance_id": 159
},
"id": "publidata_fr"
},
{
"title": "Sivom Rive Droite - Bassens",
"module": "sivom_rivedroite_fr",
"default_params": {},
"id": "sivom_rivedroite_fr"
},
{
"title": "Tours M\u00e9tropole",
"module": "publidata_fr",
"default_params": {
"instance_id": 65
},
"id": "publidata_fr"
},
{
"title": "Versailles Grand Parc",
"module": "publidata_fr",
"default_params": {
"instance_id": 251
},
"id": "publidata_fr"
}
],
"Generic": [
Expand Down
31 changes: 31 additions & 0 deletions custom_components/waste_collection_schedule/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2515,6 +2515,37 @@
},
"data_description": {}
},
"args_publidata_fr": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\nDer INSEE-Code Ihrer Gemeinde kann leicht über Google gefunden werden. Die instance_id kann durch einen Netzwerk-Inspektor vom offiziellen Widget ermittelt werden\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/publidata_fr.md",
"data": {
"calendar_title": "Kalender Titel",
"address": "Addresse",
"insee_code": "INSEE-Code",
"instance_id": "Instanz-ID"
},
"data_description": {
"calendar_title": "Ein lesbarerer oder benutzerfreundlicherer Name für den Müllkalender. Wenn nichts angegeben wird, wird der Name der Quelle verwendet.",
"address": "Ihre vollständige Adresse",
"insee_code": "Der 5-stellige INSEE-Code Ihrer Gemeinde",
"instance_id": "Eine Kennung Ihres Abfallsammeldienstes. Zum Beispiel ist die von GPSEO 1292 und kann durch Inspektion der Netzwerkaufrufe auf https://infos-dechets.gpseo.fr/4E79YtZv7M/list/?addressId=78005_0073_00002 gefunden werden"
}
},
"reconfigure_publidata_fr": {
"title": "Quelle Neu Konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\nDer INSEE-Code Ihrer Gemeinde kann leicht über Google gefunden werden. Die instance_id kann durch einen Netzwerk-Inspektor vom offiziellen Widget ermittelt werden\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/publidata_fr.md",
"data": {
"calendar_title": "Kalender Titel",
"address": "Addresse",
"insee_code": "INSEE-Code",
"instance_id": "Instanz-ID"
},
"data_description": {
"address": "Ihre vollständige Adresse",
"insee_code": "Der 5-stellige INSEE-Code Ihrer Gemeinde",
"instance_id": "Eine Kennung Ihres Abfallsammeldienstes. Zum Beispiel ist die von GPSEO 1292 und kann durch Inspektion der Netzwerkaufrufe auf https://infos-dechets.gpseo.fr/4E79YtZv7M/list/?addressId=78005_0073_00002 gefunden werden"
}
},
"args_cc-montesquieu_fr": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. Mehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/cc-montesquieu_fr.md",
Expand Down
31 changes: 31 additions & 0 deletions custom_components/waste_collection_schedule/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2515,6 +2515,37 @@
},
"data_description": {}
},
"args_publidata_fr": {
"title": "Configure Source",
"description": "Configure your service provider. \n\nThe INSEE code of your commune is easily found on google. instance_id can be found through a network inspecter from the official widget\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/publidata_fr.md.",
"data": {
"calendar_title": "Calendar Title",
"address": "Address",
"insee_code": "INSEE Code",
"instance_id": "Instance ID"
},
"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.",
"address": "Your full address",
"insee_code": "The 5-digit INSEE code of your commune",
"instance_id": "An identifier of your waste collection service. For example GPSEO's is 1292 and found by inspecting the network calls on https://infos-dechets.gpseo.fr/4E79YtZv7M/list/?addressId=78005_0073_00002"
}
},
"reconfigure_publidata_fr": {
"title": "Reconfigure Source",
"description": "Configure your service provider. \n\nThe INSEE code of your commune is easily found on google. instance_id can be found through a network inspecter from the official widget\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/publidata_fr.md.",
"data": {
"calendar_title": "Calendar Title",
"address": "Address",
"insee_code": "INSEE Code",
"instance_id": "Instance ID"
},
"data_description": {
"address": "Your full address",
"insee_code": "The 5-digit INSEE code of your commune",
"instance_id": "An identifier of your waste collection service. For example GPSEO's is 1292 and found by inspecting the network calls on https://infos-dechets.gpseo.fr/4E79YtZv7M/list/?addressId=78005_0073_00002"
}
},
"args_cc-montesquieu_fr": {
"title": "Configure Source",
"description": "Configure your service provider. More details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/cc-montesquieu_fr.md.",
Expand Down
31 changes: 31 additions & 0 deletions custom_components/waste_collection_schedule/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -2515,6 +2515,37 @@
},
"data_description": {}
},
"args_publidata_fr": {
"title": "Configurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\nIl codice INSEE del tuo comune si trova facilmente su Google. L'instance_id può essere trovato attraverso un ispettore di rete dal widget ufficiale\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/publidata_fr.md.",
"data": {
"calendar_title": "Nome Calendario",
"address": "Indirizzo",
"insee_code": "Codice INSEE",
"instance_id": "ID Istanza"
},
"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.",
"address": "Il tuo indirizzo completo",
"insee_code": "Il codice INSEE a 5 cifre del tuo comune",
"instance_id": "Un identificatore del tuo servizio di raccolta rifiuti. Ad esempio, quello di GPSEO è 1292 e si trova ispezionando le chiamate di rete su https://infos-dechets.gpseo.fr/4E79YtZv7M/list/?addressId=78005_0073_00002"
}
},
"reconfigure_publidata_fr": {
"title": "Riconfigurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\nIl codice INSEE del tuo comune si trova facilmente su Google. L'instance_id può essere trovato attraverso un ispettore di rete dal widget ufficiale\n\nPer maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/publidata_fr.md.",
"data": {
"calendar_title": "Nome Calendario",
"address": "Indirizzo",
"insee_code": "Codice INSEE",
"instance_id": "ID Istanza"
},
"data_description": {
"address": "Il tuo indirizzo completo",
"insee_code": "Il codice INSEE a 5 cifre del tuo comune",
"instance_id": "Un identificatore del tuo servizio di raccolta rifiuti. Ad esempio, quello di GPSEO è 1292 e si trova ispezionando le chiamate di rete su https://infos-dechets.gpseo.fr/4E79YtZv7M/list/?addressId=78005_0073_00002"
}
},
"args_cc-montesquieu_fr": {
"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/cc-montesquieu_fr.md.",
Expand Down
Loading

0 comments on commit f87fe88

Please sign in to comment.