iobroker.pvnode 0.2.0 → 0.2.1
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/LICENSE +1 -1
- package/README.md +7 -1
- package/admin/jsonConfig.json +152 -17
- package/io-package.json +16 -68
- package/lib/api.js +3 -6
- package/package.json +7 -6
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026 AlPi-BRV
|
|
3
|
+
Copyright (c) 2026 AlPi-BRV <AlPi-BRV@users.noreply.github.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -78,6 +78,12 @@ Many thanks to the pvnode team for providing their service and the public API th
|
|
|
78
78
|
### **WORK IN PROGRESS**
|
|
79
79
|
-->
|
|
80
80
|
|
|
81
|
+
### 0.2.1 (2026-11-15)
|
|
82
|
+
|
|
83
|
+
- Settings translated into all ioBroker languages
|
|
84
|
+
- Publishing via npm trusted publishing (with provenance)
|
|
85
|
+
- Tested with Node.js 22, 24 and 26
|
|
86
|
+
|
|
81
87
|
### 0.2.0 (2026-11-15)
|
|
82
88
|
|
|
83
89
|
- First public release
|
|
@@ -108,6 +114,6 @@ Many thanks to the pvnode team for providing their service and the public API th
|
|
|
108
114
|
|
|
109
115
|
MIT License
|
|
110
116
|
|
|
111
|
-
Copyright (c) 2026 AlPi-BRV
|
|
117
|
+
Copyright (c) 2026 AlPi-BRV <AlPi-BRV@users.noreply.github.com>
|
|
112
118
|
|
|
113
119
|
See [LICENSE](LICENSE).
|
package/admin/jsonConfig.json
CHANGED
|
@@ -7,7 +7,16 @@
|
|
|
7
7
|
"size": 3,
|
|
8
8
|
"text": {
|
|
9
9
|
"en": "pvnode access",
|
|
10
|
-
"de": "pvnode-Zugang"
|
|
10
|
+
"de": "pvnode-Zugang",
|
|
11
|
+
"ru": "Доступ к pvnode",
|
|
12
|
+
"pt": "Acesso ao pvnode",
|
|
13
|
+
"nl": "pvnode-toegang",
|
|
14
|
+
"fr": "Accès pvnode",
|
|
15
|
+
"it": "Accesso pvnode",
|
|
16
|
+
"es": "Acceso a pvnode",
|
|
17
|
+
"pl": "Dostęp do pvnode",
|
|
18
|
+
"uk": "Доступ до pvnode",
|
|
19
|
+
"zh-cn": "pvnode 访问"
|
|
11
20
|
}
|
|
12
21
|
},
|
|
13
22
|
"apiKey": {
|
|
@@ -15,11 +24,29 @@
|
|
|
15
24
|
"visible": true,
|
|
16
25
|
"label": {
|
|
17
26
|
"en": "API key",
|
|
18
|
-
"de": "API-Key"
|
|
27
|
+
"de": "API-Key",
|
|
28
|
+
"ru": "API-ключ",
|
|
29
|
+
"pt": "Chave de API",
|
|
30
|
+
"nl": "API-sleutel",
|
|
31
|
+
"fr": "Clé API",
|
|
32
|
+
"it": "Chiave API",
|
|
33
|
+
"es": "Clave de API",
|
|
34
|
+
"pl": "Klucz API",
|
|
35
|
+
"uk": "API-ключ",
|
|
36
|
+
"zh-cn": "API 密钥"
|
|
19
37
|
},
|
|
20
38
|
"help": {
|
|
21
39
|
"en": "Starts with sk_live_ – create it at pvnode.com",
|
|
22
|
-
"de": "Beginnt mit sk_live_ – wird auf pvnode.com erzeugt"
|
|
40
|
+
"de": "Beginnt mit sk_live_ – wird auf pvnode.com erzeugt",
|
|
41
|
+
"ru": "Начинается с sk_live_ – создаётся на pvnode.com",
|
|
42
|
+
"pt": "Começa com sk_live_ – crie em pvnode.com",
|
|
43
|
+
"nl": "Begint met sk_live_ – aan te maken op pvnode.com",
|
|
44
|
+
"fr": "Commence par sk_live_ – à créer sur pvnode.com",
|
|
45
|
+
"it": "Inizia con sk_live_ – da creare su pvnode.com",
|
|
46
|
+
"es": "Empieza por sk_live_ – se crea en pvnode.com",
|
|
47
|
+
"pl": "Zaczyna się od sk_live_ – utwórz go na pvnode.com",
|
|
48
|
+
"uk": "Починається з sk_live_ – створюється на pvnode.com",
|
|
49
|
+
"zh-cn": "以 sk_live_ 开头 – 在 pvnode.com 创建"
|
|
23
50
|
},
|
|
24
51
|
"xs": 12,
|
|
25
52
|
"sm": 12,
|
|
@@ -36,11 +63,29 @@
|
|
|
36
63
|
"manual": true,
|
|
37
64
|
"label": {
|
|
38
65
|
"en": "Site",
|
|
39
|
-
"de": "Standort"
|
|
66
|
+
"de": "Standort",
|
|
67
|
+
"ru": "Объект",
|
|
68
|
+
"pt": "Local",
|
|
69
|
+
"nl": "Locatie",
|
|
70
|
+
"fr": "Site",
|
|
71
|
+
"it": "Sito",
|
|
72
|
+
"es": "Ubicación",
|
|
73
|
+
"pl": "Lokalizacja",
|
|
74
|
+
"uk": "Об'єкт",
|
|
75
|
+
"zh-cn": "站点"
|
|
40
76
|
},
|
|
41
77
|
"help": {
|
|
42
78
|
"en": "Select your pvnode site (adapter instance must be running). Leave empty if you only have one site.",
|
|
43
|
-
"de": "pvnode-Standort auswählen (Instanz muss laufen). Leer lassen, wenn es nur einen Standort gibt."
|
|
79
|
+
"de": "pvnode-Standort auswählen (Instanz muss laufen). Leer lassen, wenn es nur einen Standort gibt.",
|
|
80
|
+
"ru": "Выберите объект pvnode (экземпляр должен быть запущен). Оставьте пустым, если объект один.",
|
|
81
|
+
"pt": "Selecione o local pvnode (a instância deve estar em execução). Deixe vazio se houver apenas um local.",
|
|
82
|
+
"nl": "Kies je pvnode-locatie (instantie moet draaien). Leeg laten als er maar één locatie is.",
|
|
83
|
+
"fr": "Sélectionnez votre site pvnode (l'instance doit être démarrée). Laissez vide s'il n'y a qu'un seul site.",
|
|
84
|
+
"it": "Seleziona il sito pvnode (l'istanza deve essere in esecuzione). Lascia vuoto se c'è un solo sito.",
|
|
85
|
+
"es": "Seleccione su ubicación pvnode (la instancia debe estar en ejecución). Déjelo vacío si solo hay una.",
|
|
86
|
+
"pl": "Wybierz lokalizację pvnode (instancja musi działać). Pozostaw puste, jeśli jest tylko jedna.",
|
|
87
|
+
"uk": "Виберіть об'єкт pvnode (екземпляр має працювати). Залиште порожнім, якщо об'єкт один.",
|
|
88
|
+
"zh-cn": "选择您的 pvnode 站点(实例必须正在运行)。如果只有一个站点,请留空。"
|
|
44
89
|
},
|
|
45
90
|
"xs": 12,
|
|
46
91
|
"sm": 12,
|
|
@@ -52,7 +97,16 @@
|
|
|
52
97
|
"size": 3,
|
|
53
98
|
"text": {
|
|
54
99
|
"en": "Data",
|
|
55
|
-
"de": "Daten"
|
|
100
|
+
"de": "Daten",
|
|
101
|
+
"ru": "Данные",
|
|
102
|
+
"pt": "Dados",
|
|
103
|
+
"nl": "Gegevens",
|
|
104
|
+
"fr": "Données",
|
|
105
|
+
"it": "Dati",
|
|
106
|
+
"es": "Datos",
|
|
107
|
+
"pl": "Dane",
|
|
108
|
+
"uk": "Дані",
|
|
109
|
+
"zh-cn": "数据"
|
|
56
110
|
},
|
|
57
111
|
"newLine": true
|
|
58
112
|
},
|
|
@@ -60,7 +114,16 @@
|
|
|
60
114
|
"type": "staticText",
|
|
61
115
|
"text": {
|
|
62
116
|
"en": "Your plan is detected automatically. The adapter only requests new data when pvnode has computed a new forecast (Free: 1×/day, Light: hourly, Plus: up to every 15 min) and shows the remaining monthly requests in info.requestsRemaining.",
|
|
63
|
-
"de": "Dein Plan wird automatisch erkannt. Der Adapter fragt nur ab, wenn pvnode eine neue Prognose berechnet hat (Kostenlos: 1×/Tag, Light: stündlich, Plus: bis alle 15 min), und zeigt die restlichen Monatsanfragen in info.requestsRemaining."
|
|
117
|
+
"de": "Dein Plan wird automatisch erkannt. Der Adapter fragt nur ab, wenn pvnode eine neue Prognose berechnet hat (Kostenlos: 1×/Tag, Light: stündlich, Plus: bis alle 15 min), und zeigt die restlichen Monatsanfragen in info.requestsRemaining.",
|
|
118
|
+
"ru": "Тариф определяется автоматически. Адаптер запрашивает данные только после расчёта нового прогноза pvnode (Free: 1×/день, Light: ежечасно, Plus: до каждых 15 мин) и показывает оставшиеся запросы в info.requestsRemaining.",
|
|
119
|
+
"pt": "O seu plano é detetado automaticamente. O adaptador só pede dados quando o pvnode calculou uma nova previsão (Free: 1×/dia, Light: de hora a hora, Plus: até a cada 15 min) e mostra os pedidos mensais restantes em info.requestsRemaining.",
|
|
120
|
+
"nl": "Je abonnement wordt automatisch herkend. De adapter vraagt alleen gegevens op als pvnode een nieuwe voorspelling heeft berekend (Free: 1×/dag, Light: elk uur, Plus: tot elke 15 min) en toont de resterende maandelijkse verzoeken in info.requestsRemaining.",
|
|
121
|
+
"fr": "Votre offre est détectée automatiquement. L'adaptateur ne demande des données que lorsque pvnode a calculé une nouvelle prévision (Free : 1×/jour, Light : toutes les heures, Plus : jusqu'à toutes les 15 min) et affiche les requêtes mensuelles restantes dans info.requestsRemaining.",
|
|
122
|
+
"it": "Il piano viene rilevato automaticamente. L'adattatore richiede dati solo quando pvnode ha calcolato una nuova previsione (Free: 1×/giorno, Light: ogni ora, Plus: fino a ogni 15 min) e mostra le richieste mensili residue in info.requestsRemaining.",
|
|
123
|
+
"es": "Su plan se detecta automáticamente. El adaptador solo solicita datos cuando pvnode ha calculado una nueva previsión (Free: 1×/día, Light: cada hora, Plus: hasta cada 15 min) y muestra las solicitudes mensuales restantes en info.requestsRemaining.",
|
|
124
|
+
"pl": "Plan jest wykrywany automatycznie. Adapter pobiera dane tylko wtedy, gdy pvnode obliczy nową prognozę (Free: 1×/dzień, Light: co godzinę, Plus: nawet co 15 min) i pokazuje pozostałe miesięczne zapytania w info.requestsRemaining.",
|
|
125
|
+
"uk": "Тариф визначається автоматично. Адаптер запитує дані лише після розрахунку нового прогнозу pvnode (Free: 1×/день, Light: щогодини, Plus: до кожних 15 хв) і показує залишок запитів у info.requestsRemaining.",
|
|
126
|
+
"zh-cn": "系统会自动识别您的套餐。适配器仅在 pvnode 计算出新预测后才请求数据(Free:每天 1 次,Light:每小时,Plus:最多每 15 分钟),并在 info.requestsRemaining 中显示本月剩余请求数。"
|
|
64
127
|
},
|
|
65
128
|
"xs": 12,
|
|
66
129
|
"sm": 12,
|
|
@@ -73,7 +136,16 @@
|
|
|
73
136
|
"max": 7,
|
|
74
137
|
"label": {
|
|
75
138
|
"en": "Forecast days (0 = plan maximum)",
|
|
76
|
-
"de": "Prognosetage (0 = Maximum des Plans)"
|
|
139
|
+
"de": "Prognosetage (0 = Maximum des Plans)",
|
|
140
|
+
"ru": "Дней прогноза (0 = максимум тарифа)",
|
|
141
|
+
"pt": "Dias de previsão (0 = máximo do plano)",
|
|
142
|
+
"nl": "Voorspellingsdagen (0 = maximum van abonnement)",
|
|
143
|
+
"fr": "Jours de prévision (0 = maximum de l'offre)",
|
|
144
|
+
"it": "Giorni di previsione (0 = massimo del piano)",
|
|
145
|
+
"es": "Días de previsión (0 = máximo del plan)",
|
|
146
|
+
"pl": "Dni prognozy (0 = maksimum planu)",
|
|
147
|
+
"uk": "Днів прогнозу (0 = максимум тарифу)",
|
|
148
|
+
"zh-cn": "预测天数(0 = 套餐上限)"
|
|
77
149
|
},
|
|
78
150
|
"newLine": true,
|
|
79
151
|
"xs": 12,
|
|
@@ -85,7 +157,16 @@
|
|
|
85
157
|
"type": "checkbox",
|
|
86
158
|
"label": {
|
|
87
159
|
"en": "Weather (temperature, wind, rain …)",
|
|
88
|
-
"de": "Wetter (Temperatur, Wind, Regen …)"
|
|
160
|
+
"de": "Wetter (Temperatur, Wind, Regen …)",
|
|
161
|
+
"ru": "Погода (температура, ветер, дождь …)",
|
|
162
|
+
"pt": "Meteorologia (temperatura, vento, chuva …)",
|
|
163
|
+
"nl": "Weer (temperatuur, wind, regen …)",
|
|
164
|
+
"fr": "Météo (température, vent, pluie …)",
|
|
165
|
+
"it": "Meteo (temperatura, vento, pioggia …)",
|
|
166
|
+
"es": "Tiempo (temperatura, viento, lluvia …)",
|
|
167
|
+
"pl": "Pogoda (temperatura, wiatr, deszcz …)",
|
|
168
|
+
"uk": "Погода (температура, вітер, дощ …)",
|
|
169
|
+
"zh-cn": "天气(温度、风、降雨 …)"
|
|
89
170
|
},
|
|
90
171
|
"newLine": true,
|
|
91
172
|
"xs": 12,
|
|
@@ -97,7 +178,16 @@
|
|
|
97
178
|
"type": "checkbox",
|
|
98
179
|
"label": {
|
|
99
180
|
"en": "Irradiance (GHI, DHI, BNI)",
|
|
100
|
-
"de": "Einstrahlung (GHI, DHI, BNI)"
|
|
181
|
+
"de": "Einstrahlung (GHI, DHI, BNI)",
|
|
182
|
+
"ru": "Инсоляция (GHI, DHI, BNI)",
|
|
183
|
+
"pt": "Irradiância (GHI, DHI, BNI)",
|
|
184
|
+
"nl": "Instraling (GHI, DHI, BNI)",
|
|
185
|
+
"fr": "Irradiance (GHI, DHI, BNI)",
|
|
186
|
+
"it": "Irraggiamento (GHI, DHI, BNI)",
|
|
187
|
+
"es": "Irradiancia (GHI, DHI, BNI)",
|
|
188
|
+
"pl": "Napromieniowanie (GHI, DHI, BNI)",
|
|
189
|
+
"uk": "Інсоляція (GHI, DHI, BNI)",
|
|
190
|
+
"zh-cn": "辐照度(GHI、DHI、BNI)"
|
|
101
191
|
},
|
|
102
192
|
"xs": 12,
|
|
103
193
|
"sm": 6,
|
|
@@ -108,7 +198,16 @@
|
|
|
108
198
|
"type": "checkbox",
|
|
109
199
|
"label": {
|
|
110
200
|
"en": "Clear-sky power",
|
|
111
|
-
"de": "Leistung bei klarem Himmel"
|
|
201
|
+
"de": "Leistung bei klarem Himmel",
|
|
202
|
+
"ru": "Мощность при ясном небе",
|
|
203
|
+
"pt": "Potência com céu limpo",
|
|
204
|
+
"nl": "Vermogen bij heldere hemel",
|
|
205
|
+
"fr": "Puissance par ciel clair",
|
|
206
|
+
"it": "Potenza a cielo sereno",
|
|
207
|
+
"es": "Potencia con cielo despejado",
|
|
208
|
+
"pl": "Moc przy bezchmurnym niebie",
|
|
209
|
+
"uk": "Потужність при ясному небі",
|
|
210
|
+
"zh-cn": "晴空功率"
|
|
112
211
|
},
|
|
113
212
|
"xs": 12,
|
|
114
213
|
"sm": 6,
|
|
@@ -119,11 +218,29 @@
|
|
|
119
218
|
"type": "checkbox",
|
|
120
219
|
"label": {
|
|
121
220
|
"en": "Variability band (min/max, paid plans)",
|
|
122
|
-
"de": "Schwankungsband (min/max, Bezahlpläne)"
|
|
221
|
+
"de": "Schwankungsband (min/max, Bezahlpläne)",
|
|
222
|
+
"ru": "Диапазон колебаний (мин/макс, платные тарифы)",
|
|
223
|
+
"pt": "Banda de variabilidade (mín/máx, planos pagos)",
|
|
224
|
+
"nl": "Variatieband (min/max, betaalde abonnementen)",
|
|
225
|
+
"fr": "Bande de variabilité (min/max, offres payantes)",
|
|
226
|
+
"it": "Banda di variabilità (min/max, piani a pagamento)",
|
|
227
|
+
"es": "Banda de variabilidad (mín/máx, planes de pago)",
|
|
228
|
+
"pl": "Pasmo zmienności (min/maks, plany płatne)",
|
|
229
|
+
"uk": "Діапазон коливань (мін/макс, платні тарифи)",
|
|
230
|
+
"zh-cn": "波动区间(最小/最大,付费套餐)"
|
|
123
231
|
},
|
|
124
232
|
"help": {
|
|
125
233
|
"en": "Used automatically if your plan includes it",
|
|
126
|
-
"de": "Wird automatisch genutzt, wenn dein Plan es enthält"
|
|
234
|
+
"de": "Wird automatisch genutzt, wenn dein Plan es enthält",
|
|
235
|
+
"ru": "Используется автоматически, если входит в тариф",
|
|
236
|
+
"pt": "Usado automaticamente se o seu plano o incluir",
|
|
237
|
+
"nl": "Wordt automatisch gebruikt als je abonnement het bevat",
|
|
238
|
+
"fr": "Utilisé automatiquement si votre offre l'inclut",
|
|
239
|
+
"it": "Usato automaticamente se il piano lo include",
|
|
240
|
+
"es": "Se usa automáticamente si su plan lo incluye",
|
|
241
|
+
"pl": "Używane automatycznie, jeśli plan to obejmuje",
|
|
242
|
+
"uk": "Використовується автоматично, якщо входить у тариф",
|
|
243
|
+
"zh-cn": "如果您的套餐包含此功能,将自动使用"
|
|
127
244
|
},
|
|
128
245
|
"xs": 12,
|
|
129
246
|
"sm": 6,
|
|
@@ -134,7 +251,16 @@
|
|
|
134
251
|
"type": "checkbox",
|
|
135
252
|
"label": {
|
|
136
253
|
"en": "Create SVG charts for VIS (html.*)",
|
|
137
|
-
"de": "SVG-Diagramme für VIS erzeugen (html.*)"
|
|
254
|
+
"de": "SVG-Diagramme für VIS erzeugen (html.*)",
|
|
255
|
+
"ru": "Создавать SVG-графики для VIS (html.*)",
|
|
256
|
+
"pt": "Criar gráficos SVG para VIS (html.*)",
|
|
257
|
+
"nl": "SVG-grafieken voor VIS maken (html.*)",
|
|
258
|
+
"fr": "Créer des graphiques SVG pour VIS (html.*)",
|
|
259
|
+
"it": "Crea grafici SVG per VIS (html.*)",
|
|
260
|
+
"es": "Crear gráficos SVG para VIS (html.*)",
|
|
261
|
+
"pl": "Twórz wykresy SVG dla VIS (html.*)",
|
|
262
|
+
"uk": "Створювати SVG-графіки для VIS (html.*)",
|
|
263
|
+
"zh-cn": "为 VIS 生成 SVG 图表(html.*)"
|
|
138
264
|
},
|
|
139
265
|
"newLine": true,
|
|
140
266
|
"xs": 12,
|
|
@@ -151,7 +277,16 @@
|
|
|
151
277
|
"href": "https://pvnode.com/",
|
|
152
278
|
"text": {
|
|
153
279
|
"en": "pvnode.com",
|
|
154
|
-
"de": "pvnode.com"
|
|
280
|
+
"de": "pvnode.com",
|
|
281
|
+
"ru": "pvnode.com",
|
|
282
|
+
"pt": "pvnode.com",
|
|
283
|
+
"nl": "pvnode.com",
|
|
284
|
+
"fr": "pvnode.com",
|
|
285
|
+
"it": "pvnode.com",
|
|
286
|
+
"es": "pvnode.com",
|
|
287
|
+
"pl": "pvnode.com",
|
|
288
|
+
"uk": "pvnode.com",
|
|
289
|
+
"zh-cn": "pvnode.com"
|
|
155
290
|
},
|
|
156
291
|
"newLine": true,
|
|
157
292
|
"style": {
|
|
@@ -160,7 +295,7 @@
|
|
|
160
295
|
"display": "inline-block",
|
|
161
296
|
"marginTop": 30
|
|
162
297
|
},
|
|
163
|
-
"xs":
|
|
298
|
+
"xs": 12,
|
|
164
299
|
"sm": 6,
|
|
165
300
|
"md": 6,
|
|
166
301
|
"lg": 6
|
|
@@ -179,7 +314,7 @@
|
|
|
179
314
|
"marginBottom": 16,
|
|
180
315
|
"cursor": "pointer"
|
|
181
316
|
},
|
|
182
|
-
"xs":
|
|
317
|
+
"xs": 12,
|
|
183
318
|
"sm": 6,
|
|
184
319
|
"md": 6,
|
|
185
320
|
"lg": 6
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "pvnode",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.2.1": {
|
|
7
|
+
"en": "Settings translated into all languages, publishing via npm trusted publishing, tested with Node.js 22, 24 and 26",
|
|
8
|
+
"de": "Einstellungen in alle Sprachen übersetzt, Veröffentlichung per npm Trusted Publishing, getestet mit Node.js 22, 24 und 26",
|
|
9
|
+
"ru": "Настройки переведены на все языки, публикация через npm trusted publishing, протестировано с Node.js 22, 24 и 26",
|
|
10
|
+
"pt": "Configurações traduzidas para todos os idiomas, publicação via npm trusted publishing, testado com Node.js 22, 24 e 26",
|
|
11
|
+
"nl": "Instellingen in alle talen vertaald, publicatie via npm trusted publishing, getest met Node.js 22, 24 en 26",
|
|
12
|
+
"fr": "Paramètres traduits dans toutes les langues, publication via npm trusted publishing, testé avec Node.js 22, 24 et 26",
|
|
13
|
+
"it": "Impostazioni tradotte in tutte le lingue, pubblicazione tramite npm trusted publishing, testato con Node.js 22, 24 e 26",
|
|
14
|
+
"es": "Configuración traducida a todos los idiomas, publicación mediante npm trusted publishing, probado con Node.js 22, 24 y 26",
|
|
15
|
+
"pl": "Ustawienia przetłumaczone na wszystkie języki, publikacja przez npm trusted publishing, testowane z Node.js 22, 24 i 26",
|
|
16
|
+
"uk": "Налаштування перекладено всіма мовами, публікація через npm trusted publishing, протестовано з Node.js 22, 24 і 26",
|
|
17
|
+
"zh-cn": "设置已翻译为所有语言,通过 npm trusted publishing 发布,已在 Node.js 22、24 和 26 上测试"
|
|
18
|
+
},
|
|
6
19
|
"0.2.0": {
|
|
7
20
|
"en": "First public release: pvnode API v2 for all plans (Free, Light, Plus), per-string values, remaining energy, ready-made SVG charts for VIS",
|
|
8
21
|
"de": "Erste öffentliche Version: pvnode API v2 für alle Pläne (Kostenlos, Light, Plus), Werte pro String, Restertrag, fertige SVG-Diagramme für VIS",
|
|
@@ -15,71 +28,6 @@
|
|
|
15
28
|
"pl": "Pierwsza publiczna wersja: pvnode API v2 dla wszystkich planów (Free, Light, Plus), wartości dla stringów, pozostała energia, gotowe wykresy SVG dla VIS",
|
|
16
29
|
"uk": "Перший публічний випуск: pvnode API v2 для всіх тарифів (Free, Light, Plus), значення за стрингами, залишкова енергія, готові SVG-графіки для VIS",
|
|
17
30
|
"zh-cn": "首个公开版本:支持所有套餐(Free、Light、Plus)的 pvnode API v2,各组串数值、剩余发电量、适用于 VIS 的现成 SVG 图表"
|
|
18
|
-
},
|
|
19
|
-
"0.1.4": {
|
|
20
|
-
"en": "Ready-made SVG charts for VIS (html.today, html.tomorrow, html.days)",
|
|
21
|
-
"de": "Fertige SVG-Diagramme für VIS (html.today, html.tomorrow, html.days)",
|
|
22
|
-
"ru": "Готовые SVG-графики для VIS (html.today, html.tomorrow, html.days)",
|
|
23
|
-
"pt": "Gráficos SVG prontos para VIS (html.today, html.tomorrow, html.days)",
|
|
24
|
-
"nl": "Kant-en-klare SVG-grafieken voor VIS (html.today, html.tomorrow, html.days)",
|
|
25
|
-
"fr": "Graphiques SVG prêts à l'emploi pour VIS (html.today, html.tomorrow, html.days)",
|
|
26
|
-
"it": "Grafici SVG pronti per VIS (html.today, html.tomorrow, html.days)",
|
|
27
|
-
"es": "Gráficos SVG listos para VIS (html.today, html.tomorrow, html.days)",
|
|
28
|
-
"pl": "Gotowe wykresy SVG dla VIS (html.today, html.tomorrow, html.days)",
|
|
29
|
-
"uk": "Готові SVG-графіки для VIS (html.today, html.tomorrow, html.days)",
|
|
30
|
-
"zh-cn": "适用于 VIS 的现成 SVG 图表(html.today、html.tomorrow、html.days)"
|
|
31
|
-
},
|
|
32
|
-
"0.1.3": {
|
|
33
|
-
"en": "Much lower memory and CPU usage (date formatters are cached)",
|
|
34
|
-
"de": "Deutlich weniger Speicher- und CPU-Verbrauch (Datumsformate werden zwischengespeichert)",
|
|
35
|
-
"ru": "Значительно меньшее потребление памяти и CPU (кэширование форматов даты)",
|
|
36
|
-
"pt": "Uso de memória e CPU muito menor (formatadores de data em cache)",
|
|
37
|
-
"nl": "Veel lager geheugen- en CPU-gebruik (datumformatters worden gecachet)",
|
|
38
|
-
"fr": "Consommation mémoire et CPU nettement réduite (formateurs de date mis en cache)",
|
|
39
|
-
"it": "Uso di memoria e CPU molto inferiore (formattatori di data in cache)",
|
|
40
|
-
"es": "Uso de memoria y CPU mucho menor (formateadores de fecha en caché)",
|
|
41
|
-
"pl": "Znacznie mniejsze zużycie pamięci i CPU (buforowanie formaterów dat)",
|
|
42
|
-
"uk": "Значно менше споживання пам'яті та CPU (кешування форматів дати)",
|
|
43
|
-
"zh-cn": "内存和 CPU 占用大幅降低(缓存日期格式化器)"
|
|
44
|
-
},
|
|
45
|
-
"0.1.2": {
|
|
46
|
-
"en": "Coffee cup button in settings",
|
|
47
|
-
"de": "Kaffeebecher-Button in den Einstellungen",
|
|
48
|
-
"ru": "Кнопка с чашкой кофе в настройках",
|
|
49
|
-
"pt": "Botão de chávena de café nas configurações",
|
|
50
|
-
"nl": "Koffiekop-knop in de instellingen",
|
|
51
|
-
"fr": "Bouton tasse de café dans les paramètres",
|
|
52
|
-
"it": "Pulsante tazza di caffè nelle impostazioni",
|
|
53
|
-
"es": "Botón de taza de café en la configuración",
|
|
54
|
-
"pl": "Przycisk z filiżanką kawy w ustawieniach",
|
|
55
|
-
"uk": "Кнопка з чашкою кави в налаштуваннях",
|
|
56
|
-
"zh-cn": "设置中的咖啡杯按钮"
|
|
57
|
-
},
|
|
58
|
-
"0.1.1": {
|
|
59
|
-
"en": "Smaller donation link in settings, Buy me a coffee link added",
|
|
60
|
-
"de": "Dezenterer Spenden-Link in den Einstellungen, Buy-me-a-coffee-Link eingetragen",
|
|
61
|
-
"ru": "Более скромная ссылка для пожертвований в настройках, добавлена ссылка Buy me a coffee",
|
|
62
|
-
"pt": "Link de doação mais discreto nas configurações, link Buy me a coffee adicionado",
|
|
63
|
-
"nl": "Kleinere donatielink in de instellingen, Buy me a coffee-link toegevoegd",
|
|
64
|
-
"fr": "Lien de don plus discret dans les paramètres, lien Buy me a coffee ajouté",
|
|
65
|
-
"it": "Link per donazioni più discreto nelle impostazioni, aggiunto link Buy me a coffee",
|
|
66
|
-
"es": "Enlace de donación más discreto en la configuración, enlace Buy me a coffee añadido",
|
|
67
|
-
"pl": "Mniej widoczny link do darowizn w ustawieniach, dodano link Buy me a coffee",
|
|
68
|
-
"uk": "Менш помітне посилання для пожертв у налаштуваннях, додано посилання Buy me a coffee",
|
|
69
|
-
"zh-cn": "设置中的捐赠链接更低调,已添加 Buy me a coffee 链接"
|
|
70
|
-
},
|
|
71
|
-
"0.1.0": {
|
|
72
|
-
"en": "Initial release: pvnode API v2, all plans (Free, Light, Plus), polling based on next_poll_at",
|
|
73
|
-
"de": "Erste Version: pvnode API v2, alle Pläne (Kostenlos, Light, Plus), Abfrage nach next_poll_at",
|
|
74
|
-
"ru": "Первый выпуск: pvnode API v2, все тарифы (Free, Light, Plus), опрос по next_poll_at",
|
|
75
|
-
"pt": "Versão inicial: pvnode API v2, todos os planos (Free, Light, Plus), consulta baseada em next_poll_at",
|
|
76
|
-
"nl": "Eerste versie: pvnode API v2, alle abonnementen (Free, Light, Plus), polling op basis van next_poll_at",
|
|
77
|
-
"fr": "Première version : pvnode API v2, toutes les offres (Free, Light, Plus), interrogation selon next_poll_at",
|
|
78
|
-
"it": "Prima versione: pvnode API v2, tutti i piani (Free, Light, Plus), interrogazione basata su next_poll_at",
|
|
79
|
-
"es": "Versión inicial: pvnode API v2, todos los planes (Free, Light, Plus), consulta basada en next_poll_at",
|
|
80
|
-
"pl": "Pierwsza wersja: pvnode API v2, wszystkie plany (Free, Light, Plus), odpytywanie według next_poll_at",
|
|
81
|
-
"uk": "Перший випуск: pvnode API v2, усі тарифи (Free, Light, Plus), опитування за next_poll_at",
|
|
82
|
-
"zh-cn": "首个版本:pvnode API v2,支持所有套餐(Free、Light、Plus),按 next_poll_at 轮询"
|
|
83
31
|
}
|
|
84
32
|
},
|
|
85
33
|
"titleLang": {
|
|
@@ -109,7 +57,7 @@
|
|
|
109
57
|
"zh-cn": "来自 pvnode.com (API v2) 的光伏发电预测,包含各组串数值、剩余发电量和图表数据"
|
|
110
58
|
},
|
|
111
59
|
"authors": [
|
|
112
|
-
"AlPi-BRV"
|
|
60
|
+
"AlPi-BRV <AlPi-BRV@users.noreply.github.com>"
|
|
113
61
|
],
|
|
114
62
|
"keywords": [
|
|
115
63
|
"pvnode",
|
|
@@ -146,7 +94,7 @@
|
|
|
146
94
|
],
|
|
147
95
|
"globalDependencies": [
|
|
148
96
|
{
|
|
149
|
-
"admin": ">=7.
|
|
97
|
+
"admin": ">=7.6.17"
|
|
150
98
|
}
|
|
151
99
|
]
|
|
152
100
|
},
|
package/lib/api.js
CHANGED
|
@@ -49,8 +49,6 @@ class PvnodeApi {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
async _get(path) {
|
|
52
|
-
const ctrl = new AbortController();
|
|
53
|
-
const timer = setTimeout(() => ctrl.abort(), TIMEOUT_MS);
|
|
54
52
|
let res;
|
|
55
53
|
try {
|
|
56
54
|
res = await fetch(BASE_URL + path, {
|
|
@@ -59,12 +57,11 @@ class PvnodeApi {
|
|
|
59
57
|
'User-Agent': this.userAgent,
|
|
60
58
|
Accept: 'application/json',
|
|
61
59
|
},
|
|
62
|
-
signal:
|
|
60
|
+
signal: AbortSignal.timeout(TIMEOUT_MS),
|
|
63
61
|
});
|
|
64
62
|
} catch (err) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
clearTimeout(timer);
|
|
63
|
+
const timedOut = err.name === 'TimeoutError' || err.name === 'AbortError';
|
|
64
|
+
throw new PvnodeError(`Network error: ${timedOut ? 'timeout' : err.message}`, 0, '', null);
|
|
68
65
|
}
|
|
69
66
|
const quota = parseQuota(res.headers);
|
|
70
67
|
const text = await res.text();
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.pvnode",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "PV production forecast from pvnode.com (API v2) for ioBroker",
|
|
5
5
|
"author": {
|
|
6
|
-
"name": "AlPi-BRV"
|
|
6
|
+
"name": "AlPi-BRV",
|
|
7
|
+
"email": "AlPi-BRV@users.noreply.github.com"
|
|
7
8
|
},
|
|
8
9
|
"homepage": "https://github.com/AlPi-BRV/ioBroker.pvnode",
|
|
9
10
|
"license": "MIT",
|
|
@@ -31,17 +32,17 @@
|
|
|
31
32
|
"node": ">=22"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@iobroker/adapter-core": "^3.
|
|
35
|
+
"@iobroker/adapter-core": "^3.4.3"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@alcalzone/release-script": "^5.2.1",
|
|
38
39
|
"@alcalzone/release-script-plugin-iobroker": "^5.2.0",
|
|
39
|
-
"@alcalzone/release-script-plugin-license": "^5.2.
|
|
40
|
+
"@alcalzone/release-script-plugin-license": "^5.2.2",
|
|
40
41
|
"@alcalzone/release-script-plugin-manual-review": "^5.2.0",
|
|
41
42
|
"@iobroker/adapter-dev": "^1.5.0",
|
|
42
|
-
"@iobroker/eslint-config": "^2.0
|
|
43
|
+
"@iobroker/eslint-config": "^2.2.0",
|
|
43
44
|
"@iobroker/testing": "^6.3.2",
|
|
44
|
-
"
|
|
45
|
+
"@types/node": "^22.0.0"
|
|
45
46
|
},
|
|
46
47
|
"main": "main.js",
|
|
47
48
|
"files": [
|