iobroker.pv-notifications 1.1.2 → 1.1.3
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 +6 -2
- package/admin/i18n/de/translations.json +4 -0
- package/admin/i18n/en/translations.json +4 -0
- package/admin/i18n/ru/translations.json +4 -0
- package/admin/jsonConfig.json +20 -0
- package/io-package.json +1 -1
- package/main.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -339,11 +339,15 @@ sadam6752@gmail.com
|
|
|
339
339
|
### **WORK IN PROGRESS**
|
|
340
340
|
-->
|
|
341
341
|
|
|
342
|
+
### 1.1.3 (2026-03-01)
|
|
343
|
+
|
|
344
|
+
* (ADD) Two separate checkboxes for weather data: 'weatherInIntermediate' and 'weatherInDailyStats'
|
|
345
|
+
* (ADD) Users can now choose where to show weather: in intermediate messages, daily statistics, or both
|
|
346
|
+
* (FIX) Weather data now respects individual checkbox settings
|
|
347
|
+
|
|
342
348
|
### 1.1.2 (2026-03-01)
|
|
343
349
|
|
|
344
350
|
* (FIX) Weather data now read correctly using getForeignStateAsync() instead of getStateValue()
|
|
345
|
-
* (FIX) Weather data added to daily statistics (buildDailyStatsMessage) and intermediate messages (buildIntermediateMessage)
|
|
346
|
-
* (ADD) New checkbox 'weatherEnabled' to enable/disable weather data in messages
|
|
347
351
|
|
|
348
352
|
### 1.1.1 (2026-03-01)
|
|
349
353
|
|
|
@@ -70,6 +70,10 @@
|
|
|
70
70
|
"header_weather": "Wetter (Optional)",
|
|
71
71
|
"label_weatherEnabled": "Wetterdaten in Nachrichten anzeigen",
|
|
72
72
|
"tooltip_weatherEnabled": "Wenn aktiviert, werden Wetterdaten in Tagesstatistik und Batterie-Status-Nachrichten angezeigt",
|
|
73
|
+
"label_weatherInIntermediate": "Intermediate-Stufen",
|
|
74
|
+
"tooltip_weatherInIntermediate": "Wetterdaten in Intermediate-Nachrichten (20%, 40%, 60%, 80%) anzeigen",
|
|
75
|
+
"label_weatherInDailyStats": "Tagesstatistik",
|
|
76
|
+
"tooltip_weatherInDailyStats": "Wetterdaten in Tagesstatistik (22:00) anzeigen",
|
|
73
77
|
"label_weatherTodayText": "Wetter heute",
|
|
74
78
|
"tooltip_weatherTodayText": "Z.B. daswetter.0.Day0.forecast.currentSymbol",
|
|
75
79
|
"label_weatherTodayTemp": "Temperatur heute (°C)",
|
|
@@ -70,6 +70,10 @@
|
|
|
70
70
|
"header_weather": "Weather (Optional)",
|
|
71
71
|
"label_weatherEnabled": "Show weather data in messages",
|
|
72
72
|
"tooltip_weatherEnabled": "If enabled, weather data will be shown in daily statistics and battery status messages",
|
|
73
|
+
"label_weatherInIntermediate": "Intermediate levels",
|
|
74
|
+
"tooltip_weatherInIntermediate": "Show weather data in intermediate messages (20%, 40%, 60%, 80%)",
|
|
75
|
+
"label_weatherInDailyStats": "Daily statistics",
|
|
76
|
+
"tooltip_weatherInDailyStats": "Show weather data in daily statistics (22:00)",
|
|
73
77
|
"label_weatherTodayText": "Weather today",
|
|
74
78
|
"tooltip_weatherTodayText": "e.g. daswetter.0.Day0.forecast.currentSymbol",
|
|
75
79
|
"label_weatherTodayTemp": "Temperature today (°C)",
|
|
@@ -70,6 +70,10 @@
|
|
|
70
70
|
"header_weather": "Погода (опционально)",
|
|
71
71
|
"label_weatherEnabled": "Показывать данные о погоде в сообщениях",
|
|
72
72
|
"tooltip_weatherEnabled": "Если включено, данные о погоде будут отображаться в дневной статистике и сообщениях о статусе батареи",
|
|
73
|
+
"label_weatherInIntermediate": "Промежуточные уровни",
|
|
74
|
+
"tooltip_weatherInIntermediate": "Показывать погоду в промежуточных сообщениях (20%, 40%, 60%, 80%)",
|
|
75
|
+
"label_weatherInDailyStats": "Дневная статистика",
|
|
76
|
+
"tooltip_weatherInDailyStats": "Показывать погоду в дневной статистике (22:00)",
|
|
73
77
|
"label_weatherTodayText": "Погода сегодня",
|
|
74
78
|
"tooltip_weatherTodayText": "Например: daswetter.0.Day0.forecast.currentSymbol",
|
|
75
79
|
"label_weatherTodayTemp": "Температура сегодня (°C)",
|
package/admin/jsonConfig.json
CHANGED
|
@@ -433,6 +433,26 @@
|
|
|
433
433
|
"default": true,
|
|
434
434
|
"tooltip": "tooltip_weatherEnabled"
|
|
435
435
|
},
|
|
436
|
+
"weatherInIntermediate": {
|
|
437
|
+
"type": "checkbox",
|
|
438
|
+
"label": "label_weatherInIntermediate",
|
|
439
|
+
"sm": 6,
|
|
440
|
+
"md": 6,
|
|
441
|
+
"lg": 6,
|
|
442
|
+
"default": true,
|
|
443
|
+
"tooltip": "tooltip_weatherInIntermediate",
|
|
444
|
+
"disabled": "!weatherEnabled"
|
|
445
|
+
},
|
|
446
|
+
"weatherInDailyStats": {
|
|
447
|
+
"type": "checkbox",
|
|
448
|
+
"label": "label_weatherInDailyStats",
|
|
449
|
+
"sm": 6,
|
|
450
|
+
"md": 6,
|
|
451
|
+
"lg": 6,
|
|
452
|
+
"default": true,
|
|
453
|
+
"tooltip": "tooltip_weatherInDailyStats",
|
|
454
|
+
"disabled": "!weatherEnabled"
|
|
455
|
+
},
|
|
436
456
|
"weatherTodayText": {
|
|
437
457
|
"type": "objectId",
|
|
438
458
|
"label": "label_weatherTodayText",
|
package/io-package.json
CHANGED
package/main.js
CHANGED
|
@@ -981,8 +981,9 @@ class PvNotifications extends utils.Adapter {
|
|
|
981
981
|
⚡ ${production}: ${this.round(power)} W
|
|
982
982
|
${statusText}`;
|
|
983
983
|
|
|
984
|
-
// Wetter-Prognose für morgen hinzufügen (optional)
|
|
985
|
-
if (this.config.weatherEnabled !== false &&
|
|
984
|
+
// Wetter-Prognose für morgen hinzufügen (optional, nur wenn weatherInIntermediate aktiv)
|
|
985
|
+
if (this.config.weatherEnabled !== false && this.config.weatherInIntermediate !== false &&
|
|
986
|
+
(this.config.weatherTomorrowText || this.config.weatherTomorrow)) {
|
|
986
987
|
try {
|
|
987
988
|
const weatherTomorrowTextState = await this.getForeignStateAsync(this.config.weatherTomorrowText);
|
|
988
989
|
const weatherTomorrowState = await this.getForeignStateAsync(this.config.weatherTomorrow);
|
|
@@ -1041,8 +1042,9 @@ ${statusText}`;
|
|
|
1041
1042
|
🔌 ${this.translate('Feed-in')}: ${feedIn} kWh
|
|
1042
1043
|
⚡ ${this.translate('Grid consumption')}: ${gridPower} kWh`;
|
|
1043
1044
|
|
|
1044
|
-
// Wetter-Prognose für morgen hinzufügen
|
|
1045
|
-
if (this.config.weatherEnabled !== false &&
|
|
1045
|
+
// Wetter-Prognose für morgen hinzufügen (optional, nur wenn weatherInDailyStats aktiv)
|
|
1046
|
+
if (this.config.weatherEnabled !== false && this.config.weatherInDailyStats !== false &&
|
|
1047
|
+
(this.config.weatherTomorrowText || this.config.weatherTomorrow)) {
|
|
1046
1048
|
try {
|
|
1047
1049
|
const weatherTomorrowTextState = await this.getForeignStateAsync(this.config.weatherTomorrowText);
|
|
1048
1050
|
const weatherTomorrowState = await this.getForeignStateAsync(this.config.weatherTomorrow);
|