From c130bb17fadd742cdaaa1195650fb76150a47c2f Mon Sep 17 00:00:00 2001
From: Jan Wolf
Date: Sun, 24 Sep 2023 09:39:42 +0200
Subject: [PATCH] chore: optimize image size
---
smartblueberry/Dockerfile | 3 +-
.../app/irrigation/irrigation.component.html | 7 +--
.../frontend/src/locale/messages.de.xlf | 48 +++++++++----------
.../frontend/src/locale/messages.xlf | 47 +++++++++---------
4 files changed, 53 insertions(+), 52 deletions(-)
diff --git a/smartblueberry/Dockerfile b/smartblueberry/Dockerfile
index a777efa..91e55ad 100644
--- a/smartblueberry/Dockerfile
+++ b/smartblueberry/Dockerfile
@@ -9,13 +9,14 @@ WORKDIR /home
COPY package*.json run.sh /home/
RUN chmod +x run.sh
-RUN npm i
+RUN npm i --only=production
CMD [ "./run.sh" ]
from base as builder
COPY --from=base /home /home
COPY . .
+RUN npm i
RUN npm run frontend:build && npm run backend:build
FROM base AS runner
diff --git a/smartblueberry/frontend/src/app/irrigation/irrigation.component.html b/smartblueberry/frontend/src/app/irrigation/irrigation.component.html
index 4ce3340..f4b636e 100644
--- a/smartblueberry/frontend/src/app/irrigation/irrigation.component.html
+++ b/smartblueberry/frontend/src/app/irrigation/irrigation.component.html
@@ -26,9 +26,10 @@
Irrigation Valve Items
In order to let Smart Blueberry handle all irrigation valves for you, name
your valve items like
- <any name that contains "valve"> . Afterwards, you can configure your valve entity in respect to your
- irrigation conditions.
+ <any name that contains "valve">
+
+ and configure your valve entity in respect to your irrigation conditions
+ here.
Adjust irrigation variables
diff --git a/smartblueberry/frontend/src/locale/messages.de.xlf b/smartblueberry/frontend/src/locale/messages.de.xlf
index 49f5950..d3da1d1 100644
--- a/smartblueberry/frontend/src/locale/messages.de.xlf
+++ b/smartblueberry/frontend/src/locale/messages.de.xlf
@@ -115,7 +115,7 @@
frontend/src/app/irrigation/irrigation.component.html
- 194,196
+ 195,197
@@ -127,7 +127,7 @@
frontend/src/app/irrigation/irrigation.component.html
- 203,205
+ 204,206
@@ -214,12 +214,12 @@
22
-
-
- Um Smart Blueberry die Steuerung aller Bewässerungsventile zu ermöglichen, sollten Sie Ihre Ventil-Elemente wie folgt benennen: <beliebiger Name, der "valve" enthält>
+
+
+ Um Smart Blueberry die Steuerung aller Bewässerungsventile zu ermöglichen, sollten Sie Ihre Ventil-Elemente wie folgt benennen: <beliebiger Name, der "valve" enthält> .Anschließend können Sie Ihre Ventil-Entität gemäß der Bewässerungsbedingungen konfigurieren. frontend/src/app/irrigation/irrigation.component.html
- 25,32
+ 25,33
@@ -227,7 +227,7 @@
Bewässerungsvariablen anpassenfrontend/src/app/irrigation/irrigation.component.html
- 34
+ 35
@@ -235,7 +235,7 @@
Um eine optimale Bewässerung zu erreichen, stelle die folgenden Werte nach deinen Wünschen ein. frontend/src/app/irrigation/irrigation.component.html
- 35,38
+ 36,39
@@ -243,7 +243,7 @@
Bewässerungspegel pro Minute (mm / in): Definiert, wie viel Wasser durch das Ventil auf Ihre Pflanzen bewässert wird (1mm entspricht 1l/m², 1in entspricht 0,6234gal/ft²) frontend/src/app/irrigation/irrigation.component.html
- 41,45
+ 42,46
@@ -251,7 +251,7 @@
Beispiel 1: Sie haben eine Fläche von 10m² und Ihr Ventil gibt 10l pro Minute ab. Folglich haben Sie einen Bewässerungspegel von 1mm pro Minute (10l / 10m² = 1l/m² ≙ 1mm)frontend/src/app/irrigation/irrigation.component.html
- 48,52
+ 49,53
@@ -259,7 +259,7 @@
Beispiel 2: Sie haben eine Fläche von 10ft² und Ihr Ventil gibt 0.6234gal pro Minute ab. Folglich haben Sie einen Bewässerungspegel von 0,1in pro Minute (0,6234gal / 10ft² = 0,06234gal/ft² ≙ 0,1in)frontend/src/app/irrigation/irrigation.component.html
- 55,61
+ 56,62
@@ -267,7 +267,7 @@
Verdunstungsfaktor: Erhöht oder verringert die Verdunstung pro Tag, die auf dem Hargreaves-Samani-Modell basiert. Erhöhe den Wert auf über 1, um die Verdunstung zu erhöhen und auf unter 1, um die Verdunstung zu verringern. frontend/src/app/irrigation/irrigation.component.html
- 65,69
+ 66,70
@@ -275,7 +275,7 @@
Mindesttemperatur: Überspringt alle Bewässerungsauslösungen, wenn die Temperatur in den kommenden oder bisherigen sieben Tagen unter die Mindesttemperatur gefallen ist. frontend/src/app/irrigation/irrigation.component.html
- 72,75
+ 73,76
@@ -283,7 +283,7 @@
Eimergröße (Tage): Definiert den Bereich der Tage, an denen Smart Blueberry die Niederschlagsrate überwacht und entscheidet, ob eine Bewässerung ausgelöst werden soll. frontend/src/app/irrigation/irrigation.component.html
- 78,81
+ 79,82
@@ -291,7 +291,7 @@
Erhöhe die Eimergröße bei kommenden Regenfällen (Tage): Maximale Verzögerung der Bewässerung an Tagen mit bevorstehendem Regen, obwohl die Niederschlagsmenge nicht eingehalten werden kann. frontend/src/app/irrigation/irrigation.component.html
- 84,87
+ 85,88
@@ -299,7 +299,7 @@
Rechenbeispiel:frontend/src/app/irrigation/irrigation.component.html
- 101
+ 102
@@ -307,7 +307,7 @@
Basierend auf der Annahme von Bedingungen ohne Regen und einer Verdunstung von 1mm / 1in pro Tag, benötigen deine Pflanzen mm / in Wasser am Tag. Das Ventil bewässert pro Minute. Somit wird das Ventil für bewässern, wenn seit kein Regen gefallen ist und es auch in kein Regen gibt. frontend/src/app/irrigation/irrigation.component.html
- 102,128
+ 103,129
@@ -315,7 +315,7 @@
Heute ist eine Bewässerung geplant. frontend/src/app/irrigation/irrigation.component.html
- 138,140
+ 139,141
@@ -323,7 +323,7 @@
Heute ist keine Bewässerung geplant.frontend/src/app/irrigation/irrigation.component.html
- 142
+ 143
@@ -331,7 +331,7 @@
Speichernfrontend/src/app/irrigation/irrigation.component.html
- 151
+ 152
@@ -339,7 +339,7 @@
Zusätzliche Bewässerungsauslöserfrontend/src/app/irrigation/irrigation.component.html
- 162
+ 163
@@ -347,7 +347,7 @@
Sie können das Ereignis _check_irrigation in Ihren Home Assistant-Automatisierungen auslösen, um die Bewässerungsüberprüfung automatisch zu starten. frontend/src/app/irrigation/irrigation.component.html
- 165,169
+ 166,170
@@ -355,7 +355,7 @@
Zusätzlich wird der Status eines jeden Ventils mit `<beliebiger Name, der "valve" enthält>`, der auf `off` geändert wird, eine Bewässerungsüberprüfung auslösen. frontend/src/app/irrigation/irrigation.component.html
- 170,176
+ 171,177
@@ -363,7 +363,7 @@
Optional können Sie die Bewässerungsüberprüfung bei Updates von <beliebiger Name> Entitäten aktivieren. frontend/src/app/irrigation/irrigation.component.html
- 177,183
+ 178,184
diff --git a/smartblueberry/frontend/src/locale/messages.xlf b/smartblueberry/frontend/src/locale/messages.xlf
index 6e3ca77..29da66f 100644
--- a/smartblueberry/frontend/src/locale/messages.xlf
+++ b/smartblueberry/frontend/src/locale/messages.xlf
@@ -103,7 +103,7 @@
frontend/src/app/irrigation/irrigation.component.html
- 194,196
+ 195,197
@@ -114,7 +114,7 @@
frontend/src/app/irrigation/irrigation.component.html
- 203,205
+ 204,206
@@ -191,40 +191,39 @@
22
-
-
+
+
frontend/src/app/irrigation/irrigation.component.html
- 25,32
+ 25,33frontend/src/app/irrigation/irrigation.component.html
- 34
+ 35frontend/src/app/irrigation/irrigation.component.html
- 35,38
+ 36,39frontend/src/app/irrigation/irrigation.component.html
- 41,45
+ 42,46frontend/src/app/irrigation/irrigation.component.html
- 48,52
+ 49,53
@@ -239,42 +238,42 @@
>"/>). frontend/src/app/irrigation/irrigation.component.html
- 55,61
+ 56,62frontend/src/app/irrigation/irrigation.component.html
- 65,69
+ 66,70frontend/src/app/irrigation/irrigation.component.html
- 72,75
+ 73,76frontend/src/app/irrigation/irrigation.component.html
- 78,81
+ 79,82frontend/src/app/irrigation/irrigation.component.html
- 84,87
+ 85,88frontend/src/app/irrigation/irrigation.component.html
- 101
+ 102
@@ -301,56 +300,56 @@
>"/>.
frontend/src/app/irrigation/irrigation.component.html
- 102,128
+ 103,129frontend/src/app/irrigation/irrigation.component.html
- 138,140
+ 139,141frontend/src/app/irrigation/irrigation.component.html
- 142
+ 143frontend/src/app/irrigation/irrigation.component.html
- 151
+ 152frontend/src/app/irrigation/irrigation.component.html
- 162
+ 163frontend/src/app/irrigation/irrigation.component.html
- 165,169
+ 166,170frontend/src/app/irrigation/irrigation.component.html
- 170,176
+ 171,177frontend/src/app/irrigation/irrigation.component.html
- 177,183
+ 178,184