iobroker.ring 5.0.0-alpha.0 → 5.0.1-beta.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.
Files changed (40) hide show
  1. package/README.md +92 -166
  2. package/admin/admin.d.ts +87 -68
  3. package/admin/camera-photo-6.png +0 -0
  4. package/admin/convert.js +434 -0
  5. package/admin/i18n/de.json +43 -0
  6. package/admin/i18n/en.json +43 -0
  7. package/admin/i18n/es.json +43 -0
  8. package/admin/i18n/fr.json +43 -0
  9. package/admin/i18n/it.json +43 -0
  10. package/admin/i18n/nl.json +43 -0
  11. package/admin/i18n/pl.json +43 -0
  12. package/admin/i18n/pt.json +43 -0
  13. package/admin/i18n/ru.json +43 -0
  14. package/admin/i18n/uk.json +43 -0
  15. package/admin/i18n/zh-cn.json +43 -0
  16. package/admin/index_m.html +151 -32
  17. package/admin/jsonConfig.json +367 -0
  18. package/admin/tab_m.html +38 -0
  19. package/admin/tab_m.js +145 -0
  20. package/admin/tsconfig.json +5 -3
  21. package/admin/words.js +257 -23
  22. package/build/lib/constants.js +45 -29
  23. package/build/lib/constants.js.map +1 -1
  24. package/build/lib/ownRingCamera.js +378 -94
  25. package/build/lib/ownRingCamera.js.map +1 -1
  26. package/build/lib/ownRingDevice.js +1 -1
  27. package/build/lib/ownRingDevice.js.map +1 -1
  28. package/build/lib/ownRingIntercom.js +4 -4
  29. package/build/lib/ownRingIntercom.js.map +1 -1
  30. package/build/lib/ownRingLocation.js +9 -15
  31. package/build/lib/ownRingLocation.js.map +1 -1
  32. package/build/lib/ringApiClient.js +11 -8
  33. package/build/lib/ringApiClient.js.map +1 -1
  34. package/build/lib/services/file-service.js +15 -17
  35. package/build/lib/services/file-service.js.map +1 -1
  36. package/build/lib/tools.js +3 -3
  37. package/build/main.js +51 -52
  38. package/build/main.js.map +1 -1
  39. package/io-package.json +51 -36
  40. package/package.json +26 -16
package/README.md CHANGED
@@ -9,17 +9,14 @@
9
9
 
10
10
  [![NPM](https://nodei.co/npm/iobroker.ring.png?downloads=true)](https://nodei.co/npm/iobroker.ring/)
11
11
 
12
- Requires Admin v4 and `node 16.x`.
13
-
14
- The Ring adapter works with Ring devices like the Ring Video Doorbell and Ring Cam and shows if someone rings the
15
- doorbell or if motion is detected. The Ring Video Doorbell or Cam sends a videostream if a motion or doorbell ist
16
- detected.
12
+ The Ring adapter works with Ring devices like the Ring Video Doorbell and Ring Cam and shows if someone rings the doorbell or if motion is detected.
13
+ The Ring Video Doorbell or Cam sends a videostream if a motion or doorbell is detected.
17
14
 
18
15
  ## Install & Configuration
19
16
 
20
- After installing the Adapter you have to enter your Email and Password of your [ring.com](https://ring.com) Account and
21
- a Token. Ring now requires the use of Two-Factor Auth (2fa) for all accounts. For getting the token please do following
22
- on your shell.
17
+ After installing the Adapter, you have to enter your Token.
18
+ Ring now requires the use of Two-Factor Authentication (2fa) for all accounts.
19
+ For getting the token, please do following on your shell.
23
20
 
24
21
  ```shell
25
22
  npx -p ring-client-api ring-auth-cli
@@ -46,320 +43,263 @@ a counter, timestamp, ring id or kind of ring.
46
43
 
47
44
  ### FAQ
48
45
 
49
- #### I don't recieve events, snapshots and videos on motion or detected person
46
+ #### I don't receive events, snapshots and videos on motion or detected person
50
47
 
51
- Congrats it's very likely that your current token was put on a blacklist by ring, denying you the push notification
52
- you´d need.
53
- Best way to resolve this is to remove any previous browsers/adapter tokens on the ring website and generating a new
48
+ Congrats, it's very likely that your current token was put on a blacklist by ring, denying you the push notification you would need.
49
+ The best way to resolve this is to remove any previous browsers/adapter tokens on the ring website and generate a new
54
50
  token for the adapter.
55
51
 
56
- In order for this adapter to properly react on events Ring must send the push notification to the
52
+ In order for this adapter to properly react on events, Ring must send the push notification to the
57
53
  used [Ring Api Client](https://github.com/dgreif/ring) for this adapter to react on it. The logic in this adapter was
58
- checked multiple times and works for plenty users, so if you experience issues regarding missing events it's unlikely
54
+ checked multiple times and works for plenty of users, so if you experience issues regarding missing events, it's unlikely
59
55
  the fault of this adapter.
60
56
 
61
57
  ### V3 Rewrite Breaking Changes
62
58
 
63
- 1. The Device Names got extended by their description (e.g. from `Device 1234567`
64
- to `Device 1234567 ("Floodlight Garden")`)
59
+ 1. The Device Names got extended by their description (e.g., from `Device 1234567` to `Device 1234567 ("Floodlight Garden")`)
65
60
  2. Snapshot/Livestream Data is now in a respective channel, containing the other data points.
66
61
  3. The snapshot/livestream object got changed from type meta to state with type file.
67
- 4. Events (Motion, Ding, etc.) are now in a respective channel.
62
+ 4. Events (Motion, Ding, etc.) are now in the respective channel.
68
63
  5. Due to `ring-api` dropping the support for node before `v16.x` this adapter needs `node v16.x` or `node v18.x`
69
- 6. Active refreshes are reduced to once every 2 hours, as we are listening/reacting on events.
64
+ 6. Active refreshes are reduced to once every 2 hours, as we are listening/reacting to events.
70
65
 
71
66
  ### SIP (before Version 3.x)
72
67
 
73
68
  You can use the SIP Information for a SIP Video Conference with your SIP client.
74
69
  The adapter will not provide all ring devices because the used API does not include all ring devices.
75
70
 
76
- You can use for example the Blink SIP client on [http://icanblink.com/](http://icanblink.com/). To get video working go
77
- into Blink's Preferences and under "Accounts", switch the tab to "Media" and deselect "Encrypt audio and video" under "
78
- RTP Options". Be careful the SIP information expire after a few seconds!
79
- Hopefully I will be able to support a video stream soon. Unfortunately [ring.com](https://ring.com) does not have an
80
- official API that support this feature.
71
+ You can use, for example, the Blink SIP client on [http://icanblink.com/](http://icanblink.com/).
72
+ To get video working go into Blink's Preferences and under "Accounts", switch the tab to "Media" and deselect "Encrypt audio and video" under "RTP Options".
73
+ Be careful, the SIP information expires after a few seconds!
74
+ Hopefully I will be able to support a video stream soon.
75
+ Unfortunately, [ring.com](https://ring.com) does not have an official API that support this feature.
81
76
  If you press the `livestream request` button you get new SIP Information for building up a SIP Video Call session.
82
- If you are using the [ring.com](https://ring.com) cloud you find under history a http link to your last motion /
83
- doorbell recorded video.
77
+ If you are using the [ring.com](https://ring.com) cloud, you find under history a http link to your last motion / doorbell recorded video.
84
78
 
85
79
  ## Changelog
86
-
87
80
  <!--
88
81
  Placeholder for the next version (at the beginning of the line):
89
82
  ### **WORK IN PROGRESS**
90
83
  -->
91
- ### 5.0.0-alpha.0 (2023-09-16)
84
+ ### 5.0.1-beta.0 (2023-10-14)
85
+ * (bluefox) migrated the configuration to JSON
86
+ * (crocri) many changes for livestream and high-definition screenshots
87
+ * (theimo1221) Refactoring and cleanup
92
88
 
89
+ ### 5.0.0-Beta (2023-10-10)
93
90
  * (crocri) Ding event is now working again for Ring-Intercom
94
91
  * (crocri) auto livestream creation takes now value from config, before fix
95
- * (crocri) snapshot now async, because snapshot and livestream in parallel does not work
92
+ * (crocri) snapshot now async, because snapshot and livestream in parallel do not work
96
93
  * (crocri) livestream duration now settable via tree entry will be auto reset via livestream request.
97
94
  * (crocri) two new config entries auto_livestream and auto_snapshot to disable auto creation of livestream and snapshot.
98
95
  * (crocri) some minor corrections to code
99
96
  * (crocri) Removed binary States
100
- * (crocri) Improvements for vis compatibility
97
+ * (crocri) Improvements for vis compatibility done
101
98
  * (theimo1221) Refactoring and cleanup
102
- * (theimo1221) Update Packages
99
+ * (theimo1221) Updated Packages
103
100
 
104
101
  ### 4.0.0 (2023-08-22)
105
-
106
102
  * (theimo1221) !!Breaking Change!! From now on Node 18 or 20 is required, Node 16 is not supported anymore
107
- * (theimo1221) Update Ring-Api to V12 which needs Node 18 or 20
108
- * (theimo1221) Update Packages
103
+ * (theimo1221) Updated Ring-Api to v12 which needs Node 18 or 20
104
+ * (theimo1221) Updated Packages
109
105
 
110
106
  ### 3.4.1 (2023-08-06)
111
-
112
107
  * (theimo1221) Compliance to adapter-checker
113
- * (theimo1221) Update Packages
108
+ * (theimo1221) Updated Packages
114
109
  * (theimo1221) Debounce Doorbell Presses
115
- * (theimo1221) Add Support for cocoa_doorbell_v2
116
- * (theimo1221) Add Support for stickup_cam_longfin
117
- * (theimo1221) Fix compatibility and recompile
110
+ * (theimo1221) Added Support for cocoa_doorbell_v2
111
+ * (theimo1221) Added Support for stickup_cam_longfin
112
+ * (theimo1221) Fixed compatibility and recompile
118
113
 
119
114
  ### 3.4.0 (2023-06-09)
120
-
121
- * (theimo1221) Update Packages (which allows node 20 now)
115
+ * (theimo1221) Updated Packages (which allows node 20 now)
122
116
 
123
117
  ### 3.3.1 (2023-05-18)
124
-
125
- * (theimo1221) Update Packages
118
+ * (theimo1221) Updated Packages
126
119
 
127
120
  ### 3.3.0 (2023-04-02)
128
-
129
- * (theimo1221) Update Packages
130
- * (theimo1221) Device with Type stickup_cam_longfin not yet supported #483
121
+ * (theimo1221) Updated Packages
122
+ * (theimo1221) Device with Type stickup_cam_longfin didn't yet support #483
131
123
 
132
124
  ### 3.2.7 (2023-03-22)
133
-
134
- * (foxriver76) prepare js-controller v5
125
+ * (foxriver76) prepared js-controller v5
135
126
 
136
127
  ### 3.2.6 (2023-02-18)
137
-
138
- * (theimo1221) Improve behaviour on initial Location load fail
139
- * (theimo1221) Update Packages
128
+ * (theimo1221) Improve behavior on initial Location load fail
129
+ * (theimo1221) Updated Packages
140
130
 
141
131
  ### 3.2.5 (2023-01-28)
142
-
143
- * (theimo1221) Update Packages
132
+ * (theimo1221) Updated Packages
144
133
 
145
134
  ### 3.2.4 (2022-12-15)
146
-
147
135
  * (theimo1221) #385 Fix for Unlock Request on intercoms
148
136
 
149
137
  ### 3.2.3 (2022-12-15)
150
-
151
- * (theimo1221) Update Packages
138
+ * (theimo1221) Updated Packages
152
139
  * (theimo1221) #385 Experimental Ring Intercom support
153
140
 
154
141
  ### 3.2.2 (2022-12-02)
155
-
156
- * (theimo1221) #373 Fix event receiving for iobroker instances without unique hostname
142
+ * (theimo1221) #373 Fix event receiving for iobroker instances without a unique hostname
157
143
 
158
144
  ### 3.2.1 (2022-12-02)
159
-
160
145
  * (theimo1221) Redeploy
161
146
 
162
147
  ### 3.2.0 (2022-12-02)
163
-
164
- * (theimo1221) Update Packages
148
+ * (theimo1221) Updated Packages
165
149
  * (theimo1221) #373 Increase logging and change recording order on Doorbell Event
166
150
 
167
151
  ### 3.1.9 (2022-11-20)
168
-
169
152
  * (theimo1221) #395 Resolve Package-lock.json issues
170
153
 
171
154
  ### 3.1.8 (2022-11-20)
172
-
173
- * (theimo1221) Update Packages
174
- * (theimo1221) Compliance to newest ring api version
155
+ * (theimo1221) Updated Packages
156
+ * (theimo1221) Compliance to the newest ring api version
175
157
 
176
158
  ### 3.1.7 (2022-10-28)
177
-
178
- * (theimo1221) Update Packages
159
+ * (theimo1221) Updated Packages
179
160
 
180
161
  ### 3.1.6 (2022-10-28)
181
-
182
162
  * (theimo1221) Inline subscription instead of properties for Event observer
183
163
 
184
164
  ### 3.1.5 (2022-10-16)
185
-
186
- * (theimo1221) Update Packages
165
+ * (theimo1221) Updated Packages
187
166
 
188
167
  ### 3.1.4 (2022-10-16)
189
-
190
168
  * (theimo1221) #376 Handling when reconnect fails
191
169
 
192
170
  ### 3.1.3 (2022-10-04)
193
-
194
- * (theimo1221) Update Packages
171
+ * (theimo1221) Updated Packages
195
172
 
196
173
  ### 3.1.2 (2022-09-22)
197
-
198
- * (theimo1221) Update Packages
199
- * (theimo1221) Fix an issue with floodlight control
174
+ * (theimo1221) Updated Packages
175
+ * (theimo1221) Fixed an issue with floodlight control
200
176
 
201
177
  ### 3.1.1 (2022-08-11)
202
-
203
- * (theimo1221) Improve Doorbell Event Logging
178
+ * (theimo1221) Improved Doorbell Event Logging
204
179
 
205
180
  ### 3.1.0 (2022-08-04)
206
-
207
181
  * (bluefox) Allowed to be used with node.js 18
208
182
 
209
183
  ### 3.0.5 (2022-07-05)
210
-
211
- * (theimo1221) Improve Log Message on failed Snapshots during event handling
212
- * (theimo1221) Add Support for doorbell oyster
184
+ * (theimo1221) Improved Log Message on failed Snapshots during event handling
185
+ * (theimo1221) Added Support for doorbell oyster
213
186
 
214
187
  ### 3.0.4 (2022-06-17)
215
-
216
- * (theimo1221) Fix Edge Case resulting in lamps being permanently on
188
+ * (theimo1221) Fixed Edge Case resulting in lamps being permanently on
217
189
 
218
190
  ### 3.0.3 (2022-06-16)
219
-
220
- * (theimo1221) Implement location mode
191
+ * (theimo1221) Implemented location mode
221
192
 
222
193
  ### 3.0.1 (2022-06-08)
223
-
224
194
  * (bluefox) Changed the russian translations
225
195
 
226
196
  ### 3.0.0-beta.13 (2022-05-30)
227
-
228
- * (theimo1221) Prevent missing of events, due to socket drop within ring-api-client
229
- * (theimo1221) Improve device logging readability
197
+ * (theimo1221) Prevented missing of events, due to a socket drop within ring-api-client
198
+ * (theimo1221) Improved device logging readability
230
199
 
231
200
  ### 3.0.0-beta.12 (2022-05-28)
232
-
233
- * (theimo1221) Fix error in beta.11 in regard to new installations
201
+ * (theimo1221) Fixed error in beta.11 in regard to new installations
234
202
  * (theimo1221) Harden Event Handling to prevent rare permanent busy occasions
235
- * (theimo1221) Add support for doorbell device `doorbell_graham_cracker`
203
+ * (theimo1221) Added support for doorbell device `doorbell_graham_cracker`
236
204
 
237
205
  ### 3.0.0-beta.11 (2022-05-24)
238
-
239
- * (theimo1221) Add processing of new token provided by ring.
206
+ * (theimo1221) Added processing of new token provided by ring.
240
207
 
241
208
  ### 3.0.0-beta.10 (2022-05-24)
242
-
243
- * (theimo1221) Add `lpd_v4` Doorbell
209
+ * (theimo1221) Added `lpd_v4` Doorbell
244
210
 
245
211
  ### 3.0.0-beta.9 (2022-05-21)
246
-
247
212
  * (theimo1221) For stability reasons, perform an active refresh every 2 hours.
248
213
 
249
214
  ### 3.0.0-beta.8 (2022-05-17)
250
-
251
- * (theimo1221) Fix writing to iobroker-data/files folder (thx to Apollon)
215
+ * (theimo1221) Fixed writing to iobroker-data/files folder (thx to Apollon)
252
216
 
253
217
  ### 3.0.0-beta.7 (2022-05-16)
254
-
255
218
  * (theimo1221) Prevent Crashes on unsupported devices
256
219
 
257
220
  ### 3.0.0-beta.6 (2022-05-16)
258
-
259
221
  * (theimo1221) Record more events (without recording twice)
260
- * (theimo1221) Improve snapshot deleting for initial snapshot after restart
222
+ * (theimo1221) Improved snapshot deleting for initial snapshot after restart
261
223
 
262
224
  ### 3.0.0-beta.5 (2022-05-14)
263
-
264
- * (theimo1221) Prevent crashes during installation by clearer enforcing of node 16
225
+ * (theimo1221) Prevented crashes during installation by clearer enforcing of node 16
265
226
 
266
227
  ### 3.0.0-beta.4 (2022-05-14)
267
-
268
228
  * (theimo1221) Changes in io-package.json for release workflow
269
229
 
270
230
  ### 3.0.0-beta.3 (2022-05-14)
271
-
272
- * (theimo1221) Rewrite V3 (Breaking Changes listed below)
273
- * (theimo1221) Update packages
274
- * (theimo1221) Fix in GitHub release workflow
231
+ * (theimo1221) Rewrote V3 (Breaking Changes listed below)
232
+ * (theimo1221) Updated packages
233
+ * (theimo1221) Fixed in GitHub release workflow
275
234
 
276
235
  ### 2.0.0-beta.3 (2022-02-08)
277
-
278
- * (theimo1221) Fix adapter checker issues
236
+ * (theimo1221) Fixed adapter checker issues
279
237
 
280
238
  ### 2.0.0-beta.0 (2022-02-05)
281
-
282
- * (theimo1221) Update packages
283
- * (theimo1221) Add JS-Controller 4.0 dependency
239
+ * (theimo1221) Updated packages
240
+ * (theimo1221) Added JS-Controller 4.0 dependency
284
241
  * (theimo1221) On ding --> First take snapshot then livestream
285
242
 
286
243
  ### 1.2.8 (2021-10-14)
287
-
288
- * (theimo1221) Update packages
244
+ * (theimo1221) Updated packages
289
245
 
290
246
  ### 1.2.6 (2021-09-05)
291
-
292
- * (theimo1221) Update packages
293
- * (theimo1221) Stop adapter on unhandled Error
294
- * (theimo1221) Terminate adapter on invalid ring credentials
247
+ * (theimo1221) Updated packages
248
+ * (theimo1221) Stopped adapter on unhandled Error
249
+ * (theimo1221) Terminated adapter on invalid ring credentials
295
250
 
296
251
  ### 1.2.4-1 (2021-08-12)
297
-
298
- * (theimo1221) Update packages
252
+ * (theimo1221) Updated packages
299
253
 
300
254
  ### 1.2.4-0 (2021-08-07)
301
-
302
255
  * (theimo1221) Refactoring
303
- * (theimo1221) Update packages
256
+ * (theimo1221) Updated packages
304
257
 
305
258
  ### 1.2.3 (2021-07-30)
306
-
307
- * (theimo1221) Update packages
308
- * (theimo1221) Fix compatibility issues with new ring api
259
+ * (theimo1221) Updated packages
260
+ * (theimo1221) Fixed compatibility issues with new ring api
309
261
 
310
262
  ### 1.2.2 (2021-05-05)
311
-
312
- * (theimo1221) Update packages due to security patches
263
+ * (theimo1221) Updated packages due to security patches
313
264
 
314
265
  ### 1.2.1 (2021-04-09)
315
-
316
- * (theimo1221) Bump version
266
+ * (theimo1221) Bumped version
317
267
 
318
268
  ### 1.2.0 (2021-04-08)
319
-
320
- * (theimo1221) Add new device type spotlightw as doorbell
321
- * (theimo1221) Update dependencies (ringapi, node-schedule, etc.)
269
+ * (theimo1221) Added new device type spotlightw as doorbell
270
+ * (theimo1221) Updated dependencies (ringapi, node-schedule, etc.)
322
271
 
323
272
  ### 1.1.6-3 (2021-03-29)
324
-
325
- * (theimo1221) Fix typo preventing Livestream recordings after motion detection
326
- * (theimo1221) Reduce Levels of Log Messages, to not spam iobroker Log
273
+ * (theimo1221) Fixed typo preventing Livestream recordings after motion detection
274
+ * (theimo1221) Reduced Levels of Log Messages, to not spam iobroker Log
327
275
 
328
276
  ### 1.1.6-2 (2021-03-29)
329
-
330
277
  * (theimo1221) Fixing some Issues while saving snapshots and place Snapshots within 'iobroker-data' Folder.
331
278
 
332
279
  ### 1.1.6-1 (2021-03-26)
333
-
334
280
  * (theimo1221) Support for Floodlight V2
335
281
  * (theimo1221) Control Floodlight by Switch
336
282
 
337
283
  ### 1.1.5 (04.11.2020)
338
-
339
- * (Stübi) Add floodlight
284
+ * (Stübi) Added floodlight
340
285
 
341
286
  ### 1.1.4 (23.05.2020)
342
-
343
- * (Stübi) Add new libraries
287
+ * (Stübi) Added new libraries
344
288
 
345
289
  ### 1.1.3 (06.05.2020)
346
-
347
290
  * (Stübi) Fixed error of missing objects
348
291
 
349
292
  ### 1.1.2 (02.05.2020)
350
-
351
293
  * (Stübi) Fixed health info like missing battery status (Issue #22, Issue #25)
352
294
  * (Stübi) Change error handling
353
295
  * (Stübi) Providing Stick Up Cam (BETA)
354
296
  * (Stübi) Using variables in the filename of the livestream or snapshot
355
297
 
356
298
  ### 1.1.1 (02.05.2020)
357
-
358
299
  * (Stübi) Bugfixing
359
300
  * (Stübi) User can enable/disable external sentry logging
360
301
 
361
302
  ### 1.1.0 (01.05.2020)
362
-
363
303
  * (Stübi) Node 10 is now required, Node 12 recommended. If you use Node 8 or less, the adapter will stop immediately.
364
304
  * (Stübi) Tested with js-controller 3. I recommend using js-controller 3 or higher because of sentry logging and more
365
305
  features in the future
@@ -368,61 +308,47 @@ doorbell recorded video.
368
308
  * (Stübi) Old snapshots and livestreams can be deleted on the filesystem
369
309
  * (Stübi) Sentry logging added
370
310
  * (Stübi) Small improvements and bugfixing
371
- * (Stübi) Add a Two-Factor Auth (2fa) description (Issue #14, Issue #13, Issue #19)
311
+ * (Stübi) Added a Two-Factor Auth (2fa) description (Issue #14, Issue #13, Issue #19)
372
312
 
373
313
  ### 1.0.7 (24.12.2019)
374
-
375
314
  * (Stübi) Bugfixing
376
315
 
377
316
  ### 1.0.6 (20.12.2019)
378
-
379
317
  * (Stübi) Bugfixing: Login with username and password changed
380
- * (Stübi) New feature (BETA): Now you can make snapshots in jpg and a livestream in mp4 format. Unfortunately the
381
- snapshot / livestream does not work always!
318
+ * (Stübi) New feature (BETA): Now you can make snapshots in jpg and a livestream in mp4 format. Unfortunately, the snapshot / livestream does not always work!
382
319
 
383
320
  ### 1.0.5 (18.04.2019)
384
-
385
321
  * (Stübi) Bugfixing
386
322
  * (Stübi) Using new API. With this API livestreaming and snapshots are possible (work still in progress and not
387
323
  supported in this version)
388
324
  * (Stübi) Fixed an error with js-controller 2.0. You need at least this version with js-controller 2.0
389
- * (Stübi) two face authentication
325
+ * (Stübi) Added two factory authentications
390
326
 
391
327
  ### 1.0.4 (17.04.2019)
392
-
393
328
  * (Stübi) Bugfixing for Ring Pro
394
329
 
395
330
  ### 1.0.3 (09.03.2019)
396
-
397
- * (Stübi) Major change! I had to change the used ring.com API to an other API. The old one did not work anymore. For
398
- this reason, a lot has to be redesigned.
331
+ * (Stübi) Major change! I had to change the used ring.com API to another API. The old one did not work anymore. For this reason, a lot has to be redesigned.
399
332
 
400
333
  ### 1.0.2 (01.02.2019)
401
-
402
334
  * (Stübi) More debug information
403
335
 
404
336
  ### 1.0.1 (05.01.2019)
405
-
406
337
  * (Stübi) Support js-controller compact mode
407
338
 
408
339
  ### 1.0.0 (04.01.2018)
409
-
410
- * (Stübi) Add camera device. For this reason, the device name changed from doorbot to doorbell.
340
+ * (Stübi) Added a camera device. For this reason, the device name changed from doorbot to doorbell.
411
341
 
412
342
  ### 0.1.3 (20.12.2018)
413
-
414
343
  * (Stübi) Update error handling
415
344
 
416
345
  ### 0.1.2 (17.12.2018)
417
-
418
346
  * (Stübi) Update error handling
419
347
 
420
348
  ### 0.1.1 (15.12.2018)
421
-
422
349
  * (Stübi) Improvements
423
350
 
424
351
  ### 0.1.0 (14.12.2018)
425
-
426
352
  * (Stübi) First Version
427
353
 
428
354
  ## License
package/admin/admin.d.ts CHANGED
@@ -5,8 +5,8 @@ declare let save: (callback: (settings: Record<string, unknown>) => void) => voi
5
5
 
6
6
  // make load and save exist on the window object
7
7
  interface Window {
8
- load: typeof load;
9
- save: typeof save;
8
+ load: typeof load;
9
+ save: typeof save;
10
10
  }
11
11
 
12
12
  declare const instance: number;
@@ -14,80 +14,99 @@ declare const adapter: string;
14
14
  /** Translates text */
15
15
  declare function _(text: string, arg1?: string, arg2?: string, arg3?: string): string;
16
16
  declare const socket: ioBrokerSocket;
17
+
17
18
  declare function sendTo(
18
- instance: any | null,
19
- command: string,
20
- message: any,
21
- callback: (result: SendToResult) => void | Promise<void>,
19
+ instance: any | null,
20
+ command: string,
21
+ message: any,
22
+ callback: (result: SendToResult) => void | Promise<void>,
22
23
  ): void;
23
24
 
24
25
  interface SendToResult {
25
- error?: string | Error;
26
- result?: any;
26
+ error?: string | Error;
27
+ result?: any;
27
28
  }
28
29
 
29
30
  // tslint:disable-next-line:class-name
30
31
  interface ioBrokerSocket {
31
- emit(
32
- command: "subscribeObjects",
33
- pattern: string,
34
- callback?: (err?: string) => void | Promise<void>,
35
- ): void;
36
- emit(
37
- command: "subscribeStates",
38
- pattern: string,
39
- callback?: (err?: string) => void | Promise<void>,
40
- ): void;
41
- emit(
42
- command: "unsubscribeObjects",
43
- pattern: string,
44
- callback?: (err?: string) => void | Promise<void>,
45
- ): void;
46
- emit(
47
- command: "unsubscribeStates",
48
- pattern: string,
49
- callback?: (err?: string) => void | Promise<void>,
50
- ): void;
51
-
52
- emit(
53
- event: "getObjectView",
54
- view: "system",
55
- type: "device",
56
- options: ioBroker.GetObjectViewParams,
57
- callback: (
58
- err: string | undefined,
59
- result?: any,
60
- ) => void | Promise<void>,
61
- ): void;
62
- emit(
63
- event: "getStates",
64
- callback: (
65
- err: string | undefined,
66
- result?: Record<string, any>,
67
- ) => void,
68
- ): void;
69
- emit(
70
- event: "getState",
71
- id: string,
72
- callback: (err: string | undefined, result?: ioBroker.State) => void,
73
- ): void;
74
- emit(
75
- event: "setState",
76
- id: string,
77
- state: unknown,
78
- callback: (err: string | undefined, result?: any) => void,
79
- ): void;
32
+ emit(
33
+ command: "subscribeObjects",
34
+ pattern: string,
35
+ callback?: (err?: string) => void | Promise<void>,
36
+ ): void;
37
+ emit(
38
+ command: "subscribeStates",
39
+ pattern: string,
40
+ callback?: (err?: string) => void | Promise<void>,
41
+ ): void;
42
+ emit(
43
+ command: "unsubscribeObjects",
44
+ pattern: string,
45
+ callback?: (err?: string) => void | Promise<void>,
46
+ ): void;
47
+ emit(
48
+ command: "unsubscribeStates",
49
+ pattern: string,
50
+ callback?: (err?: string) => void | Promise<void>,
51
+ ): void;
52
+ emit(
53
+ command: "getObject",
54
+ id: string,
55
+ callback?: (err: string | undefined, result?: ioBroker.State) => void | Promise<void>,
56
+ ): void;
57
+ emit(
58
+ command: "getForeignObjects",
59
+ pattern: string,
60
+ type: string,
61
+ callback?: (err: string | undefined, objects?: ioBroker.State) => void | Promise<void>,
62
+ ): void;
63
+ emit(
64
+ event: "getObjectView",
65
+ view: "system",
66
+ type: "device",
67
+ options: ioBroker.GetObjectViewParams,
68
+ callback: (
69
+ err: string | undefined,
70
+ result?: any,
71
+ ) => void | Promise<void>,
72
+ ): void;
73
+ emit(
74
+ event: "getStates",
75
+ pattern: string,
76
+ callback: (
77
+ err: string | undefined,
78
+ result?: Record<string, any>,
79
+ ) => void,
80
+ ): void;
81
+ emit(
82
+ event: "getState",
83
+ id: string,
84
+ callback: (err: string | undefined, result?: ioBroker.State) => void,
85
+ ): void;
86
+ emit(
87
+ event: "setState",
88
+ id: string,
89
+ state: unknown,
90
+ callback: (err: string | undefined, result?: any) => void,
91
+ ): void;
92
+ emit(
93
+ event: "readDir",
94
+ _adapter: string,
95
+ dirName: string,
96
+ options?: object,
97
+ callback: (err: string | undefined, files: object[]) => void,
98
+ ): void;
80
99
 
81
- on(event: "objectChange", handler: ioBroker.ObjectChangeHandler): void;
82
- on(event: "stateChange", handler: ioBroker.StateChangeHandler): void;
83
- removeEventHandler(
84
- event: "objectChange",
85
- handler: ioBroker.ObjectChangeHandler,
86
- ): void;
87
- removeEventHandler(
88
- event: "stateChange",
89
- handler: ioBroker.StateChangeHandler,
90
- ): void;
100
+ on(event: "objectChange", handler: ioBroker.ObjectChangeHandler): void;
101
+ on(event: "stateChange", handler: ioBroker.StateChangeHandler): void;
102
+ removeEventHandler(
103
+ event: "objectChange",
104
+ handler: ioBroker.ObjectChangeHandler,
105
+ ): void;
106
+ removeEventHandler(
107
+ event: "stateChange",
108
+ handler: ioBroker.StateChangeHandler,
109
+ ): void;
91
110
 
92
- // TODO: other events
111
+ // TODO: other events
93
112
  }
Binary file