Skip to content

Commit

Permalink
v2024.5.2 refactoring language files to appease hassfest
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenterheerdt committed May 23, 2024
1 parent b588238 commit 20d99fe
Show file tree
Hide file tree
Showing 21 changed files with 567 additions and 584 deletions.
4 changes: 2 additions & 2 deletions custom_components/smart_irrigation/_TODO.list
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ General:
source validation same as grill buddy
2. UNIT_DEGREES_X --> UnitOfTemperature.CELSIUS
also do this for Smart IRRIGATION!
3. Refactor language file (move everything in one file (frontend)) to appease hassfest

4. [CONFIG_SCHEMA] Integrations which implement 'async_setup' or 'setup' must define either 'CONFIG_SCHEMA', 'PLATFORM_SCHEMA' or 'PLATFORM_SCHEMA_BASE'. If the integration has no configuration parameters, can only be set up from platforms or can only be set up from config entries, one of the helpers cv.empty_config_schema, cv.platform_only_config_schema or cv.config_entry_only_config_schema can be used.
5. Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Wishlist:
- calculation algorithm: PyEto / PenMon / ET_calc. See: https://github.com/jeroenterheerdt/HAsmartirrigation/issues/127
- scheduler? or just use something like https://github.com/rgc99/irrigation_unlimited?
5 changes: 2 additions & 3 deletions custom_components/smart_irrigation/const.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
"""Store constants."""


VERSION = "v2024.5.1"
VERSION = "v2024.5.2"
NAME = "Smart Irrigation"
MANUFACTURER = "@jeroenterheerdt"

DOMAIN = "smart_irrigation"
CUSTOM_COMPONENTS = "custom_components"

LANGUAGE_FILES_DIR = "translations"
LANGUAGE_FILES_DIR = "frontend/localize/languages"
SUPPORTED_LANGUAGES = ["de", "en", "es", "fr", "it", "nl", "no", "sk"]

START_EVENT_FIRED_TODAY = "starteventfiredtoday"
Expand Down
384 changes: 192 additions & 192 deletions custom_components/smart_irrigation/frontend/dist/smart-irrigation.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,51 @@
"no": "Nein",
"select": "Wähle",
"yes": "Ja"
},
"attributes": {
"size": "Größe",
"throughput": "Durchfluss",
"state": "Zustand"
}
},
"defaults": {
"default-zone": "Standard Zone",
"default-mapping": "Standard Sensorgruppe"
},
"module": {
"calculation": {
"explanation": {
"module-returned-evapotranspiration-deficiency": "Beachte: Diese Beschreibung nutzt '.' als Dezimalzeichen und zeigt gerundete Werte. Das Modul berechnete einen Evapotranspirationsmangel von",
"bucket-was": "Der alte Vorrat war",
"new-bucket-values-is": "Der neue Vorrat ist",
"old-bucket-variable": "alter_Vorrat",
"delta": "Veränderung",
"bucket-less-than-zero-irrigation-necessary": "Wenn der Vorrat < 0 ist, ist eine Bewässerung nötig.",
"steps-taken-to-calculate-duration": "Für eine exakte Berechnung der Dauer, wurden folgende Schritte durchgeführt",
"precipitation-rate-defined-as": "Der Niederschlag ist",
"duration-is-calculated-as": "Die Dauer ist",
"bucket": "Vorrat",
"precipitation-rate-variable": "Niederschlag",
"multiplier-is-applied": "Der Multiplikator wird angewendet. Der Multiplikator ist",
"duration-after-multiplier-is": "also ist die Dauer",
"maximum-duration-is-applied": "Die maximale Dauer wird angewendet. Diese ist",
"duration-after-maximum-duration-is": "also ist die Dauer",
"lead-time-is-applied": "Zuletzt wird die Vorlaufzeit angewendet. Die Vorlaufzeit ist",
"duration-after-lead-time-is": "also ist die Dauer",
"bucket-larger-than-or-equal-to-zero-no-irrigation-necessary": "Wenn der Vorrat >= 0 ist, ist keine Bewässerung nötig und die Dauer ist gleich",
"maximum-bucket-is": "Der maximale Vorrat ist"
}
}
},
"calcmodules": {
"pyeto": {
"description": "Die Berechnung der Verunstungsrate basiert auf der FAO56-Formel aus der PyETO-Bibliothek"
},
"static": {
"description": "Modul mit einer statisch konfigurierbaren Verdunstungsrate."
},
"passthrough": {
"description": "Pass Through übernimmt den Evapotranspirationssensor und gibt seinen Wert zurück. Auf diese Weise werden alle Berechnungen der Verdunstung umgangen, außer der Anwendung von Aggregaten wie Summe, Durchschnitt etc)."
}
},
"panels": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,55 @@
"no": "No",
"select": "Select",
"yes": "Yes"
},
"attributes": {
"size": "size",
"throughput": "throughput",
"state": "state",
"bucket": "bucket",
"last_updated": "last updated",
"last_calculated": "last calculated",
"number_of_data_points": "number of data points"
}
},
"defaults": {
"default-zone": "Default zone",
"default-mapping": "Default sensor group"
},
"module": {
"calculation": {
"explanation": {
"module-returned-evapotranspiration-deficiency": "Note: this explanation uses '.' as decimal separator, shows rounded and metric values. Module returned Evapotranspiration deficiency of",
"bucket-was": "Bucket was",
"new-bucket-values-is": "New bucket value is",
"old-bucket-variable": "old_bucket",
"delta": "delta",
"bucket-less-than-zero-irrigation-necessary": "Since bucket < 0, irrigation is necessary",
"steps-taken-to-calculate-duration": "To calculate the exact duration, the following steps were taken",
"precipitation-rate-defined-as": "The precipitation rate is defined as",
"duration-is-calculated-as": "The duration is calculated as",
"bucket": "bucket",
"precipitation-rate-variable": "precipitation_rate",
"multiplier-is-applied": "Now, the multiplier is applied. The multiplier is",
"duration-after-multiplier-is": "hence the duration is",
"maximum-duration-is-applied": "Then, the maximum duration is applied. The maximum duration is",
"duration-after-maximum-duration-is": "hence the duration is",
"lead-time-is-applied": "Finally, the lead time is applied. The lead time is",
"duration-after-lead-time-is": "hence the final duration is",
"bucket-larger-than-or-equal-to-zero-no-irrigation-necessary": "Since bucket >= 0, no irrigation is necessary and duration is set to",
"maximum-bucket-is": "maximum bucket size is"
}
}
},
"calcmodules": {
"pyeto": {
"description": "Calculate duration based on the FAO56 calculation from the PyETO library"
},
"static": {
"description": "'Dummy' module with a static configurable delta"
},
"passthrough": {
"description": "Passthrough module that returns the value of an Evapotranspiration sensor as delta"
}
},
"panels": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,51 @@
"no": "No",
"select": "Seleccionar",
"yes": ""
},
"attributes": {
"size": "Tamaño",
"throughput": "Rendimiento",
"state": "Estado"
}
},
"defaults": {
"default-zone": "Zona de riego predeterminada",
"default-mapping": "Grupo de sensores predeterminado"
},
"module": {
"calculation": {
"explanation": {
"module-returned-evapotranspiration-deficiency": "Nota: esta explicación utiliza '.' como separador decimal y muestra valores redondeados. El módulo devuelve una deficiencia de evapotranspiración de",
"bucket-was": "El cubo era",
"new-bucket-values-is": "El nuevo valor del cubo es",
"old-bucket-variable": "old_bucket",
"delta": "delta",
"bucket-less-than-zero-irrigation-necessary": "Dado que cubo < 0, el riego es necesario",
"steps-taken-to-calculate-duration": "Para calcular la duración exacta, se siguieron los siguientes pasos",
"precipitation-rate-defined-as": "La tasa de precipitación se define como",
"duration-is-calculated-as": "La duración se calcula como",
"bucket": "cubo",
"precipitation-rate-variable": "precipitation_rate",
"multiplier-is-applied": "A continuación, se aplica el multiplicador. El multiplicador es",
"duration-after-multiplier-is": "por lo que la duración es",
"maximum-duration-is-applied": "A continuación, se aplica la duración máxima. La duración máxima es",
"duration-after-maximum-duration-is": "por lo que la duración es",
"lead-time-is-applied": "Por último, se aplica el plazo de entrega. El plazo de entrega es",
"duration-after-lead-time-is": "por lo que la duración final es",
"bucket-larger-than-or-equal-to-zero-no-irrigation-necessary": "Como cubo >= 0, no es necesario regar y la duración se fija en",
"maximum-bucket-is": "El tamaño máximo de cubo es"
}
}
},
"calcmodules": {
"pyeto": {
"description": "Calcular la duración a partir del cálculo FAO56 de la biblioteca PyETO"
},
"static": {
"description": "Módulo 'de prueba' con un delta estático configurable"
},
"passthrough": {
"description": "Módulo de paso que devuelve el valor de un sensor de evapotranspiración como delta"
}
},
"panels": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,51 @@
"no": "Non",
"select": "Sélectionner",
"yes": "Oui"
},
"attributes": {
"size": "taille",
"throughput": "débit",
"state": "état"
}
},
"defaults": {
"default-zone": "Zone par défaut",
"default-mapping": "Groupe de capteurs par défaut"
},
"module": {
"calculation": {
"explanation": {
"module-returned-evapotranspiration-deficiency": "NB: cette explication utilise '.' comme séparateur décimal, et affiche des valeurs arrondies. Le module a donné un manque d'Évapotranspiration de",
"bucket-was": "Le seau (bucket) était de",
"new-bucket-values-is": "La nouvelle valeur du seau (bucket) est",
"old-bucket-variable": "ancien_bucket",
"delta": "delta",
"bucket-less-than-zero-irrigation-necessary": "Puisque le seau (bucket) est < 0, l'irrigation est nécessaire",
"steps-taken-to-calculate-duration": "Pour calculer la durée d'irrigation, les étapes suivantes ont été réalisées",
"precipitation-rate-defined-as": "Le taux de précipitation est défini comme",
"duration-is-calculated-as": "La durée d'irrigation est calculée avec",
"bucket": "seau (bucket)",
"precipitation-rate-variable": "taux_precipitation",
"multiplier-is-applied": "Le multiplicateur est appliqué. Le multiplicateur est",
"duration-after-multiplier-is": "donc la durée d'irrigation est de",
"maximum-duration-is-applied": "Ensuite la durée maximale est appliquée. La durée maximale est de",
"duration-after-maximum-duration-is": "donc la durée d'irrigation est de",
"lead-time-is-applied": "Enfin, le délai est appliqué. Le délai est de",
"duration-after-lead-time-is": "et donc la durée finale est de",
"bucket-larger-than-or-equal-to-zero-no-irrigation-necessary": "Puisque le seau (bucket) est >= 0, l'irrigation n'est pas nécessaire, et la durée est réglée à",
"maximum-bucket-is": "la taille du seau (bucket) maximale est"
}
}
},
"calcmodules": {
"pyeto": {
"description": "Le calcul de durée est basée sur le calcul FAO56 de la bibliothèque PyETO"
},
"static": {
"description": "Module 'Dummy' avec un delta statique configurable"
},
"passthrough": {
"description": "Module passerelle qui renvoie la valeur d'un capteur d'Évapotranspiration comme delta"
}
},
"panels": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,55 @@
"no": "No",
"select": "Seleziona",
"yes": "Si"
},
"attributes": {
"size": "size",
"throughput": "throughput",
"state": "state",
"bucket": "secchio",
"last_updated": "ultimo aggiornamento",
"last_calculated": "ultimo calcolo",
"number_of_data_points": "numero di punti dati"
}
},
"defaults": {
"default-zone": "Zona predefinita",
"default-mapping": "Mappatura predefinita"
},
"module": {
"calculation": {
"explanation": {
"module-returned-evapotranspiration-deficiency": "Il modulo ha restituito un deficit di evapotraspirazione del",
"bucket-was": "Il secchio era",
"new-bucket-values-is": "Il nuovo valore del secchio è",
"old-bucket-variable": "old_bucket",
"delta": "delta",
"bucket-less-than-zero-irrigation-necessary": "Poiché secchio < 0, è necessaria l'irrigazione",
"steps-taken-to-calculate-duration": "Per calcolare la durata esatta, sono stati eseguiti i seguenti passaggi",
"precipitation-rate-defined-as": "Il tasso di precipitazione è definito come",
"duration-is-calculated-as": "La durata viene calcolata come",
"bucket": "bucket",
"precipitation-rate-variable": "precipitation_rate",
"multiplier-is-applied": "Ora viene applicato il moltiplicatore. Il moltiplicatore è",
"duration-after-multiplier-is": "quindi la durata è",
"maximum-duration-is-applied": "Quindi, viene applicata la durata massima. La durata massima è",
"duration-after-maximum-duration-is": "quindi la durata è",
"lead-time-is-applied": "Infine, viene applicato il lead time. Il tempo di consegna è",
"duration-after-lead-time-is": "quindi la durata finale è",
"bucket-larger-than-or-equal-to-zero-no-irrigation-necessary": "Poiché secchio >= 0, non è necessaria alcuna irrigazione e la durata è impostata su",
"maximum-bucket-is": "la dimensione massima del secchio è"
}
}
},
"calcmodules": {
"pyeto": {
"description": "Calcola la durata in base al calcolo FAO56 dalla libreria PyETO"
},
"static": {
"description": "Modulo 'fittizio' con un delta configurabile statico"
},
"passthrough": {
"description": "Modulo passthrough che restituisce il valore di un sensore di Evapotraspirazione sotto forma di delta"
}
},
"panels": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,51 @@
"no": "Nee",
"select": "Kies",
"yes": "Ja"
},
"attributes": {
"size": "afmeting",
"throughput": "doorvoer",
"state": "status"
}
},
"defaults": {
"default-zone": "Standaard zone",
"default-mapping": "Standaard sensorgroep"
},
"module": {
"calculation": {
"explanation": {
"module-returned-evapotranspiration-deficiency": "NB: in deze uitleg wordt de '.' as decimaalscheidingsteken gebruikt, worden afgeronde en metrische getallen getoond. Module berekende ET waarde van",
"bucket-was": "Voorraad was",
"new-bucket-values-is": "Nieuwe voorraad is",
"old-bucket-variable": "oude_voorraad",
"delta": "verandering",
"bucket-less-than-zero-irrigation-necessary": "Omdat de voorraad < 0 is, is irrigatie nodig",
"steps-taken-to-calculate-duration": "On de exacte duur te berekenen werd het volgende gedaan",
"precipitation-rate-defined-as": "De neerslag is",
"duration-is-calculated-as": "De duur is",
"bucket": "voorraad",
"precipitation-rate-variable": "neerslag",
"multiplier-is-applied": "De vermenigvuldiger wordt toegepast. Deze is",
"duration-after-multiplier-is": "dus de duur is",
"maximum-duration-is-applied": "De maximum duur wordt toegepast. Deze is",
"duration-after-maximum-duration-is": "dus de duur is",
"lead-time-is-applied": "As laatste wordt de aanlooptijd toegepast. Deze is",
"duration-after-lead-time-is": "dus de uiteindelijke duur is",
"bucket-larger-than-or-equal-to-zero-no-irrigation-necessary": "Omdat de voorraad >= 0 is er geen irrigatie nodig en is de duur gelijk aan",
"maximum-bucket-is": "maximale voorraad grootte is"
}
}
},
"calcmodules": {
"pyeto": {
"description": "Bereken duur op basis van de FAU56 formule en de PyETO library"
},
"static": {
"description": "Module met instelbare verandering"
},
"passthrough": {
"description": "Geeft waarde van ET sensor as verandering terug"
}
},
"panels": {
Expand Down
Loading

0 comments on commit 20d99fe

Please sign in to comment.