iobroker.gotify-ws 0.1.12 → 0.2.0
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 +42 -49
- package/admin/jsonConfig.json5 +356 -0
- package/build/main.js +370 -0
- package/build/main.js.map +7 -0
- package/io-package.json +29 -28
- package/package.json +48 -15
- package/admin/jsonConfig.json +0 -356
- package/lib/adapter-config.d.ts +0 -19
- package/main.js +0 -440
package/README.md
CHANGED
|
@@ -39,14 +39,14 @@ Gotify-WS receives messages and forwards them to a notification service supporte
|
|
|
39
39
|
|
|
40
40
|
Spotify-WS currently supports the following notification services
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
* e-mail
|
|
43
|
+
* Matrix
|
|
44
|
+
* Notification-Manager
|
|
45
|
+
* Pushover
|
|
46
|
+
* Discord
|
|
47
|
+
* Signal
|
|
48
|
+
* Telegram
|
|
49
|
+
* Whatsapp
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
@@ -67,74 +67,67 @@ You can then configure a notification service of your choice for forwarding.
|
|
|
67
67
|
## Changelog
|
|
68
68
|
|
|
69
69
|
<!-- ### **WORK IN PROGRESS** -->
|
|
70
|
-
### 0.
|
|
70
|
+
### 0.2.0 (2025-04-22)
|
|
71
|
+
* (simatec) Adapter rewritten in Typescript
|
|
71
72
|
|
|
72
|
-
-
|
|
73
|
-
|
|
73
|
+
### 0.1.13 (2025-04-16)
|
|
74
|
+
* (simatec) Dependencies updated
|
|
75
|
+
* (simatec) migrated to json5
|
|
74
76
|
|
|
75
|
-
### 0.1.
|
|
77
|
+
### 0.1.12 (2025-02-22)
|
|
78
|
+
* (simatec) Dependencies updated
|
|
79
|
+
* (simatec) small fix
|
|
76
80
|
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
### 0.1.11 (2025-01-09)
|
|
82
|
+
* (simatec) eslint-config fix
|
|
83
|
+
* (simatec) Code fix
|
|
84
|
+
* (simatec) Dependencies updated
|
|
85
|
+
* (simatec) Update License
|
|
81
86
|
|
|
82
87
|
### 0.1.10 (2024-11-24)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
- (simatec) eslint-config added
|
|
88
|
+
* (simatec) Dependencies updated
|
|
89
|
+
* (simatec) Responsive Design fix
|
|
90
|
+
* (simatec) Issue Action added
|
|
91
|
+
* (simatec) eslint-config added
|
|
88
92
|
|
|
89
93
|
### 0.1.9 (2024-09-26)
|
|
90
|
-
|
|
91
|
-
- (simatec) Fix for admin 7.1.5
|
|
94
|
+
* (simatec) Fix for admin 7.1.5
|
|
92
95
|
|
|
93
96
|
### 0.1.8 (2024-09-24)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
- (simatec) Cleaned code
|
|
97
|
+
* (simatec) Responsive Design fix
|
|
98
|
+
* (simatec) Cleaned code
|
|
97
99
|
|
|
98
100
|
### 0.1.7 (2024-09-16)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
- (simatec) Responsive Design fix
|
|
101
|
+
* (simatec) Dependencies updated
|
|
102
|
+
* (simatec) Responsive Design fix
|
|
102
103
|
|
|
103
104
|
### 0.1.6 (2024-09-10)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
- (simatec) Responsive Design added
|
|
105
|
+
* (simatec) Fix Adapter Check
|
|
106
|
+
* (simatec) Dependencies updated
|
|
107
|
+
* (simatec) Responsive Design added
|
|
108
108
|
|
|
109
109
|
### 0.1.5 (2024-07-22)
|
|
110
|
-
|
|
111
|
-
- (simatec) small fix
|
|
110
|
+
* (simatec) small fix
|
|
112
111
|
|
|
113
112
|
### 0.1.4 (2024-07-19)
|
|
114
|
-
|
|
115
|
-
- (simatec) Dependencies updated
|
|
113
|
+
* (simatec) Dependencies updated
|
|
116
114
|
|
|
117
115
|
### 0.1.3 (2024-07-17)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
- (simatec) Fix Timeout
|
|
116
|
+
* (simatec) Fix Test & Release
|
|
117
|
+
* (simatec) Fix Timeout
|
|
121
118
|
|
|
122
119
|
### 0.1.2 (2024-06-26)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- (simatec) Notification-Manager added
|
|
120
|
+
* (simatec) Fix io-package
|
|
121
|
+
* (simatec) Notification-Manager added
|
|
126
122
|
|
|
127
123
|
### 0.1.1 (2024-06-19)
|
|
128
|
-
|
|
129
|
-
- (simatec) Fix Branch
|
|
124
|
+
* (simatec) Fix Branch
|
|
130
125
|
|
|
131
126
|
### 0.1.0 (2024-06-19)
|
|
132
|
-
|
|
133
|
-
- (simatec) First Release
|
|
127
|
+
* (simatec) First Release
|
|
134
128
|
|
|
135
129
|
### 0.0.1 (2024-03-15)
|
|
136
|
-
|
|
137
|
-
- (simatec) initial release
|
|
130
|
+
* (simatec) initial release
|
|
138
131
|
|
|
139
132
|
---
|
|
140
133
|
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
{
|
|
2
|
+
i18n: true,
|
|
3
|
+
type: 'panel',
|
|
4
|
+
items: {
|
|
5
|
+
gotifyDesc: {
|
|
6
|
+
type: 'staticText',
|
|
7
|
+
text: 'Gotify web socket for connection to various notification systems',
|
|
8
|
+
newLine: true,
|
|
9
|
+
style: {
|
|
10
|
+
fontSize: 20,
|
|
11
|
+
},
|
|
12
|
+
xs: 12,
|
|
13
|
+
sm: 10,
|
|
14
|
+
md: 10,
|
|
15
|
+
lg: 10,
|
|
16
|
+
xl: 10,
|
|
17
|
+
},
|
|
18
|
+
gotifySettings: {
|
|
19
|
+
newLine: true,
|
|
20
|
+
type: 'header',
|
|
21
|
+
text: 'Gotify Settings',
|
|
22
|
+
size: 2,
|
|
23
|
+
xs: 12,
|
|
24
|
+
sm: 12,
|
|
25
|
+
md: 12,
|
|
26
|
+
lg: 12,
|
|
27
|
+
xl: 12,
|
|
28
|
+
},
|
|
29
|
+
ip: {
|
|
30
|
+
type: 'text',
|
|
31
|
+
label: 'Gotify IP or Domain',
|
|
32
|
+
xs: 12,
|
|
33
|
+
sm: 12,
|
|
34
|
+
md: 8,
|
|
35
|
+
lg: 4,
|
|
36
|
+
xl: 4,
|
|
37
|
+
help: 'Gotify IP or Domain',
|
|
38
|
+
validator: 'data.ip',
|
|
39
|
+
validatorNoSaveOnError: true,
|
|
40
|
+
placeholder: '10.250.1.10',
|
|
41
|
+
newLine: true,
|
|
42
|
+
},
|
|
43
|
+
port: {
|
|
44
|
+
xs: 12,
|
|
45
|
+
sm: 12,
|
|
46
|
+
md: 8,
|
|
47
|
+
lg: 4,
|
|
48
|
+
xl: 4,
|
|
49
|
+
min: 1,
|
|
50
|
+
max: 65535,
|
|
51
|
+
help: 'Gotify Port',
|
|
52
|
+
type: 'number',
|
|
53
|
+
validator: 'data.port',
|
|
54
|
+
validatorNoSaveOnError: true,
|
|
55
|
+
placeholder: '8080',
|
|
56
|
+
label: 'Gotify Port',
|
|
57
|
+
},
|
|
58
|
+
token: {
|
|
59
|
+
type: 'password',
|
|
60
|
+
visible: true,
|
|
61
|
+
label: 'Gotify Token',
|
|
62
|
+
xs: 12,
|
|
63
|
+
sm: 12,
|
|
64
|
+
md: 8,
|
|
65
|
+
lg: 4,
|
|
66
|
+
xl: 4,
|
|
67
|
+
validator: 'data.token',
|
|
68
|
+
validatorNoSaveOnError: true,
|
|
69
|
+
help: 'Gotify Token',
|
|
70
|
+
},
|
|
71
|
+
notificationSettings: {
|
|
72
|
+
newLine: true,
|
|
73
|
+
type: 'header',
|
|
74
|
+
text: 'Notification Settings',
|
|
75
|
+
size: 2,
|
|
76
|
+
xs: 12,
|
|
77
|
+
sm: 12,
|
|
78
|
+
md: 12,
|
|
79
|
+
lg: 12,
|
|
80
|
+
xl: 12,
|
|
81
|
+
},
|
|
82
|
+
notificationType: {
|
|
83
|
+
type: 'select',
|
|
84
|
+
label: 'Notification type',
|
|
85
|
+
xs: 12,
|
|
86
|
+
sm: 12,
|
|
87
|
+
md: 8,
|
|
88
|
+
lg: 4,
|
|
89
|
+
xl: 4,
|
|
90
|
+
help: 'Notification type',
|
|
91
|
+
options: [
|
|
92
|
+
{
|
|
93
|
+
label: 'E-Mail',
|
|
94
|
+
value: 'email',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: 'Matrix',
|
|
98
|
+
value: 'matrix-org',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: 'Notification-Manager',
|
|
102
|
+
value: 'notification-manager',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: 'Pushover',
|
|
106
|
+
value: 'pushover',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: 'Discord',
|
|
110
|
+
value: 'discord',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
label: 'Signal',
|
|
114
|
+
value: 'signal-cmb',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: 'Telegram',
|
|
118
|
+
value: 'telegram',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: 'Whatsapp',
|
|
122
|
+
value: 'whatsapp-cmb',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
newLine: true,
|
|
126
|
+
},
|
|
127
|
+
emailInstance: {
|
|
128
|
+
type: 'selectSendTo',
|
|
129
|
+
command: 'sendToInstance',
|
|
130
|
+
jsonData: '{ "type": "email" }',
|
|
131
|
+
hidden: "data.notificationType !== 'email'",
|
|
132
|
+
label: 'E-Mail Instance',
|
|
133
|
+
xs: 12,
|
|
134
|
+
sm: 12,
|
|
135
|
+
md: 8,
|
|
136
|
+
lg: 4,
|
|
137
|
+
xl: 4,
|
|
138
|
+
help: 'E-Mail Instance',
|
|
139
|
+
},
|
|
140
|
+
emailReceiver: {
|
|
141
|
+
type: 'text',
|
|
142
|
+
hidden: "data.notificationType !== 'email'",
|
|
143
|
+
label: 'E-Mail Receiver',
|
|
144
|
+
xs: 12,
|
|
145
|
+
sm: 12,
|
|
146
|
+
md: 8,
|
|
147
|
+
lg: 4,
|
|
148
|
+
xl: 4,
|
|
149
|
+
help: 'E-Mail Receiver',
|
|
150
|
+
validator: 'data.emailReceiver',
|
|
151
|
+
validatorNoSaveOnError: true,
|
|
152
|
+
placeholder: 'xxxx@xxxx.com',
|
|
153
|
+
newLine: true,
|
|
154
|
+
},
|
|
155
|
+
emailSender: {
|
|
156
|
+
type: 'text',
|
|
157
|
+
hidden: "data.notificationType !== 'email'",
|
|
158
|
+
label: 'E-Mail Sender',
|
|
159
|
+
xs: 12,
|
|
160
|
+
sm: 12,
|
|
161
|
+
md: 8,
|
|
162
|
+
lg: 4,
|
|
163
|
+
xl: 4,
|
|
164
|
+
validator: 'data.emailSender',
|
|
165
|
+
validatorNoSaveOnError: true,
|
|
166
|
+
placeholder: 'xxxx@xxxx.com',
|
|
167
|
+
help: 'E-Mail Sender',
|
|
168
|
+
},
|
|
169
|
+
matrixInstance: {
|
|
170
|
+
type: 'selectSendTo',
|
|
171
|
+
command: 'sendToInstance',
|
|
172
|
+
jsonData: '{ "type": "matrix-org" }',
|
|
173
|
+
hidden: "data.notificationType !== 'matrix-org'",
|
|
174
|
+
label: 'Matrix Instance',
|
|
175
|
+
xs: 12,
|
|
176
|
+
sm: 12,
|
|
177
|
+
md: 8,
|
|
178
|
+
lg: 4,
|
|
179
|
+
xl: 4,
|
|
180
|
+
help: 'Matrix Instance',
|
|
181
|
+
},
|
|
182
|
+
notificationManagerInstance: {
|
|
183
|
+
type: 'selectSendTo',
|
|
184
|
+
command: 'sendToInstance',
|
|
185
|
+
jsonData: '{ "type": "notification-manager" }',
|
|
186
|
+
hidden: "data.notificationType !== 'notification-manager'",
|
|
187
|
+
label: 'Notification-Manager Instance',
|
|
188
|
+
xs: 12,
|
|
189
|
+
sm: 12,
|
|
190
|
+
md: 8,
|
|
191
|
+
lg: 4,
|
|
192
|
+
xl: 4,
|
|
193
|
+
help: 'Notification-Manager Instance',
|
|
194
|
+
},
|
|
195
|
+
pushoverInstance: {
|
|
196
|
+
type: 'selectSendTo',
|
|
197
|
+
command: 'sendToInstance',
|
|
198
|
+
jsonData: '{ "type": "pushover" }',
|
|
199
|
+
hidden: "data.notificationType !== 'pushover'",
|
|
200
|
+
label: 'Pushover Instance',
|
|
201
|
+
xs: 12,
|
|
202
|
+
sm: 12,
|
|
203
|
+
md: 8,
|
|
204
|
+
lg: 4,
|
|
205
|
+
xl: 4,
|
|
206
|
+
help: 'Pushover Instance',
|
|
207
|
+
},
|
|
208
|
+
pushoverDeviceID: {
|
|
209
|
+
type: 'text',
|
|
210
|
+
hidden: "data.notificationType !== 'pushover'",
|
|
211
|
+
label: 'Device ID',
|
|
212
|
+
xs: 12,
|
|
213
|
+
sm: 12,
|
|
214
|
+
md: 8,
|
|
215
|
+
lg: 4,
|
|
216
|
+
xl: 4,
|
|
217
|
+
help: 'Device ID',
|
|
218
|
+
},
|
|
219
|
+
pushoverSilentNotice: {
|
|
220
|
+
newLine: true,
|
|
221
|
+
type: 'checkbox',
|
|
222
|
+
hidden: "data.notificationType !== 'pushover'",
|
|
223
|
+
label: 'Silent Notice',
|
|
224
|
+
xs: 12,
|
|
225
|
+
sm: 12,
|
|
226
|
+
md: 8,
|
|
227
|
+
lg: 4,
|
|
228
|
+
xl: 4,
|
|
229
|
+
},
|
|
230
|
+
discordInstance: {
|
|
231
|
+
type: 'selectSendTo',
|
|
232
|
+
command: 'sendToInstance',
|
|
233
|
+
jsonData: '{ "type": "discord" }',
|
|
234
|
+
hidden: "data.notificationType !== 'discord'",
|
|
235
|
+
label: 'Discord Instance',
|
|
236
|
+
xs: 12,
|
|
237
|
+
sm: 12,
|
|
238
|
+
md: 8,
|
|
239
|
+
lg: 4,
|
|
240
|
+
xl: 4,
|
|
241
|
+
help: 'Discord Instance',
|
|
242
|
+
},
|
|
243
|
+
discordTarget: {
|
|
244
|
+
type: 'selectSendTo',
|
|
245
|
+
command: 'sendToDiscordTarget',
|
|
246
|
+
jsonData: '{ "instance": "${data.discordInstance}" }',
|
|
247
|
+
hidden: "data.notificationType !== 'discord'",
|
|
248
|
+
label: 'Discord Target',
|
|
249
|
+
xs: 12,
|
|
250
|
+
sm: 12,
|
|
251
|
+
md: 8,
|
|
252
|
+
lg: 4,
|
|
253
|
+
xl: 4,
|
|
254
|
+
default: 'none',
|
|
255
|
+
help: 'Discord Target',
|
|
256
|
+
},
|
|
257
|
+
signalInstance: {
|
|
258
|
+
type: 'selectSendTo',
|
|
259
|
+
command: 'sendToInstance',
|
|
260
|
+
jsonData: '{ "type": "signal-cmb" }',
|
|
261
|
+
hidden: "data.notificationType !== 'signal-cmb'",
|
|
262
|
+
label: 'Signal Instance',
|
|
263
|
+
xs: 12,
|
|
264
|
+
sm: 12,
|
|
265
|
+
md: 8,
|
|
266
|
+
lg: 4,
|
|
267
|
+
xl: 4,
|
|
268
|
+
help: 'Signal Instance',
|
|
269
|
+
},
|
|
270
|
+
telegramInstance: {
|
|
271
|
+
type: 'selectSendTo',
|
|
272
|
+
command: 'sendToInstance',
|
|
273
|
+
jsonData: '{ "type": "telegram" }',
|
|
274
|
+
hidden: "data.notificationType !== 'telegram'",
|
|
275
|
+
label: 'Telegram Instance',
|
|
276
|
+
xs: 12,
|
|
277
|
+
sm: 12,
|
|
278
|
+
md: 8,
|
|
279
|
+
lg: 4,
|
|
280
|
+
xl: 4,
|
|
281
|
+
help: 'Telegram Instance',
|
|
282
|
+
},
|
|
283
|
+
telegramUser: {
|
|
284
|
+
type: 'selectSendTo',
|
|
285
|
+
command: 'sendToTelegramUser',
|
|
286
|
+
jsonData: '{ "instance": "${data.telegramInstance}" }',
|
|
287
|
+
hidden: "data.notificationType !== 'telegram'",
|
|
288
|
+
label: 'Telegram User',
|
|
289
|
+
noTranslation: false,
|
|
290
|
+
xs: 12,
|
|
291
|
+
sm: 12,
|
|
292
|
+
md: 8,
|
|
293
|
+
lg: 4,
|
|
294
|
+
xl: 4,
|
|
295
|
+
help: 'Telegram User',
|
|
296
|
+
},
|
|
297
|
+
whatsappInstance: {
|
|
298
|
+
type: 'selectSendTo',
|
|
299
|
+
command: 'sendToInstance',
|
|
300
|
+
jsonData: '{ "type": "whatsapp-cmb" }',
|
|
301
|
+
hidden: "data.notificationType !== 'whatsapp-cmb'",
|
|
302
|
+
label: 'Whatsapp Instance',
|
|
303
|
+
xs: 12,
|
|
304
|
+
sm: 12,
|
|
305
|
+
md: 8,
|
|
306
|
+
lg: 4,
|
|
307
|
+
xl: 4,
|
|
308
|
+
help: 'Whatsapp Instance',
|
|
309
|
+
},
|
|
310
|
+
_helpLine2: {
|
|
311
|
+
newLine: true,
|
|
312
|
+
type: 'divider',
|
|
313
|
+
color: 'secondary',
|
|
314
|
+
xs: 12,
|
|
315
|
+
sm: 12,
|
|
316
|
+
md: 12,
|
|
317
|
+
lg: 12,
|
|
318
|
+
xl: 12,
|
|
319
|
+
},
|
|
320
|
+
_donateTxt: {
|
|
321
|
+
type: 'staticText',
|
|
322
|
+
text: 'If you like this project and would like to support its development, you are welcome to leave a donation.',
|
|
323
|
+
newLine: true,
|
|
324
|
+
xs: 12,
|
|
325
|
+
sm: 12,
|
|
326
|
+
md: 12,
|
|
327
|
+
lg: 12,
|
|
328
|
+
xl: 12,
|
|
329
|
+
},
|
|
330
|
+
_donate: {
|
|
331
|
+
type: 'staticImage',
|
|
332
|
+
tooltip: 'PayPal.Me',
|
|
333
|
+
noTranslation: true,
|
|
334
|
+
href: 'https://paypal.me/mk1676',
|
|
335
|
+
src: 'https://img.shields.io/badge/paypal-donate%20%7C%20spenden-blue.svg',
|
|
336
|
+
newLine: true,
|
|
337
|
+
xs: 7,
|
|
338
|
+
sm: 3,
|
|
339
|
+
md: 3,
|
|
340
|
+
lg: 1.2,
|
|
341
|
+
xl: 1.2,
|
|
342
|
+
},
|
|
343
|
+
_githubSponsor: {
|
|
344
|
+
type: 'staticImage',
|
|
345
|
+
tooltip: 'GitHub Sponsors',
|
|
346
|
+
noTranslation: true,
|
|
347
|
+
href: 'https://github.com/sponsors/simatec',
|
|
348
|
+
src: 'https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86',
|
|
349
|
+
xs: 5,
|
|
350
|
+
sm: 2,
|
|
351
|
+
md: 2,
|
|
352
|
+
lg: 0.8,
|
|
353
|
+
xl: 0.8,
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
}
|