Skip to content

Commit

Permalink
refactor+fix: Remove console.log statements and add/modify alert mess…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
Terdious committed Jan 17, 2024
1 parent e64b32b commit defd0e4
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 101 deletions.
38 changes: 18 additions & 20 deletions front/src/config/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,15 +519,26 @@
"discoverDeviceDescr": "Netatmo-Geräte automatisch scannen",
"unmanagedModelButton": "Nicht unterstütztes oder nicht verfügbares Modell",
"status": {
"notConfigured": "Der Netatmo-Dienst ist nicht konfiguriert",
"disconnect": "Gladys ist nicht mit Netatmo verbunden",
"notConnected": "Gladys konnte keine Verbindung zum Netatmo-Konto herstellen, bitte überprüfen Sie Ihre Anmeldeinformationen auf der ",
"setupPageLink": "Netatmo-Konfigurationsseite.",
"connecting": "Verbindung zu Ihrem Netatmo-Konto wird hergestellt...",
"connect": "Gladys ist mit Netatmo verbunden",
"disconnect": "Gladys ist nicht mit Netatmo verbunden",
"notConfigured": "Der Netatmo-Dienst ist nicht konfiguriert"
"connecting": "Konfiguration gespeichert. Verbindung zu Ihrem Netatmo-Konto wird hergestellt...",
"processingToken": "Verbindung zu Ihrem Netatmo-Konto... Zugriffstoken wird abgerufen.",
"getDevicesValues": "Datenwiederherstellung läuft...",
"dicoveringDevices": "Gerätewiederherstellung läuft...",
"connectionError": "Fehler bei der Verbindung, bitte überprüfen Sie Ihre Konfiguration.",
"errorConnecting": {
"other_error": "Fehler bei der Autorisierung. Sie können den Fehler in der Konsole Ihres Browsers mit einem Rechtsklick untersuchen. Wenn der Fehler weiterhin besteht, posten Sie bitte die Protokolle im Forum.",
"access_denied": "Autorisierung abgelehnt, bitte versuchen Sie es erneut und akzeptieren Sie den Zugriff auf Ihre Daten.",
"invalid_client": "Ungültige Kunden-ID. Bitte überprüfen Sie Ihre Netatmo-Kontoinformationen und dass das Konto nicht gesperrt oder deaktiviert ist <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">Meine App</a>.",
"get_access_token_fail": "Falsche Informationen eingegeben oder Konto deaktiviert. Bitte überprüfen Sie Ihre Netatmo-Kontoinformationen und dass das Konto nicht gesperrt oder deaktiviert ist <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">Meine App</a>."
}
},
"device": {
"title": "Netatmo-Geräte in Gladys",
"descriptionInformation": "Der Statusabruf erfolgt derzeit alle 2 Minuten (Einschränkung der Netatmo-API).",
"noDeviceFound": "Noch keine Netatmo-Geräte hinzugefügt.",
"sidLabel": "Netatmo-SID des Geräts",
"nameLabel": "Gerätename",
Expand All @@ -543,18 +554,17 @@
"noValueReceived": "Kein Wert empfangen.",
"firmwareRevisionLabel": "Firmware: ",
"connectedPlugLabel": "Mit der Brücke verbunden",
"roomNetatmoApiLabel": "Raum in der Netatmo-API",
"getDevicesValues": "Datenwiederherstellung läuft..."
"roomNetatmoApiLabel": "Raum in der Netatmo-API"
},
"discover": {
"title": "Ihre mit Gladys kompatiblen Netatmo-Geräte",
"description": "Ihre Netatmo-Geräte müssen zuerst zu Ihrem Netatmo-Konto hinzugefügt werden, bevor sie zu Gladys hinzugefügt werden können, das derzeit nur Thermostate unterstützt, die mit ihrem Plug verbunden sind. Die erste Entdeckung erfolgt automatisch. Drücken Sie 'Aktualisieren', wenn Sie die neuen Funktionen Ihrer Geräte abrufen möchten.",
"descriptionCompatibility": "Für alle Anfragen zur Hinzufügung von Geräten und/oder Funktionen, besuchen Sie bitte das <a href=\"https://en-community.gladysassistant.com/c/feature-requests\" target=\"_blank\" rel=\"noopener noreferrer\">Gladys Assistant Forum - Kategorie \"Funktionsanfragen\"</a>.",
"descriptionInformation": "Der Statusabruf erfolgt derzeit alle 2 Minuten (Einschränkung der Netatmo-API).",
"noDeviceFound": "Keine Netatmo-Geräte gefunden. Haben Sie alle Schritte der Dokumentation befolgt, um Ihre Geräte in der Netatmo-API zu registrieren?",
"alreadyCreatedButton": "Bereits erstellt",
"scan": "Scannen",
"refresh": "Aktualisieren",
"dicoveringDevices": "Gerätewiederherstellung läuft..."
"refresh": "Aktualisieren"
},
"setup": {
"title": "Netatmo-Konfiguration",
Expand All @@ -571,19 +581,7 @@
"descriptionGetKeys": "Dann haben Sie Zugriff auf zwei Schlüssel: \"Kunden-ID\" und \"Kundengeheimnis\", die Sie unten kopieren können.",
"descriptionScopeInformation": "Wenn Sie Gladys mit Ihrer dedizierten Netatmo-App verbinden, erteilen Sie ihr die Berechtigung, auf Ihre Daten zum Lesen und Schreiben zuzugreifen (genannt Scopes \"read\" und \"write\"). Sie müssen nichts konfigurieren, diese Scopes sind automatisch integriert und werden Ihnen bei der Verbindungsanfrage angezeigt (siehe Dokumentation bei Bedarf). Da Gladys lokal installiert ist, werden keine dieser Daten preisgegeben.",
"titleAdditionalInformation": "Weitere Informationen über die Funktionsweise der \"Energy\"-API:",
"descriptionAdditionalInformation": "Temperaturbefehle werden auf Raumniveau ausgeführt. Daher sind beide Informationen als Funktionen für mehr Kontrolle verfügbar. Wenn Sie andere Temperatursensoren im gleichen Raum wie Ihr Thermostat haben, wird die Durchschnittstemperatur dieses Raums berücksichtigt, um den Heizungssteuerschalter auszulösen.",
"errorConnecting": {
"other_error": "Fehler bei der Autorisierung. Sie können den Fehler in der Konsole Ihres Browsers mit einem Rechtsklick untersuchen. Wenn der Fehler weiterhin besteht, posten Sie bitte die Protokolle im Forum.",
"access_denied": "Autorisierung abgelehnt, bitte versuchen Sie es erneut und akzeptieren Sie den Zugriff auf Ihre Daten.",
"invalid_client": "Ungültige Kunden-ID. Bitte überprüfen Sie Ihre Netatmo-Kontoinformationen und dass das Konto nicht gesperrt oder deaktiviert ist <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">Meine App</a>.",
"get_access_token_fail": "Falsche Informationen eingegeben oder Konto deaktiviert. Bitte überprüfen Sie Ihre Netatmo-Kontoinformationen und dass das Konto nicht gesperrt oder deaktiviert ist <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">Meine App</a>."
},
"notConfigured": "Der Netatmo-Dienst ist nicht konfiguriert",
"connecting": "Konfiguration gespeichert. Verbindung zu Ihrem Netatmo-Konto wird hergestellt...",
"processingToken": "Verbindung zu Ihrem Netatmo-Konto... Zugriffstoken wird abgerufen.",
"connect": "Gladys ist mit Netatmo verbunden",
"disconnect": "Gladys ist nicht mit Netatmo verbunden",
"connectionError": "Fehler bei der Verbindung, bitte überprüfen Sie Ihre Konfiguration."
"descriptionAdditionalInformation": "Temperaturbefehle werden auf Raumniveau ausgeführt. Daher sind beide Informationen als Funktionen für mehr Kontrolle verfügbar. Wenn Sie andere Temperatursensoren im gleichen Raum wie Ihr Thermostat haben, wird die Durchschnittstemperatur dieses Raums berücksichtigt, um den Heizungssteuerschalter auszulösen."
},
"error": {
"defaultError": "Ein Fehler ist bei der Registrierung des Geräts aufgetreten.",
Expand Down
38 changes: 18 additions & 20 deletions front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,15 +519,26 @@
"discoverDeviceDescr": "Automatically scan Netatmo devices",
"unmanagedModelButton": "Model not supported or unavailable",
"status": {
"notConfigured": "The Netatmo service is not configured",
"disconnect": "Gladys is not connected to Netatmo",
"notConnected": "Gladys failed to connect to the Netatmo account, please verify your credentials on the ",
"setupPageLink": "Netatmo Setup Page.",
"connecting": "Connecting to your Netatmo account...",
"connect": "Gladys is connected to Netatmo",
"disconnect": "Gladys is not connected to Netatmo",
"notConfigured": "The Netatmo service is not configured"
"connecting": "Configuration saved. Connecting to your Netatmo account...",
"processingToken": "Connecting to your Netatmo account... Retrieving access token.",
"getDevicesValues": "Data recovery in progress...",
"dicoveringDevices": "Device recovery in progress...",
"connectionError": "Error during connection, please check your configuration.",
"errorConnecting": {
"other_error": "Error during authorization. You can inspect the error in your browser's console with a right click. If the error persists, please post the logs on the forum.",
"access_denied": "Authorization declined, please try again and accept the request for access to your data.",
"invalid_client": "Invalid client ID. Please verify your Netatmo account information and that the account is not banned or disabled on <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">My App</a>.",
"get_access_token_fail": "Incorrect information entered or account disabled. Please check your Netatmo account information and that the account is not banned or disabled <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">My App</a>."
}
},
"device": {
"title": "Netatmo Devices in Gladys",
"descriptionInformation": "State retrieval is currently done every 2 minutes (Netatmo API limitation).",
"noDeviceFound": "No Netatmo devices have been added yet.",
"sidLabel": "Netatmo device SID",
"nameLabel": "Device name",
Expand All @@ -543,18 +554,17 @@
"noValueReceived": "No value received.",
"firmwareRevisionLabel": "Firmware: ",
"connectedPlugLabel": "Connected to bridge",
"roomNetatmoApiLabel": "Room in Netatmo API",
"getDevicesValues": "Data recovery in progress..."
"roomNetatmoApiLabel": "Room in Netatmo API"
},
"discover": {
"title": "Your Netatmo Devices Compatible with Gladys",
"description": "Your Netatmo devices must be added to your Netatmo account before being added to Gladys, which currently only supports Thermostats associated with their Plug. The first discovery is done automatically. Press 'Refresh' if you want to retrieve new features of your devices.",
"descriptionCompatibility": "For any requests to add devices and/or features, please visit the <a href=\"https://en-community.gladysassistant.com/c/feature-requests\" target=\"_blank\" rel=\"noopener noreferrer\">Gladys Assistant Forum - Feature Requests Category</a>.",
"descriptionInformation": "State retrieval is currently done every 2 minutes (Netatmo API limitation).",
"noDeviceFound": "No Netatmo devices were found. If you own a Netatmo Thermostat, have you completed all the steps in the documentation to register your devices on the Netatmo API?",
"alreadyCreatedButton": "Already Created",
"scan": "Scan",
"refresh": "Refresh",
"dicoveringDevices": "Device recovery in progress..."
"refresh": "Refresh"
},
"setup": {
"title": "Netatmo Setup",
Expand All @@ -571,19 +581,7 @@
"descriptionGetKeys": "You will then have access to two keys: \"client ID\" and \"client secret\" to copy below.",
"descriptionScopeInformation": "When you connect Gladys to your dedicated Netatmo App, you grant it permission to access your data in read and write modes (referred to as \"read\" and \"write\" scopes). You don't have to configure anything, these scopes are automatically integrated and will be presented to you during the connection request (see documentation if needed). Of course, since Gladys is installed locally, none of these data is exposed.",
"titleAdditionalInformation": "Additional Information on the Operation of the \"Energy\" API:",
"descriptionAdditionalInformation": "Temperature commands are performed at the room level. Therefore, both pieces of information are available as features for more control. If you have other temperature sensors in the same room as your Thermostat, it's the average temperature of that room that will be considered to trigger the heating control switch.",
"errorConnecting": {
"other_error": "Error during authorization. You can inspect the error in your browser's console with a right click. If the error persists, please post the logs on the forum.",
"access_denied": "Authorization declined, please try again and accept the request for access to your data.",
"invalid_client": "Invalid client ID. Please verify your Netatmo account information and that the account is not banned or disabled on <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">My App</a>.",
"get_access_token_fail": "Incorrect information entered or account disabled. Please check your Netatmo account information and that the account is not banned or disabled <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">My App</a>."
},
"notConfigured": "The Netatmo service is not configured",
"connecting": "Configuration saved. Connecting to your Netatmo account...",
"processingToken": "Connecting to your Netatmo account... Retrieving access token.",
"connect": "Gladys is connected to Netatmo",
"disconnect": "Gladys is not connected to Netatmo",
"connectionError": "Error during connection, please check your configuration."
"descriptionAdditionalInformation": "Temperature commands are performed at the room level. Therefore, both pieces of information are available as features for more control. If you have other temperature sensors in the same room as your Thermostat, it's the average temperature of that room that will be considered to trigger the heating control switch."
},
"error": {
"defaultError": "An error occurred while registering the device.",
Expand Down
Loading

0 comments on commit defd0e4

Please sign in to comment.