forked from iobroker-community-adapters/ioBroker.rpi2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
io-package.json
executable file
·314 lines (314 loc) · 12.4 KB
/
io-package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
{
"common": {
"name": "rpi2",
"title": "RPI-Monitor",
"desc": {
"en": "RPI-Monitor",
"de": "RPI-Monitor",
"ru": "RPI-монитор",
"pt": "RPI-Monitor",
"nl": "RPI-Monitor",
"fr": "RPI-Monitor",
"it": "RPI-Monitor",
"es": "RPI-Monitor",
"pl": "Monitor RPI",
"zh-cn": "RPI-监视器"
},
"version": "1.2.0",
"news": {
"1.2.0": {
"en": "GPIO configuration as output with defined initial value",
"de": "GPIO Konfiguration als Ausgang mit definiertem Startwert",
"ru": "Конфигурация GPIO как выход с заданным начальным значением",
"pt": "Configuração GPIO como saída com valor inicial definido",
"nl": "GPIO-configuratie als uitgang met gedefinieerde beginwaarde",
"fr": "Configuration GPIO en sortie avec valeur initiale définie",
"it": "Configurazione GPIO come output con valore iniziale definito",
"es": "Configuración GPIO como salida con valor inicial definido",
"pl": "Konfiguracja GPIO jako wyjście ze zdefiniowaną wartością początkową",
"zh-cn": "GPIO配置为具有定义的初始值的输出"
},
"1.1.1": {
"en": "Error messages for not existing values are logged only once",
"de": "Fehlermeldungen für nicht vorhandene Werte werden nur einmal protokolliert",
"ru": "Сообщения об ошибках для несуществующих значений регистрируются только один раз",
"pt": "Mensagens de erro para valores não existentes são registradas somente uma vez",
"nl": "Foutmeldingen voor niet bestaande waarden worden slechts één keer vastgelegd",
"fr": "Les messages d'erreur relatifs à des valeurs non existantes ne sont consignés qu'une seule fois.",
"it": "I messaggi di errore per i valori non esistenti vengono registrati solo una volta",
"es": "Los mensajes de error para valores no existentes se registran una sola vez.",
"pl": "Komunikaty o błędach dla nieistniejących wartości są rejestrowane tylko raz",
"zh-cn": "不存在的值的错误消息仅记录一次"
},
"1.1.0": {
"en": "Support for Nodejs 10",
"de": "Unterstützung für Nodejs 10",
"ru": "Поддержка Nodejs 10",
"pt": "Suporte para Nodejs 10",
"nl": "Ondersteuning voor Nodejs 10",
"fr": "Prise en charge de Nodejs 10",
"it": "Supporto per Nodejs 10",
"es": "Soporte para Nodejs 10",
"pl": "Wsparcie dla Nodejs 10",
"zh-cn": "支持Nodejs 10"
},
"1.0.0": {
"en": "Admin3 support",
"de": "Admin3-Unterstützung",
"ru": "Поддержка Admin3",
"pt": "Suporte Admin3",
"nl": "Admin3-ondersteuning",
"fr": "Support Admin3",
"it": "Supporto per Admin3",
"es": "Soporte de Admin3",
"pl": "Obsługa Admin3",
"zh-cn": "Admin3的支持"
},
"0.3.2": {
"en": "fixed Mem available readings on Stretch",
"de": "mem available bei strech gefixt",
"ru": "fixed Mem available readings on Stretch",
"pt": "fixo Mem disponível leituras no Trecho",
"nl": "vaste Mem beschikbare metingen op Rek",
"fr": "fixe Mem disponible lectures sur le Tronçon",
"it": "fisso Mem disponibile letture Tratto",
"es": "fijo Mem disponible lecturas en el Tramo",
"pl": "stałej pamięci są dostępne czytania na odcinku",
"zh-cn": "固定Mem提供的读数在拉伸"
},
"0.3.1": {
"en": "Fixup swap_used calculation.",
"de": "Korrigiere swap_used Kalkulation",
"ru": "Исправлено вычисление swap_used",
"pt": "Ajuste swap_used de cálculo.",
"nl": "Correctie swap_used berekening.",
"fr": "Correction swap_used de calcul.",
"it": "Correzione swap_used di calcolo.",
"es": "Corrección swap_used de cálculo.",
"pl": "Obliczanie poprawki swap_used.",
"zh-cn": "链接地址swap_used计算。"
},
"0.3.0": {
"en": "Add GPIO direction indication",
"de": "GPIO Richtung States hinzugefügt",
"ru": "Добавлены состояния для индикации направления GPIO",
"pt": "Adicionar GPIO direção indicação",
"nl": "Toevoegen GPIO richting aangeven",
"fr": "Ajouter GPIO indication de la direction",
"it": "Aggiungere GPIO indicazione di direzione",
"es": "Agregar GPIO indicación de la dirección",
"pl": "Dodaj wskazaniem kierunku linii GPIO ",
"zh-cn": "添加端口方向的指示"
},
"0.2.2": {
"en": "Use BCM enumeration",
"de": "Benutze BCM Numerierung",
"ru": "Используется BCM нумерация",
"pt": "Usar o BCM enumeração",
"nl": "Gebruik BCM opsomming",
"fr": "Utiliser BCM énumération",
"it": "Uso miliardi di metri CUBI di enumerazione",
"es": "El uso de BCM enumeración",
"pl": "Używać wyliczenie mld m sześc. ",
"zh-cn": "使用BCM枚举"
},
"0.2.1": {
"en": "fix start of adapter",
"de": "Korrigiert Adapterstart",
"ru": "Исправлен старт драйвера",
"pt": "correcção início do adaptador",
"nl": "fix start van adapter",
"fr": "fix début de l'adaptateur",
"it": "fix inizio dell'adattatore",
"es": "revisión inicio de adaptador",
"pl": "naprawiono zasilacza",
"zh-cn": "修复启动的适配器"
}
},
"mode": "daemon",
"platform": "javascript/Node.js",
"os": [
"linux"
],
"loglevel": "info",
"keywords": [
"ioBroker",
"monitoring",
"raspberry",
"orangepi",
"odroid",
"bananapi",
"gpio"
],
"main": "main.js",
"authors": [
"Christian Baumgartner",
"husky-koglhof <[email protected]>"
],
"osDependencies": {
"linux": ["build-essential", "python"]
},
"dependencies": [
{"js-controller": ">=2.0.0"}
],
"license": "MIT",
"singletonHost": true,
"readme": "https://github.com/iobroker-community-adapters/ioBroker.rpi2/blob/master/README.md",
"icon": "rpi.png",
"type": "hardware",
"enabled": true,
"materialize": true,
"config": {
"minWidth": 650,
"width": 700,
"minHeight": 600,
"height": 600
},
"extIcon": "https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.rpi2/master/admin/rpi.png"
},
"native": {
"c_cpu": true,
"c_raspberry": false,
"c_memory": true,
"c_network": true,
"c_sdcard": true,
"c_swap": true,
"c_temperature": true,
"c_uptime": true,
"c_wlan": true,
"interval": 60000,
"cpu": {
"cpu_frequency": {
"command": "test -r /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq && cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq || test -r /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq && cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq || echo -1000",
"regexp": "(.*)",
"post": "$1/1000"
},
"load1,load5,load15": {
"command": "cat /proc/loadavg",
"regexp": "^(\\S+)\\s(\\S+)\\s(\\S+)",
"post": ""
},
"scaling_governor": {
"command": "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor",
"regexp": "(.*)",
"post": ""
}
},
"raspberry": {
"cpu_voltage": {
"command": "vcgencmd measure_volts core",
"regexp": "(\\d+.\\d+)V",
"post": ""
},
"mem_arm": {
"command": "vcgencmd get_mem arm",
"regexp": "(\\d+)",
"post": ""
},
"mem_gpu": {
"command": "vcgencmd get_mem gpu",
"regexp": "(\\d+)",
"post": ""
}
},
"memory": {
"memory_total": {
"command": "cat /proc/meminfo",
"regexp": "MemTotal:\\s+(\\d+)",
"post": "$1/1024"
},
"memory_free": {
"command": "cat /proc/meminfo",
"regexp": "MemFree:\\s+(\\d+)",
"post": "$1/1024"
},
"memory_available": {
"command": "cat /proc/meminfo",
"regexp": "MemAvailable:\\s+(\\d+)",
"post": "$1/1024",
"multiline": true
}
},
"network": {
"net_received": {
"command": "cat /sys/class/net/eth0/statistics/rx_bytes",
"regexp": "(.*)",
"post": "$1*-1"
},
"net_send": {
"command": "cat /sys/class/net/eth0/statistics/tx_bytes",
"regexp": "(.*)",
"post": ""
}
},
"sdcard": {
"sdcard_root_total": {
"command": "df /",
"regexp": "\\S+\\s+(\\d+).*\\/$",
"post": "$1/1024",
"multiline": true
},
"sdcard_boot_total": {
"command": "df /boot",
"regexp": "\\S+\\s+(\\d+).*\\/boot$",
"post": "$1/1024",
"multiline": true
},
"sdcard_root_used": {
"command": "df /",
"regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/$",
"post": "$1/1024",
"multiline": true
},
"sdcard_boot_used": {
"command": "df /boot",
"regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/boot$",
"post": "$1/1024",
"multiline": true
}
},
"swap": {
"swap_total": {
"command": "cat /proc/meminfo",
"regexp": "SwapTotal:\\s+(\\d+)",
"post": "$1/1024",
"multiline": true
},
"swap_used": {
"command": "cat /proc/meminfo",
"regexp": "SwapFree:\\s+(\\d+)",
"post": "(rpi.swap_total - $1)/1024",
"multiline": true
}
},
"temperature": {
"soc_temp": {
"command": "cat /sys/devices/virtual/thermal/thermal_zone0/temp",
"regexp": "(.*)",
"post": "$1/1000"
}
},
"uptime": {
"uptime": {
"command": "cat /proc/uptime",
"regexp": "(^\\S+)",
"post": ""
}
},
"wlan": {
"wifi_received": {
"command": "cat /sys/class/net/wlan0/statistics/rx_bytes",
"regexp": "(.*)",
"post": "$1*-1"
},
"wifi_send": {
"command": "cat /sys/class/net/wlan0/statistics/tx_bytes",
"regexp": "(.*)",
"post": ""
}
},
"gpios": []
},
"objects": [],
"instanceObjects": []
}