iobroker.sprinklecontrol 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/admin/i18n/de/translations.json +5 -0
- package/admin/i18n/en/translations.json +5 -0
- package/admin/i18n/es/translations.json +5 -0
- package/admin/i18n/fr/translations.json +5 -0
- package/admin/i18n/it/translations.json +5 -0
- package/admin/i18n/nl/translations.json +5 -0
- package/admin/i18n/pl/translations.json +5 -0
- package/admin/i18n/pt/translations.json +5 -0
- package/admin/i18n/ru/translations.json +5 -0
- package/admin/i18n/uk/translations.json +5 -0
- package/admin/i18n/zh-cn/translations.json +5 -0
- package/admin/index_m.html +26 -0
- package/admin/words.js +5 -0
- package/io-package.json +17 -1
- package/lib/evaporation.js +9 -10
- package/lib/myConfig.js +4 -6
- package/lib/tools.js +231 -273
- package/lib/valveControl.js +87 -28
- package/main.js +59 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,9 @@ Wetterabhängige automatische Steuerung der Gartenbewässerung
|
|
|
33
33
|
Placeholder for the next version (at the beginning of the line):
|
|
34
34
|
### **WORK IN PROGRESS**
|
|
35
35
|
-->
|
|
36
|
+
### 1.0.2 (2026-04-19)
|
|
37
|
+
* (Dirk-Peter-md) Added times for the irrigation ban
|
|
38
|
+
|
|
36
39
|
### 1.0.1 (2026-04-11)
|
|
37
40
|
* (Dirk-Peter-md) Add Homematic ON_TIME
|
|
38
41
|
* (Dirk-Peter-md) Adapter configuration revised
|
|
@@ -51,9 +54,6 @@ Wetterabhängige automatische Steuerung der Gartenbewässerung
|
|
|
51
54
|
### 0.2.18 (2025-06-30)
|
|
52
55
|
* (Dirk-Peter-md) Hysteresis switch-on value of the cistern changed to 20%
|
|
53
56
|
|
|
54
|
-
### 0.2.17 (2025-06-15)
|
|
55
|
-
* (Dirk-Peter-md) Valve timing corrected
|
|
56
|
-
|
|
57
57
|
## License
|
|
58
58
|
MIT License
|
|
59
59
|
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "Email",
|
|
21
21
|
"Edit Device:": "Gerät bearbeiten:",
|
|
22
22
|
"Enable / Disable Notifications": "Benachrichtigungen aktivieren / deaktivieren",
|
|
23
|
+
"Enable time-based restriction": "Aktivieren Sie die zeitliche Einschränkung",
|
|
24
|
+
"End of interruption": "Ende der Unterbrechung",
|
|
23
25
|
"Evaporation calculation sensors": "Sensoren \"(Homematic HmIP-SWO-PL)\" zur Berechnung der Verdunstung",
|
|
24
26
|
"Every second day": "Jeden zweiten Tag",
|
|
25
27
|
"Extra Settings": "Zusätzliche Einstellungen",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Sprinklersteuerung",
|
|
79
81
|
"Standard [ack === true]": "Standard [ack === true]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Start bei ETpCurrent größer als",
|
|
83
|
+
"Start of interruption": "Beginn der Unterbrechung",
|
|
81
84
|
"Start on fixed days": "An festen Tagen starten",
|
|
82
85
|
"Start on fixed days (without sensors)": "Start an festen Tagen (ohne Sensoren)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Start an festen Wochentagen (ohne Sensoren)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Kreuzen Sie die gewünschten Wochentage an",
|
|
111
114
|
"Time Settings": "Zeit Einstellungen",
|
|
112
115
|
"Time shift in min": "Zeitverschiebung in min",
|
|
116
|
+
"Time-based irrigation restriction": "Zeitliche Bewässerungsbeschränkung",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Zeitliche Bewässerungsbeschränkung (Bewässerungsverbot)",
|
|
113
118
|
"Tuesday": "Dienstag",
|
|
114
119
|
"Use weather forecast": "Wettervorhersage verwenden",
|
|
115
120
|
"Waiting for the send (seconds)": "Warten auf den Versand (Sekunden)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "E-mail",
|
|
21
21
|
"Edit Device:": "Edit Device:",
|
|
22
22
|
"Enable / Disable Notifications": "Enable / Disable Notifications",
|
|
23
|
+
"Enable time-based restriction": "Enable time-based restriction",
|
|
24
|
+
"End of interruption": "End of interruption",
|
|
23
25
|
"Evaporation calculation sensors": "Sensors \"(Homematic HmIP-SWO-PL)\" for calculating the evaporation",
|
|
24
26
|
"Every second day": "Every second day",
|
|
25
27
|
"Extra Settings": "Extra Settings",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Sprinkler control",
|
|
79
81
|
"Standard [ack === true]": "Standard [ack === true]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Start at ETpCurrent greater than",
|
|
83
|
+
"Start of interruption": "Start of interruption",
|
|
81
84
|
"Start on fixed days": "Start on fixed days",
|
|
82
85
|
"Start on fixed days (without sensors)": "Start on fixed days (without sensors)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Start on fixed days of the week (without sensors)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Tick the days of the week you want",
|
|
111
114
|
"Time Settings": "Time Settings",
|
|
112
115
|
"Time shift in min": "Time shift in min",
|
|
116
|
+
"Time-based irrigation restriction": "",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Time-based irrigation restriction (Irrigation ban)",
|
|
113
118
|
"Tuesday": "Tuesday",
|
|
114
119
|
"Use weather forecast": "Use weather forecast",
|
|
115
120
|
"Waiting for the send (seconds)": "Waiting for the send (seconds)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "Correo electrónico",
|
|
21
21
|
"Edit Device:": "Editar dispositivo:",
|
|
22
22
|
"Enable / Disable Notifications": "Activar / desactivar notificaciones",
|
|
23
|
+
"Enable time-based restriction": "Habilitar restricción basada en tiempo",
|
|
24
|
+
"End of interruption": "Fin de la interrupción",
|
|
23
25
|
"Evaporation calculation sensors": "Sensores \"(Homematic HmIP-SWO-PL)\" para calcular la evaporación",
|
|
24
26
|
"Every second day": "Todos los segundos días",
|
|
25
27
|
"Extra Settings": "Configuraciones extra",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Control de rociadores",
|
|
79
81
|
"Standard [ack === true]": "Estándar [ack === verdadero]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Empieza en ETpCurrent más grande que",
|
|
83
|
+
"Start of interruption": "Inicio de la interrupción",
|
|
81
84
|
"Start on fixed days": "Empezar en días fijos",
|
|
82
85
|
"Start on fixed days (without sensors)": "Comience en días fijos (sin sensores)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Comience en días fijos de la semana (sin sensores)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Marque los días de la semana que desee",
|
|
111
114
|
"Time Settings": "Ajustes de hora",
|
|
112
115
|
"Time shift in min": "Cambio de tiempo en min",
|
|
116
|
+
"Time-based irrigation restriction": "Restricción de riego basada en el tiempo",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Restricción de riego basada en el tiempo (Prohibición de riego)",
|
|
113
118
|
"Tuesday": "martes",
|
|
114
119
|
"Use weather forecast": "Usar pronóstico del tiempo",
|
|
115
120
|
"Waiting for the send (seconds)": "Esperando el envío (segundos)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "Email",
|
|
21
21
|
"Edit Device:": "Modifier l'appareil:",
|
|
22
22
|
"Enable / Disable Notifications": "Activer / désactiver les notifications",
|
|
23
|
+
"Enable time-based restriction": "Activer la restriction basée sur le temps",
|
|
24
|
+
"End of interruption": "Fin de l'interruption",
|
|
23
25
|
"Evaporation calculation sensors": "Capteurs \"(Homematic HmIP-SWO-PL)\" pour le calcul de l'évaporation",
|
|
24
26
|
"Every second day": "Tous les deux jours",
|
|
25
27
|
"Extra Settings": "Paramètres supplémentaires",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Commande d'arrosage",
|
|
79
81
|
"Standard [ack === true]": "Standard [ack === vrai]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Commencez par ETpCurrent plus que",
|
|
83
|
+
"Start of interruption": "Début de l'interruption",
|
|
81
84
|
"Start on fixed days": "Commencer à jours fixes",
|
|
82
85
|
"Start on fixed days (without sensors)": "Démarrage à jours fixes (sans capteurs)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Démarrage à jours fixes de la semaine (sans capteurs)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Cochez les jours de la semaine que vous souhaitez",
|
|
111
114
|
"Time Settings": "Paramètres de temps",
|
|
112
115
|
"Time shift in min": "Décalage horaire en min",
|
|
116
|
+
"Time-based irrigation restriction": "Restriction d'irrigation basée sur le temps",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Restriction d'irrigation basée sur le temps (interdiction d'irrigation)",
|
|
113
118
|
"Tuesday": "Mardi",
|
|
114
119
|
"Use weather forecast": "Utiliser les prévisions météorologiques",
|
|
115
120
|
"Waiting for the send (seconds)": "En attente de l'envoi (secondes)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "E-mail",
|
|
21
21
|
"Edit Device:": "Modifica dispositivo:",
|
|
22
22
|
"Enable / Disable Notifications": "Abilita / Disabilita notifiche",
|
|
23
|
+
"Enable time-based restriction": "Abilita la restrizione basata sul tempo",
|
|
24
|
+
"End of interruption": "Fine dell'interruzione",
|
|
23
25
|
"Evaporation calculation sensors": "Sensori \"(Homematic HmIP-SWO-PL)\" per il calcolo dell'evaporazione",
|
|
24
26
|
"Every second day": "Ogni secondo giorno",
|
|
25
27
|
"Extra Settings": "Impostazioni extra",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Controllo dell'irrigatore",
|
|
79
81
|
"Standard [ack === true]": "Standard [riconoscimento === vero]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Iniziare a ETpCurrent più grande di",
|
|
83
|
+
"Start of interruption": "Inizio dell'interruzione",
|
|
81
84
|
"Start on fixed days": "Inizia in giorni fissi",
|
|
82
85
|
"Start on fixed days (without sensors)": "Inizio in giorni fissi (senza sensori)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Inizio in giorni fissi della settimana (senza sensori)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Spunta i giorni della settimana che desideri",
|
|
111
114
|
"Time Settings": "Impostazioni dell'ora",
|
|
112
115
|
"Time shift in min": "Spostamento temporale in min",
|
|
116
|
+
"Time-based irrigation restriction": "Restrizione dell'irrigazione basata sul tempo",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Restrizione dell'irrigazione basata sul tempo (divieto di irrigazione)",
|
|
113
118
|
"Tuesday": "martedì",
|
|
114
119
|
"Use weather forecast": "Usa le previsioni del tempo",
|
|
115
120
|
"Waiting for the send (seconds)": "Aspettando l'invio (secondi)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "E-mail",
|
|
21
21
|
"Edit Device:": "Apparaat bewerken:",
|
|
22
22
|
"Enable / Disable Notifications": "Meldingen inschakelen / uitschakelen",
|
|
23
|
+
"Enable time-based restriction": "Schakel op tijd gebaseerde beperking in",
|
|
24
|
+
"End of interruption": "Einde van de onderbreking",
|
|
23
25
|
"Evaporation calculation sensors": "Sensoren \"(Homematic HmIP-SWO-PL)\" voor het berekenen van de verdamping",
|
|
24
26
|
"Every second day": "Om de andere dag",
|
|
25
27
|
"Extra Settings": "Extra instellingen",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Sprinklercontrole",
|
|
79
81
|
"Standard [ack === true]": "Standaard [ack === waar]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Begin bij aankomst",
|
|
83
|
+
"Start of interruption": "Begin van de onderbreking",
|
|
81
84
|
"Start on fixed days": "Start op vaste dagen",
|
|
82
85
|
"Start on fixed days (without sensors)": "Start op vaste dagen (zonder sensoren)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Start op vaste dagen van de week (zonder sensoren)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Vink de gewenste dagen van de week aan",
|
|
111
114
|
"Time Settings": "Tijdsinstellingen",
|
|
112
115
|
"Time shift in min": "Tijdverschuiving in min",
|
|
116
|
+
"Time-based irrigation restriction": "Tijdgebaseerde irrigatiebeperking",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Tijdgebaseerde irrigatiebeperking (irrigatieverbod)",
|
|
113
118
|
"Tuesday": "dinsdag",
|
|
114
119
|
"Use weather forecast": "Gebruik weersvoorspelling",
|
|
115
120
|
"Waiting for the send (seconds)": "Wachten op verzending (seconden)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "E-mail",
|
|
21
21
|
"Edit Device:": "Edytuj urządzenie:",
|
|
22
22
|
"Enable / Disable Notifications": "Włącz / wyłącz powiadomienia",
|
|
23
|
+
"Enable time-based restriction": "Włącz ograniczenie czasowe",
|
|
24
|
+
"End of interruption": "Koniec przerwy",
|
|
23
25
|
"Evaporation calculation sensors": "Czujniki „(Homematic HmIP-SWO-PL)” do obliczania parowania",
|
|
24
26
|
"Every second day": "Co drugi dzień",
|
|
25
27
|
"Extra Settings": "Dodatkowe ustawienia",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Kontrola zraszaczy",
|
|
79
81
|
"Standard [ack === true]": "Standardowe [potwierdzenie === prawda]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Zaczyna się w ETpCurrent większym niż w przypadku ETpCurrenta",
|
|
83
|
+
"Start of interruption": "Początek przerwy",
|
|
81
84
|
"Start on fixed days": "Start w ustalone dni",
|
|
82
85
|
"Start on fixed days (without sensors)": "Start w ustalone dni (bez czujników)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Start w stałe dni tygodnia (bez czujników)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Zaznacz dni tygodnia, które chcesz",
|
|
111
114
|
"Time Settings": "Ustawienia czasu",
|
|
112
115
|
"Time shift in min": "Przesunięcie czasu w min",
|
|
116
|
+
"Time-based irrigation restriction": "Ograniczenie nawadniania oparte na czasie",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Ograniczenia nawadniania oparte na czasie (zakaz nawadniania)",
|
|
113
118
|
"Tuesday": "wtorek",
|
|
114
119
|
"Use weather forecast": "Użyj prognozy pogody",
|
|
115
120
|
"Waiting for the send (seconds)": "Oczekiwanie na wysłanie (sekundy)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "O email",
|
|
21
21
|
"Edit Device:": "Editar dispositivo:",
|
|
22
22
|
"Enable / Disable Notifications": "Ativar / desativar notificações",
|
|
23
|
+
"Enable time-based restriction": "Habilitar restrição baseada em tempo",
|
|
24
|
+
"End of interruption": "Fim da interrupção",
|
|
23
25
|
"Evaporation calculation sensors": "Sensores \"(Homematic HmIP-SWO-PL)\" para cálculo da evaporação",
|
|
24
26
|
"Every second day": "Cada segundo dia",
|
|
25
27
|
"Extra Settings": "Configurações extras",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Controle de aspersão",
|
|
79
81
|
"Standard [ack === true]": "Padrão [ack === verdadeiro]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Comece no ETpCurrent maior do que",
|
|
83
|
+
"Start of interruption": "Início da interrupção",
|
|
81
84
|
"Start on fixed days": "Comece em dias fixos",
|
|
82
85
|
"Start on fixed days (without sensors)": "Comece em dias fixos (sem sensores)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Comece em dias fixos da semana (sem sensores)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Marque os dias da semana que você deseja",
|
|
111
114
|
"Time Settings": "Configurações de tempo",
|
|
112
115
|
"Time shift in min": "Mudança de tempo em min",
|
|
116
|
+
"Time-based irrigation restriction": "Restrição de irrigação baseada no tempo",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Restrição de irrigação baseada no tempo (proibição de irrigação)",
|
|
113
118
|
"Tuesday": "terça",
|
|
114
119
|
"Use weather forecast": "Use a previsão do tempo",
|
|
115
120
|
"Waiting for the send (seconds)": "Esperando pelo envio (segundos)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "Эл. почта",
|
|
21
21
|
"Edit Device:": "Редактировать устройство:",
|
|
22
22
|
"Enable / Disable Notifications": "Включить / отключить уведомления",
|
|
23
|
+
"Enable time-based restriction": "Включить ограничение по времени",
|
|
24
|
+
"End of interruption": "Конец перерыва",
|
|
23
25
|
"Evaporation calculation sensors": "Датчики «(Homematic HmIP-SWO-PL)» для расчета испарения.",
|
|
24
26
|
"Every second day": "Каждый второй день",
|
|
25
27
|
"Extra Settings": "Дополнительные настройки",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Управление спринклером",
|
|
79
81
|
"Standard [ack === true]": "Стандартный [ack === true]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Начните в ETpCurrent больше, чем",
|
|
83
|
+
"Start of interruption": "Начало прерывания",
|
|
81
84
|
"Start on fixed days": "Начало в определенные дни",
|
|
82
85
|
"Start on fixed days (without sensors)": "Запуск в определенные дни (без датчиков)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Запуск в определенные дни недели (без датчиков)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Отметьте желаемые дни недели",
|
|
111
114
|
"Time Settings": "Настройки времени",
|
|
112
115
|
"Time shift in min": "Сдвиг времени в мин.",
|
|
116
|
+
"Time-based irrigation restriction": "Ограничение полива по времени",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Ограничение орошения по времени (запрет на орошение)",
|
|
113
118
|
"Tuesday": "вторник",
|
|
114
119
|
"Use weather forecast": "Использовать прогноз погоды",
|
|
115
120
|
"Waiting for the send (seconds)": "Ожидание отправки (секунды)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "Електронна пошта",
|
|
21
21
|
"Edit Device:": "Редагувати пристрій:",
|
|
22
22
|
"Enable / Disable Notifications": "Увімкнути/вимкнути сповіщення",
|
|
23
|
+
"Enable time-based restriction": "Увімкнути обмеження за часом",
|
|
24
|
+
"End of interruption": "Кінець перерви",
|
|
23
25
|
"Evaporation calculation sensors": "Датчики \"(Homematic HmIP-SWO-PL)\" для розрахунку випаровування",
|
|
24
26
|
"Every second day": "Кожен другий день",
|
|
25
27
|
"Extra Settings": "Додаткові налаштування",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "Спринклерний контроль",
|
|
79
81
|
"Standard [ack === true]": "Стандартний [ack === true]",
|
|
80
82
|
"Start at ETpCurrent greater than": "Почніть з ETpCurrent більше ніж",
|
|
83
|
+
"Start of interruption": "Початок переривання",
|
|
81
84
|
"Start on fixed days": "Почніть у визначені дні",
|
|
82
85
|
"Start on fixed days (without sensors)": "Запуск у фіксовані дні (без датчиків)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "Запуск у фіксовані дні тижня (без датчиків)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "Позначте потрібні дні тижня",
|
|
111
114
|
"Time Settings": "Параметри часу",
|
|
112
115
|
"Time shift in min": "Зсув часу в хв",
|
|
116
|
+
"Time-based irrigation restriction": "Часове обмеження поливу",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "Часове обмеження поливу (заборона поливу)",
|
|
113
118
|
"Tuesday": "вівторок",
|
|
114
119
|
"Use weather forecast": "Використовуйте прогноз погоди",
|
|
115
120
|
"Waiting for the send (seconds)": "Очікування надсилання (секунд)",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"E-mail": "电子邮件",
|
|
21
21
|
"Edit Device:": "编辑设备:",
|
|
22
22
|
"Enable / Disable Notifications": "启用/禁用通知",
|
|
23
|
+
"Enable time-based restriction": "启用基于时间的限制",
|
|
24
|
+
"End of interruption": "中断结束",
|
|
23
25
|
"Evaporation calculation sensors": "用于计算蒸发量的传感器“(Homematic HmIP-SWO-PL)”",
|
|
24
26
|
"Every second day": "每隔一天",
|
|
25
27
|
"Extra Settings": "额外设定",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"Sprinkler control": "洒水控制",
|
|
79
81
|
"Standard [ack === true]": "标准 [ack === true]",
|
|
80
82
|
"Start at ETpCurrent greater than": "从ETpCurrent的起,比照高得多",
|
|
83
|
+
"Start of interruption": "中断开始",
|
|
81
84
|
"Start on fixed days": "在固定日期开始",
|
|
82
85
|
"Start on fixed days (without sensors)": "在固定日期开始(无传感器)",
|
|
83
86
|
"Start on fixed days of the week (without sensors)": "在一周的固定日期开始(无传感器)",
|
|
@@ -110,6 +113,8 @@
|
|
|
110
113
|
"Tick the days of the week you want": "勾选您想要的星期几",
|
|
111
114
|
"Time Settings": "时间设定",
|
|
112
115
|
"Time shift in min": "最小时移",
|
|
116
|
+
"Time-based irrigation restriction": "基于时间的灌溉限制",
|
|
117
|
+
"Time-based irrigation restriction (Irrigation ban)": "基于时间的灌溉限制(灌溉禁令)",
|
|
113
118
|
"Tuesday": "周二",
|
|
114
119
|
"Use weather forecast": "使用天气预报",
|
|
115
120
|
"Waiting for the send (seconds)": "等待发送(秒)",
|
package/admin/index_m.html
CHANGED
|
@@ -328,6 +328,32 @@
|
|
|
328
328
|
</div>
|
|
329
329
|
</div>
|
|
330
330
|
</li>
|
|
331
|
+
<!-- Time-based irrigation restriction -->
|
|
332
|
+
<li>
|
|
333
|
+
<div class="collapsible-header">
|
|
334
|
+
<i class="material-icons">expand_more</i><h6 class="translate">Time-based irrigation restriction (Irrigation ban)</h6>
|
|
335
|
+
</div>
|
|
336
|
+
<div class="collapsible-body">
|
|
337
|
+
<div class="row">
|
|
338
|
+
<div class="input-field col s12 m12 l12">
|
|
339
|
+
<input type="checkbox" class="value" id="enableTimeBasedRestriction" />
|
|
340
|
+
<span for="enableTimeBasedRestriction" class="translate">Enable time-based restriction</span>
|
|
341
|
+
</div>
|
|
342
|
+
<div class="row">
|
|
343
|
+
<div class="input-field col s12 m4 l2">
|
|
344
|
+
<input type="text" class="timepicker value" id="startOfInterruption" />
|
|
345
|
+
<label for="startOfInterruption" class="translate"></label>
|
|
346
|
+
<span class="translate">Start of interruption</span>
|
|
347
|
+
</div>
|
|
348
|
+
<div class="input-field col s12 m4 l2">
|
|
349
|
+
<input type="text" class="timepicker value" id="endOfInterruption" />
|
|
350
|
+
<label for="endOfInterruption" class="translate"></label>
|
|
351
|
+
<span class="translate">End of interruption</span>
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
</li>
|
|
331
357
|
</ul>
|
|
332
358
|
</div>
|
|
333
359
|
|
package/admin/words.js
CHANGED
|
@@ -29,6 +29,8 @@ systemDictionary = {
|
|
|
29
29
|
"E-mail": { "en": "E-mail", "de": "Email", "ru": "Эл. почта", "pt": "O email", "nl": "E-mail", "fr": "Email", "it": "E-mail", "es": "Correo electrónico", "pl": "E-mail", "uk": "Електронна пошта", "zh-cn": "电子邮件"},
|
|
30
30
|
"Edit Device:": { "en": "Edit Device:", "de": "Gerät bearbeiten:", "ru": "Редактировать устройство:", "pt": "Editar dispositivo:", "nl": "Apparaat bewerken:", "fr": "Modifier l'appareil:", "it": "Modifica dispositivo:", "es": "Editar dispositivo:", "pl": "Edytuj urządzenie:", "uk": "Редагувати пристрій:", "zh-cn": "编辑设备:"},
|
|
31
31
|
"Enable / Disable Notifications": { "en": "Enable / Disable Notifications", "de": "Benachrichtigungen aktivieren / deaktivieren", "ru": "Включить / отключить уведомления", "pt": "Ativar / desativar notificações", "nl": "Meldingen inschakelen / uitschakelen", "fr": "Activer / désactiver les notifications", "it": "Abilita / Disabilita notifiche", "es": "Activar / desactivar notificaciones", "pl": "Włącz / wyłącz powiadomienia", "uk": "Увімкнути/вимкнути сповіщення", "zh-cn": "启用/禁用通知"},
|
|
32
|
+
"Enable time-based restriction": { "en": "Enable time-based restriction", "de": "Aktivieren Sie die zeitliche Einschränkung", "ru": "Включить ограничение по времени", "pt": "Habilitar restrição baseada em tempo", "nl": "Schakel op tijd gebaseerde beperking in", "fr": "Activer la restriction basée sur le temps", "it": "Abilita la restrizione basata sul tempo", "es": "Habilitar restricción basada en tiempo", "pl": "Włącz ograniczenie czasowe", "uk": "Увімкнути обмеження за часом", "zh-cn": "启用基于时间的限制"},
|
|
33
|
+
"End of interruption": { "en": "End of interruption", "de": "Ende der Unterbrechung", "ru": "Конец перерыва", "pt": "Fim da interrupção", "nl": "Einde van de onderbreking", "fr": "Fin de l'interruption", "it": "Fine dell'interruzione", "es": "Fin de la interrupción", "pl": "Koniec przerwy", "uk": "Кінець перерви", "zh-cn": "中断结束"},
|
|
32
34
|
"Evaporation calculation sensors": { "en": "Sensors \"(Homematic HmIP-SWO-PL)\" for calculating the evaporation", "de": "Sensoren \"(Homematic HmIP-SWO-PL)\" zur Berechnung der Verdunstung", "ru": "Датчики «(Homematic HmIP-SWO-PL)» для расчета испарения.", "pt": "Sensores \"(Homematic HmIP-SWO-PL)\" para cálculo da evaporação", "nl": "Sensoren \"(Homematic HmIP-SWO-PL)\" voor het berekenen van de verdamping", "fr": "Capteurs \"(Homematic HmIP-SWO-PL)\" pour le calcul de l'évaporation", "it": "Sensori \"(Homematic HmIP-SWO-PL)\" per il calcolo dell'evaporazione", "es": "Sensores \"(Homematic HmIP-SWO-PL)\" para calcular la evaporación", "pl": "Czujniki „(Homematic HmIP-SWO-PL)” do obliczania parowania", "uk": "Датчики \"(Homematic HmIP-SWO-PL)\" для розрахунку випаровування", "zh-cn": "用于计算蒸发量的传感器“(Homematic HmIP-SWO-PL)”"},
|
|
33
35
|
"Every second day": { "en": "Every second day", "de": "Jeden zweiten Tag", "ru": "Каждый второй день", "pt": "Cada segundo dia", "nl": "Om de andere dag", "fr": "Tous les deux jours", "it": "Ogni secondo giorno", "es": "Todos los segundos días", "pl": "Co drugi dzień", "uk": "Кожен другий день", "zh-cn": "每隔一天"},
|
|
34
36
|
"Extra Settings": { "en": "Extra Settings", "de": "Zusätzliche Einstellungen", "ru": "Дополнительные настройки", "pt": "Configurações extras", "nl": "Extra instellingen", "fr": "Paramètres supplémentaires", "it": "Impostazioni extra", "es": "Configuraciones extra", "pl": "Dodatkowe ustawienia", "uk": "Додаткові налаштування", "zh-cn": "额外设定"},
|
|
@@ -87,6 +89,7 @@ systemDictionary = {
|
|
|
87
89
|
"Sprinkler control": { "en": "Sprinkler control", "de": "Sprinklersteuerung", "ru": "Управление спринклером", "pt": "Controle de aspersão", "nl": "Sprinklercontrole", "fr": "Commande d'arrosage", "it": "Controllo dell'irrigatore", "es": "Control de rociadores", "pl": "Kontrola zraszaczy", "uk": "Спринклерний контроль", "zh-cn": "洒水控制"},
|
|
88
90
|
"Standard [ack === true]": { "en": "Standard [ack === true]", "de": "Standard [ack === true]", "ru": "Стандартный [ack === true]", "pt": "Padrão [ack === verdadeiro]", "nl": "Standaard [ack === waar]", "fr": "Standard [ack === vrai]", "it": "Standard [riconoscimento === vero]", "es": "Estándar [ack === verdadero]", "pl": "Standardowe [potwierdzenie === prawda]", "uk": "Стандартний [ack === true]", "zh-cn": "标准 [ack === true]"},
|
|
89
91
|
"Start at ETpCurrent greater than": { "en": "Start at ETpCurrent greater than", "de": "Start bei ETpCurrent größer als", "ru": "Начните в ETpCurrent больше, чем", "pt": "Comece no ETpCurrent maior do que", "nl": "Begin bij aankomst", "fr": "Commencez par ETpCurrent plus que", "it": "Iniziare a ETpCurrent più grande di", "es": "Empieza en ETpCurrent más grande que", "pl": "Zaczyna się w ETpCurrent większym niż w przypadku ETpCurrenta", "uk": "Почніть з ETpCurrent більше ніж", "zh-cn": "从ETpCurrent的起,比照高得多"},
|
|
92
|
+
"Start of interruption": { "en": "Start of interruption", "de": "Beginn der Unterbrechung", "ru": "Начало прерывания", "pt": "Início da interrupção", "nl": "Begin van de onderbreking", "fr": "Début de l'interruption", "it": "Inizio dell'interruzione", "es": "Inicio de la interrupción", "pl": "Początek przerwy", "uk": "Початок переривання", "zh-cn": "中断开始"},
|
|
90
93
|
"Start on fixed days": { "en": "Start on fixed days", "de": "An festen Tagen starten", "ru": "Начало в определенные дни", "pt": "Comece em dias fixos", "nl": "Start op vaste dagen", "fr": "Commencer à jours fixes", "it": "Inizia in giorni fissi", "es": "Empezar en días fijos", "pl": "Start w ustalone dni", "uk": "Почніть у визначені дні", "zh-cn": "在固定日期开始"},
|
|
91
94
|
"Start on fixed days (without sensors)": { "en": "Start on fixed days (without sensors)", "de": "Start an festen Tagen (ohne Sensoren)", "ru": "Запуск в определенные дни (без датчиков)", "pt": "Comece em dias fixos (sem sensores)", "nl": "Start op vaste dagen (zonder sensoren)", "fr": "Démarrage à jours fixes (sans capteurs)", "it": "Inizio in giorni fissi (senza sensori)", "es": "Comience en días fijos (sin sensores)", "pl": "Start w ustalone dni (bez czujników)", "uk": "Запуск у фіксовані дні (без датчиків)", "zh-cn": "在固定日期开始(无传感器)"},
|
|
92
95
|
"Start on fixed days of the week (without sensors)": {"en": "Start on fixed days of the week (without sensors)", "de": "Start an festen Wochentagen (ohne Sensoren)", "ru": "Запуск в определенные дни недели (без датчиков)", "pt": "Comece em dias fixos da semana (sem sensores)", "nl": "Start op vaste dagen van de week (zonder sensoren)", "fr": "Démarrage à jours fixes de la semaine (sans capteurs)", "it": "Inizio in giorni fissi della settimana (senza sensori)", "es": "Comience en días fijos de la semana (sin sensores)", "pl": "Start w stałe dni tygodnia (bez czujników)", "uk": "Запуск у фіксовані дні тижня (без датчиків)", "zh-cn": "在一周的固定日期开始(无传感器)"},
|
|
@@ -119,6 +122,8 @@ systemDictionary = {
|
|
|
119
122
|
"Tick the days of the week you want": { "en": "Tick the days of the week you want", "de": "Kreuzen Sie die gewünschten Wochentage an", "ru": "Отметьте желаемые дни недели", "pt": "Marque os dias da semana que você deseja", "nl": "Vink de gewenste dagen van de week aan", "fr": "Cochez les jours de la semaine que vous souhaitez", "it": "Spunta i giorni della settimana che desideri", "es": "Marque los días de la semana que desee", "pl": "Zaznacz dni tygodnia, które chcesz", "uk": "Позначте потрібні дні тижня", "zh-cn": "勾选您想要的星期几"},
|
|
120
123
|
"Time Settings": { "en": "Time Settings", "de": "Zeit Einstellungen", "ru": "Настройки времени", "pt": "Configurações de tempo", "nl": "Tijdsinstellingen", "fr": "Paramètres de temps", "it": "Impostazioni dell'ora", "es": "Ajustes de hora", "pl": "Ustawienia czasu", "uk": "Параметри часу", "zh-cn": "时间设定"},
|
|
121
124
|
"Time shift in min": { "en": "Time shift in min", "de": "Zeitverschiebung in min", "ru": "Сдвиг времени в мин.", "pt": "Mudança de tempo em min", "nl": "Tijdverschuiving in min", "fr": "Décalage horaire en min", "it": "Spostamento temporale in min", "es": "Cambio de tiempo en min", "pl": "Przesunięcie czasu w min", "uk": "Зсув часу в хв", "zh-cn": "最小时移"},
|
|
125
|
+
"Time-based irrigation restriction": { "en": "", "de": "Zeitliche Bewässerungsbeschränkung", "ru": "Ограничение полива по времени", "pt": "Restrição de irrigação baseada no tempo", "nl": "Tijdgebaseerde irrigatiebeperking", "fr": "Restriction d'irrigation basée sur le temps", "it": "Restrizione dell'irrigazione basata sul tempo", "es": "Restricción de riego basada en el tiempo", "pl": "Ograniczenie nawadniania oparte na czasie", "uk": "Часове обмеження поливу", "zh-cn": "基于时间的灌溉限制"},
|
|
126
|
+
"Time-based irrigation restriction (Irrigation ban)": {"en": "Time-based irrigation restriction (Irrigation ban)", "de": "Zeitliche Bewässerungsbeschränkung (Bewässerungsverbot)", "ru": "Ограничение орошения по времени (запрет на орошение)", "pt": "Restrição de irrigação baseada no tempo (proibição de irrigação)", "nl": "Tijdgebaseerde irrigatiebeperking (irrigatieverbod)", "fr": "Restriction d'irrigation basée sur le temps (interdiction d'irrigation)", "it": "Restrizione dell'irrigazione basata sul tempo (divieto di irrigazione)", "es": "Restricción de riego basada en el tiempo (Prohibición de riego)", "pl": "Ograniczenia nawadniania oparte na czasie (zakaz nawadniania)", "uk": "Часове обмеження поливу (заборона поливу)", "zh-cn": "基于时间的灌溉限制(灌溉禁令)"},
|
|
122
127
|
"Tuesday": { "en": "Tuesday", "de": "Dienstag", "ru": "вторник", "pt": "terça", "nl": "dinsdag", "fr": "Mardi", "it": "martedì", "es": "martes", "pl": "wtorek", "uk": "вівторок", "zh-cn": "周二"},
|
|
123
128
|
"Use weather forecast": { "en": "Use weather forecast", "de": "Wettervorhersage verwenden", "ru": "Использовать прогноз погоды", "pt": "Use a previsão do tempo", "nl": "Gebruik weersvoorspelling", "fr": "Utiliser les prévisions météorologiques", "it": "Usa le previsioni del tempo", "es": "Usar pronóstico del tiempo", "pl": "Użyj prognozy pogody", "uk": "Використовуйте прогноз погоди", "zh-cn": "使用天气预报"},
|
|
124
129
|
"Waiting for the send (seconds)": { "en": "Waiting for the send (seconds)", "de": "Warten auf den Versand (Sekunden)", "ru": "Ожидание отправки (секунды)", "pt": "Esperando pelo envio (segundos)", "nl": "Wachten op verzending (seconden)", "fr": "En attente de l'envoi (secondes)", "it": "Aspettando l'invio (secondi)", "es": "Esperando el envío (segundos)", "pl": "Oczekiwanie na wysłanie (sekundy)", "uk": "Очікування надсилання (секунд)", "zh-cn": "等待发送(秒)"},
|
package/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "sprinklecontrol",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"titleLang": {
|
|
6
6
|
"en": "Sprinkler Control",
|
|
7
7
|
"de": "Sprinklersteuerung",
|
|
@@ -19,6 +19,19 @@
|
|
|
19
19
|
"Dirk Peter <dirk.peter@freenet.de>"
|
|
20
20
|
],
|
|
21
21
|
"news": {
|
|
22
|
+
"1.0.2": {
|
|
23
|
+
"en": "Added times for the irrigation ban",
|
|
24
|
+
"de": "Zusätzliche Zeiten für das Bewässerungsverbot",
|
|
25
|
+
"ru": "Добавлено время для запрета ирригации",
|
|
26
|
+
"pt": "Tempos adicionais para a proibição da irrigação",
|
|
27
|
+
"nl": "Toegevoegde tijden voor het irrigatieverbod",
|
|
28
|
+
"fr": "Ajout de temps pour l'interdiction d'irrigation",
|
|
29
|
+
"it": "Aggiunti i tempi per il divieto di irrigazione",
|
|
30
|
+
"es": "Tiempos adicionales para la prohibición de riego",
|
|
31
|
+
"pl": "Dodano czasy zakazu nawadniania",
|
|
32
|
+
"uk": "Додані часи для поливу заборони",
|
|
33
|
+
"zh-cn": "灌溉禁令增加的时间"
|
|
34
|
+
},
|
|
22
35
|
"1.0.1": {
|
|
23
36
|
"en": "Add Homematic ON_TIME\nAdapter configuration revised\nioBroker-Bot [E4041], [E4043] completed",
|
|
24
37
|
"de": "Homematic ON TIME hinzufügen\nAdapterkonfiguration überarbeitet\nioBroker-Bot [E4041], [E4043] abgeschlossen",
|
|
@@ -174,6 +187,9 @@
|
|
|
174
187
|
"triggerAddStartTimeETpCur": "3.5",
|
|
175
188
|
"triggerAddStartTimeETpToday": "30",
|
|
176
189
|
"addWateringStartTime": "18:00",
|
|
190
|
+
"enableTimeBasedRestriction": false,
|
|
191
|
+
"startOfInterruption": "10:00",
|
|
192
|
+
"endOfInterruption": "18:00",
|
|
177
193
|
"publicWeekend": true,
|
|
178
194
|
"weekEndLiving": "07:30",
|
|
179
195
|
"publicHolidays": false,
|
package/lib/evaporation.js
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
info: log aufbau evaporation.js: #3.*
|
|
4
4
|
*/
|
|
5
5
|
const myConfig = require('./myConfig.js'); // myConfig → Speichern und abrufen von Konfigurationsdaten der Ventile
|
|
6
|
-
const
|
|
7
|
-
const trend = require('./tools').trend; // tools => laden von Hilfsfunktionen
|
|
6
|
+
const tools = require('./tools').tools; // tools => laden von Hilfsfunktionen
|
|
8
7
|
|
|
9
8
|
let adapter;
|
|
10
9
|
|
|
@@ -90,7 +89,7 @@ const ExtraTerStrTab = {
|
|
|
90
89
|
* anhand der Tabelle "ExtraTerStrTab"
|
|
91
90
|
*/
|
|
92
91
|
function extraTerStr () { // latitude Breitengrad
|
|
93
|
-
const dayNr = formatTime().dayNr;
|
|
92
|
+
const dayNr = tools.formatTime().dayNr;
|
|
94
93
|
/**
|
|
95
94
|
* - unterer Tabellenwert der Latitude
|
|
96
95
|
*/
|
|
@@ -115,15 +114,15 @@ function extraTerStr () { // latitude Breitengrad
|
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
toDayExtraTerStr = trend(
|
|
117
|
+
toDayExtraTerStr = tools.trend(
|
|
119
118
|
lowerLatitude,
|
|
120
119
|
upperLatitude,
|
|
121
|
-
trend(ExtraTerStrTab.Tag[currentMonth], ExtraTerStrTab.Tag[followMonth], ExtraTerStrTab[lowerLatitude.toString()][currentMonth], ExtraTerStrTab[lowerLatitude.toString()][followMonth], dayNr),
|
|
122
|
-
trend(ExtraTerStrTab.Tag[currentMonth], ExtraTerStrTab.Tag[followMonth], ExtraTerStrTab[upperLatitude.toString()][currentMonth], ExtraTerStrTab[upperLatitude.toString()][followMonth], dayNr),
|
|
120
|
+
tools.trend(ExtraTerStrTab.Tag[currentMonth], ExtraTerStrTab.Tag[followMonth], ExtraTerStrTab[lowerLatitude.toString()][currentMonth], ExtraTerStrTab[lowerLatitude.toString()][followMonth], dayNr),
|
|
121
|
+
tools.trend(ExtraTerStrTab.Tag[currentMonth], ExtraTerStrTab.Tag[followMonth], ExtraTerStrTab[upperLatitude.toString()][currentMonth], ExtraTerStrTab[upperLatitude.toString()][followMonth], dayNr),
|
|
123
122
|
+adapter.config.latitude
|
|
124
123
|
);
|
|
125
124
|
|
|
126
|
-
minExtraTerStr = trend(
|
|
125
|
+
minExtraTerStr = tools.trend(
|
|
127
126
|
lowerLatitude,
|
|
128
127
|
upperLatitude,
|
|
129
128
|
ExtraTerStrTab[lowerLatitude.toString()][11], //alter Wert 11
|
|
@@ -131,7 +130,7 @@ function extraTerStr () { // latitude Breitengrad
|
|
|
131
130
|
+adapter.config.latitude
|
|
132
131
|
);
|
|
133
132
|
|
|
134
|
-
maxExtraTerStr = trend(
|
|
133
|
+
maxExtraTerStr = tools.trend(
|
|
135
134
|
lowerLatitude,
|
|
136
135
|
upperLatitude,
|
|
137
136
|
ExtraTerStrTab[lowerLatitude.toString()][5],
|
|
@@ -474,11 +473,11 @@ const evaporation = {
|
|
|
474
473
|
if (ETpTodayNum < 136) { // 16. Mai
|
|
475
474
|
return 1;
|
|
476
475
|
}else if (ETpTodayNum < 171) { // 20. Juni
|
|
477
|
-
return trend(136, 170,1, maxExtension / 100, ETpTodayNum);
|
|
476
|
+
return tools.trend(136, 170,1, maxExtension / 100, ETpTodayNum);
|
|
478
477
|
} else if (ETpTodayNum < 186) { // 5. Juli
|
|
479
478
|
return maxExtension / 100;
|
|
480
479
|
}else if (ETpTodayNum < 241) { // 29. August
|
|
481
|
-
return trend(186, 240,maxExtension / 100, 1, ETpTodayNum);
|
|
480
|
+
return tools.trend(186, 240,maxExtension / 100, 1, ETpTodayNum);
|
|
482
481
|
}else {
|
|
483
482
|
return 1;
|
|
484
483
|
}
|
package/lib/myConfig.js
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
/*
|
|
5
5
|
info: log aufbau myConfig.js: #1.*
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
8
|
-
const formatTime = require('./tools').formatTime; // tools => laden von Hilfsfunktionen
|
|
9
|
-
const idStateControl = require('./tools').idStateControl; // tools => laden der Hilfsfunktionen idStateControl
|
|
7
|
+
const tools = require('./tools').tools; // tools => laden von Hilfsfunktionen
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* The adapter instance
|
|
@@ -134,7 +132,7 @@ const myConfig = {
|
|
|
134
132
|
}
|
|
135
133
|
|
|
136
134
|
// abonnieren der Statusänderungen des Objekts (reagiert auf Änderung des 'Ventils' der einzelnen Bewässerungskreise zur Fehlerkontrolle bzw. Verbrauchsermittlung)
|
|
137
|
-
newEntry.control = await idStateControl(adapter, res.name);
|
|
135
|
+
newEntry.control = await tools.idStateControl(adapter, res.name);
|
|
138
136
|
|
|
139
137
|
/* Abonnieren der Statusänderungen des Objekts (reagieren auf Änderung des 'Ventils'
|
|
140
138
|
der einzelnen Bewässerungskreise zur Fehlerkontrolle bzw. Verbrauchsermittlung) */
|
|
@@ -256,7 +254,7 @@ const myConfig = {
|
|
|
256
254
|
myVal = newVal;
|
|
257
255
|
}
|
|
258
256
|
|
|
259
|
-
myConfig.config[mySprinkleID].analog.pct = Math.round(10 * trend(myConfig.config[mySprinkleID].analog.analogZPct, myConfig.config[mySprinkleID].analog.analogOHPct, 0, 100, myVal)) / 10;
|
|
257
|
+
myConfig.config[mySprinkleID].analog.pct = Math.round(10 * tools.trend(myConfig.config[mySprinkleID].analog.analogZPct, myConfig.config[mySprinkleID].analog.analogOHPct, 0, 100, myVal)) / 10;
|
|
260
258
|
adapter.setState(`sprinkle.${ [myConfig.config[mySprinkleID].objectName] }.actualSoilMoisture`, {
|
|
261
259
|
val: myConfig.config[mySprinkleID].analog.pct,
|
|
262
260
|
ack: true
|
|
@@ -293,7 +291,7 @@ const myConfig = {
|
|
|
293
291
|
if (myConfig.config[mySprinkleID].fixDay.startDay === 'threeRd' || // Next Start in 3 Tagen
|
|
294
292
|
myConfig.config[mySprinkleID].fixDay.startDay === 'twoNd') { // Next Start in 2 Tagen
|
|
295
293
|
try {
|
|
296
|
-
const today = await formatTime().day;
|
|
294
|
+
const today = await tools.formatTime().day;
|
|
297
295
|
const id = `${adapter.namespace}.sprinkle.${myConfig.config[mySprinkleID].objectName}.actualSoilMoisture`;
|
|
298
296
|
let curDay, nextDay;
|
|
299
297
|
/** Wert von actualSoilMoisture auslesen */
|