iobroker.ring 4.0.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 (46) hide show
  1. package/README.md +102 -163
  2. package/admin/admin.d.ts +87 -68
  3. package/admin/camera-photo-5.png +0 -0
  4. package/admin/camera-photo-6.png +0 -0
  5. package/admin/camera-video.png +0 -0
  6. package/admin/convert.js +434 -0
  7. package/admin/i18n/de.json +43 -0
  8. package/admin/i18n/en.json +43 -0
  9. package/admin/i18n/es.json +43 -0
  10. package/admin/i18n/fr.json +43 -0
  11. package/admin/i18n/it.json +43 -0
  12. package/admin/i18n/nl.json +43 -0
  13. package/admin/i18n/pl.json +43 -0
  14. package/admin/i18n/pt.json +43 -0
  15. package/admin/i18n/ru.json +43 -0
  16. package/admin/i18n/uk.json +43 -0
  17. package/admin/i18n/zh-cn.json +43 -0
  18. package/admin/index_m.html +234 -85
  19. package/admin/jsonConfig.json +367 -0
  20. package/admin/preferences-system-login.png +0 -0
  21. package/admin/style.css +1 -0
  22. package/admin/tab_m.html +38 -0
  23. package/admin/tab_m.js +145 -0
  24. package/admin/tsconfig.json +5 -3
  25. package/admin/words.js +440 -200
  26. package/build/lib/constants.js +65 -20
  27. package/build/lib/constants.js.map +1 -1
  28. package/build/lib/ownRingCamera.js +478 -144
  29. package/build/lib/ownRingCamera.js.map +1 -1
  30. package/build/lib/ownRingDevice.js +4 -1
  31. package/build/lib/ownRingDevice.js.map +1 -1
  32. package/build/lib/ownRingIntercom.js +20 -20
  33. package/build/lib/ownRingIntercom.js.map +1 -1
  34. package/build/lib/ownRingLocation.js +11 -17
  35. package/build/lib/ownRingLocation.js.map +1 -1
  36. package/build/lib/ringApiClient.js +11 -10
  37. package/build/lib/ringApiClient.js.map +1 -1
  38. package/build/lib/services/file-service.js +23 -14
  39. package/build/lib/services/file-service.js.map +1 -1
  40. package/build/lib/services/path-info.js +3 -0
  41. package/build/lib/services/path-info.js.map +1 -0
  42. package/build/lib/tools.js +3 -3
  43. package/build/main.js +76 -57
  44. package/build/main.js.map +1 -1
  45. package/io-package.json +64 -47
  46. package/package.json +31 -20
package/README.md CHANGED
@@ -9,19 +9,16 @@
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
26
23
  ```
27
24
 
@@ -46,307 +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
- ### 4.0.0 (2023-08-22)
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
88
+
89
+ ### 5.0.0-Beta (2023-10-10)
90
+ * (crocri) Ding event is now working again for Ring-Intercom
91
+ * (crocri) auto livestream creation takes now value from config, before fix
92
+ * (crocri) snapshot now async, because snapshot and livestream in parallel do not work
93
+ * (crocri) livestream duration now settable via tree entry will be auto reset via livestream request.
94
+ * (crocri) two new config entries auto_livestream and auto_snapshot to disable auto creation of livestream and snapshot.
95
+ * (crocri) some minor corrections to code
96
+ * (crocri) Removed binary States
97
+ * (crocri) Improvements for vis compatibility done
98
+ * (theimo1221) Refactoring and cleanup
99
+ * (theimo1221) Updated Packages
92
100
 
101
+ ### 4.0.0 (2023-08-22)
93
102
  * (theimo1221) !!Breaking Change!! From now on Node 18 or 20 is required, Node 16 is not supported anymore
94
- * (theimo1221) Update Ring-Api to V12 which needs Node 18 or 20
95
- * (theimo1221) Update Packages
103
+ * (theimo1221) Updated Ring-Api to v12 which needs Node 18 or 20
104
+ * (theimo1221) Updated Packages
96
105
 
97
106
  ### 3.4.1 (2023-08-06)
98
-
99
107
  * (theimo1221) Compliance to adapter-checker
100
- * (theimo1221) Update Packages
108
+ * (theimo1221) Updated Packages
101
109
  * (theimo1221) Debounce Doorbell Presses
102
- * (theimo1221) Add Support for cocoa_doorbell_v2
103
- * (theimo1221) Add Support for stickup_cam_longfin
104
- * (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
105
113
 
106
114
  ### 3.4.0 (2023-06-09)
107
-
108
- * (theimo1221) Update Packages (which allows node 20 now)
115
+ * (theimo1221) Updated Packages (which allows node 20 now)
109
116
 
110
117
  ### 3.3.1 (2023-05-18)
111
-
112
- * (theimo1221) Update Packages
118
+ * (theimo1221) Updated Packages
113
119
 
114
120
  ### 3.3.0 (2023-04-02)
115
-
116
- * (theimo1221) Update Packages
117
- * (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
118
123
 
119
124
  ### 3.2.7 (2023-03-22)
120
-
121
- * (foxriver76) prepare js-controller v5
125
+ * (foxriver76) prepared js-controller v5
122
126
 
123
127
  ### 3.2.6 (2023-02-18)
124
-
125
- * (theimo1221) Improve behaviour on initial Location load fail
126
- * (theimo1221) Update Packages
128
+ * (theimo1221) Improve behavior on initial Location load fail
129
+ * (theimo1221) Updated Packages
127
130
 
128
131
  ### 3.2.5 (2023-01-28)
129
-
130
- * (theimo1221) Update Packages
132
+ * (theimo1221) Updated Packages
131
133
 
132
134
  ### 3.2.4 (2022-12-15)
133
-
134
135
  * (theimo1221) #385 Fix for Unlock Request on intercoms
135
136
 
136
137
  ### 3.2.3 (2022-12-15)
137
-
138
- * (theimo1221) Update Packages
138
+ * (theimo1221) Updated Packages
139
139
  * (theimo1221) #385 Experimental Ring Intercom support
140
140
 
141
141
  ### 3.2.2 (2022-12-02)
142
-
143
- * (theimo1221) #373 Fix event receiving for iobroker instances without unique hostname
142
+ * (theimo1221) #373 Fix event receiving for iobroker instances without a unique hostname
144
143
 
145
144
  ### 3.2.1 (2022-12-02)
146
-
147
145
  * (theimo1221) Redeploy
148
146
 
149
147
  ### 3.2.0 (2022-12-02)
150
-
151
- * (theimo1221) Update Packages
148
+ * (theimo1221) Updated Packages
152
149
  * (theimo1221) #373 Increase logging and change recording order on Doorbell Event
153
150
 
154
151
  ### 3.1.9 (2022-11-20)
155
-
156
152
  * (theimo1221) #395 Resolve Package-lock.json issues
157
153
 
158
154
  ### 3.1.8 (2022-11-20)
159
-
160
- * (theimo1221) Update Packages
161
- * (theimo1221) Compliance to newest ring api version
155
+ * (theimo1221) Updated Packages
156
+ * (theimo1221) Compliance to the newest ring api version
162
157
 
163
158
  ### 3.1.7 (2022-10-28)
164
-
165
- * (theimo1221) Update Packages
159
+ * (theimo1221) Updated Packages
166
160
 
167
161
  ### 3.1.6 (2022-10-28)
168
-
169
162
  * (theimo1221) Inline subscription instead of properties for Event observer
170
163
 
171
164
  ### 3.1.5 (2022-10-16)
172
-
173
- * (theimo1221) Update Packages
165
+ * (theimo1221) Updated Packages
174
166
 
175
167
  ### 3.1.4 (2022-10-16)
176
-
177
168
  * (theimo1221) #376 Handling when reconnect fails
178
169
 
179
170
  ### 3.1.3 (2022-10-04)
180
-
181
- * (theimo1221) Update Packages
171
+ * (theimo1221) Updated Packages
182
172
 
183
173
  ### 3.1.2 (2022-09-22)
184
-
185
- * (theimo1221) Update Packages
186
- * (theimo1221) Fix an issue with floodlight control
174
+ * (theimo1221) Updated Packages
175
+ * (theimo1221) Fixed an issue with floodlight control
187
176
 
188
177
  ### 3.1.1 (2022-08-11)
189
-
190
- * (theimo1221) Improve Doorbell Event Logging
178
+ * (theimo1221) Improved Doorbell Event Logging
191
179
 
192
180
  ### 3.1.0 (2022-08-04)
193
-
194
181
  * (bluefox) Allowed to be used with node.js 18
195
182
 
196
183
  ### 3.0.5 (2022-07-05)
197
-
198
- * (theimo1221) Improve Log Message on failed Snapshots during event handling
199
- * (theimo1221) Add Support for doorbell oyster
184
+ * (theimo1221) Improved Log Message on failed Snapshots during event handling
185
+ * (theimo1221) Added Support for doorbell oyster
200
186
 
201
187
  ### 3.0.4 (2022-06-17)
202
-
203
- * (theimo1221) Fix Edge Case resulting in lamps being permanently on
188
+ * (theimo1221) Fixed Edge Case resulting in lamps being permanently on
204
189
 
205
190
  ### 3.0.3 (2022-06-16)
206
-
207
- * (theimo1221) Implement location mode
191
+ * (theimo1221) Implemented location mode
208
192
 
209
193
  ### 3.0.1 (2022-06-08)
210
-
211
194
  * (bluefox) Changed the russian translations
212
195
 
213
196
  ### 3.0.0-beta.13 (2022-05-30)
214
-
215
- * (theimo1221) Prevent missing of events, due to socket drop within ring-api-client
216
- * (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
217
199
 
218
200
  ### 3.0.0-beta.12 (2022-05-28)
219
-
220
- * (theimo1221) Fix error in beta.11 in regard to new installations
201
+ * (theimo1221) Fixed error in beta.11 in regard to new installations
221
202
  * (theimo1221) Harden Event Handling to prevent rare permanent busy occasions
222
- * (theimo1221) Add support for doorbell device `doorbell_graham_cracker`
203
+ * (theimo1221) Added support for doorbell device `doorbell_graham_cracker`
223
204
 
224
205
  ### 3.0.0-beta.11 (2022-05-24)
225
-
226
- * (theimo1221) Add processing of new token provided by ring.
206
+ * (theimo1221) Added processing of new token provided by ring.
227
207
 
228
208
  ### 3.0.0-beta.10 (2022-05-24)
229
-
230
- * (theimo1221) Add `lpd_v4` Doorbell
209
+ * (theimo1221) Added `lpd_v4` Doorbell
231
210
 
232
211
  ### 3.0.0-beta.9 (2022-05-21)
233
-
234
212
  * (theimo1221) For stability reasons, perform an active refresh every 2 hours.
235
213
 
236
214
  ### 3.0.0-beta.8 (2022-05-17)
237
-
238
- * (theimo1221) Fix writing to iobroker-data/files folder (thx to Apollon)
215
+ * (theimo1221) Fixed writing to iobroker-data/files folder (thx to Apollon)
239
216
 
240
217
  ### 3.0.0-beta.7 (2022-05-16)
241
-
242
218
  * (theimo1221) Prevent Crashes on unsupported devices
243
219
 
244
220
  ### 3.0.0-beta.6 (2022-05-16)
245
-
246
221
  * (theimo1221) Record more events (without recording twice)
247
- * (theimo1221) Improve snapshot deleting for initial snapshot after restart
222
+ * (theimo1221) Improved snapshot deleting for initial snapshot after restart
248
223
 
249
224
  ### 3.0.0-beta.5 (2022-05-14)
250
-
251
- * (theimo1221) Prevent crashes during installation by clearer enforcing of node 16
225
+ * (theimo1221) Prevented crashes during installation by clearer enforcing of node 16
252
226
 
253
227
  ### 3.0.0-beta.4 (2022-05-14)
254
-
255
228
  * (theimo1221) Changes in io-package.json for release workflow
256
229
 
257
230
  ### 3.0.0-beta.3 (2022-05-14)
258
-
259
- * (theimo1221) Rewrite V3 (Breaking Changes listed below)
260
- * (theimo1221) Update packages
261
- * (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
262
234
 
263
235
  ### 2.0.0-beta.3 (2022-02-08)
264
-
265
- * (theimo1221) Fix adapter checker issues
236
+ * (theimo1221) Fixed adapter checker issues
266
237
 
267
238
  ### 2.0.0-beta.0 (2022-02-05)
268
-
269
- * (theimo1221) Update packages
270
- * (theimo1221) Add JS-Controller 4.0 dependency
239
+ * (theimo1221) Updated packages
240
+ * (theimo1221) Added JS-Controller 4.0 dependency
271
241
  * (theimo1221) On ding --> First take snapshot then livestream
272
242
 
273
243
  ### 1.2.8 (2021-10-14)
274
-
275
- * (theimo1221) Update packages
244
+ * (theimo1221) Updated packages
276
245
 
277
246
  ### 1.2.6 (2021-09-05)
278
-
279
- * (theimo1221) Update packages
280
- * (theimo1221) Stop adapter on unhandled Error
281
- * (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
282
250
 
283
251
  ### 1.2.4-1 (2021-08-12)
284
-
285
- * (theimo1221) Update packages
252
+ * (theimo1221) Updated packages
286
253
 
287
254
  ### 1.2.4-0 (2021-08-07)
288
-
289
255
  * (theimo1221) Refactoring
290
- * (theimo1221) Update packages
256
+ * (theimo1221) Updated packages
291
257
 
292
258
  ### 1.2.3 (2021-07-30)
293
-
294
- * (theimo1221) Update packages
295
- * (theimo1221) Fix compatibility issues with new ring api
259
+ * (theimo1221) Updated packages
260
+ * (theimo1221) Fixed compatibility issues with new ring api
296
261
 
297
262
  ### 1.2.2 (2021-05-05)
298
-
299
- * (theimo1221) Update packages due to security patches
263
+ * (theimo1221) Updated packages due to security patches
300
264
 
301
265
  ### 1.2.1 (2021-04-09)
302
-
303
- * (theimo1221) Bump version
266
+ * (theimo1221) Bumped version
304
267
 
305
268
  ### 1.2.0 (2021-04-08)
306
-
307
- * (theimo1221) Add new device type spotlightw as doorbell
308
- * (theimo1221) Update dependencies (ringapi, node-schedule, etc.)
269
+ * (theimo1221) Added new device type spotlightw as doorbell
270
+ * (theimo1221) Updated dependencies (ringapi, node-schedule, etc.)
309
271
 
310
272
  ### 1.1.6-3 (2021-03-29)
311
-
312
- * (theimo1221) Fix typo preventing Livestream recordings after motion detection
313
- * (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
314
275
 
315
276
  ### 1.1.6-2 (2021-03-29)
316
-
317
277
  * (theimo1221) Fixing some Issues while saving snapshots and place Snapshots within 'iobroker-data' Folder.
318
278
 
319
279
  ### 1.1.6-1 (2021-03-26)
320
-
321
280
  * (theimo1221) Support for Floodlight V2
322
281
  * (theimo1221) Control Floodlight by Switch
323
282
 
324
283
  ### 1.1.5 (04.11.2020)
325
-
326
- * (Stübi) Add floodlight
284
+ * (Stübi) Added floodlight
327
285
 
328
286
  ### 1.1.4 (23.05.2020)
329
-
330
- * (Stübi) Add new libraries
287
+ * (Stübi) Added new libraries
331
288
 
332
289
  ### 1.1.3 (06.05.2020)
333
-
334
290
  * (Stübi) Fixed error of missing objects
335
291
 
336
292
  ### 1.1.2 (02.05.2020)
337
-
338
293
  * (Stübi) Fixed health info like missing battery status (Issue #22, Issue #25)
339
294
  * (Stübi) Change error handling
340
295
  * (Stübi) Providing Stick Up Cam (BETA)
341
296
  * (Stübi) Using variables in the filename of the livestream or snapshot
342
297
 
343
298
  ### 1.1.1 (02.05.2020)
344
-
345
299
  * (Stübi) Bugfixing
346
300
  * (Stübi) User can enable/disable external sentry logging
347
301
 
348
302
  ### 1.1.0 (01.05.2020)
349
-
350
303
  * (Stübi) Node 10 is now required, Node 12 recommended. If you use Node 8 or less, the adapter will stop immediately.
351
304
  * (Stübi) Tested with js-controller 3. I recommend using js-controller 3 or higher because of sentry logging and more
352
305
  features in the future
@@ -355,61 +308,47 @@ doorbell recorded video.
355
308
  * (Stübi) Old snapshots and livestreams can be deleted on the filesystem
356
309
  * (Stübi) Sentry logging added
357
310
  * (Stübi) Small improvements and bugfixing
358
- * (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)
359
312
 
360
313
  ### 1.0.7 (24.12.2019)
361
-
362
314
  * (Stübi) Bugfixing
363
315
 
364
316
  ### 1.0.6 (20.12.2019)
365
-
366
317
  * (Stübi) Bugfixing: Login with username and password changed
367
- * (Stübi) New feature (BETA): Now you can make snapshots in jpg and a livestream in mp4 format. Unfortunately the
368
- 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!
369
319
 
370
320
  ### 1.0.5 (18.04.2019)
371
-
372
321
  * (Stübi) Bugfixing
373
322
  * (Stübi) Using new API. With this API livestreaming and snapshots are possible (work still in progress and not
374
323
  supported in this version)
375
324
  * (Stübi) Fixed an error with js-controller 2.0. You need at least this version with js-controller 2.0
376
- * (Stübi) two face authentication
325
+ * (Stübi) Added two factory authentications
377
326
 
378
327
  ### 1.0.4 (17.04.2019)
379
-
380
328
  * (Stübi) Bugfixing for Ring Pro
381
329
 
382
330
  ### 1.0.3 (09.03.2019)
383
-
384
- * (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
385
- 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.
386
332
 
387
333
  ### 1.0.2 (01.02.2019)
388
-
389
334
  * (Stübi) More debug information
390
335
 
391
336
  ### 1.0.1 (05.01.2019)
392
-
393
337
  * (Stübi) Support js-controller compact mode
394
338
 
395
339
  ### 1.0.0 (04.01.2018)
396
-
397
- * (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.
398
341
 
399
342
  ### 0.1.3 (20.12.2018)
400
-
401
343
  * (Stübi) Update error handling
402
344
 
403
345
  ### 0.1.2 (17.12.2018)
404
-
405
346
  * (Stübi) Update error handling
406
347
 
407
348
  ### 0.1.1 (15.12.2018)
408
-
409
349
  * (Stübi) Improvements
410
350
 
411
351
  ### 0.1.0 (14.12.2018)
412
-
413
352
  * (Stübi) First Version
414
353
 
415
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
Binary file
Binary file