iobroker.drag-indicator 2.0.2 → 2.0.3
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 +3 -0
- package/io-package.json +32 -2
- package/main.js +0 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,9 @@ e.g. you can use it for power or temperature values.
|
|
|
23
23
|
### **WORK IN PROGRESS**
|
|
24
24
|
-->
|
|
25
25
|
|
|
26
|
+
### 2.0.3 (2022-06-13) - adapter type changed
|
|
27
|
+
* (BenAhrdt) adapter type changed to misc-data
|
|
28
|
+
|
|
26
29
|
### 2.0.2 (2022-06-08) - rewrite additional state with ack true
|
|
27
30
|
* (BenAhrdt) write ack = true in case of additional state is subscribed
|
|
28
31
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "drag-indicator",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.0.3": {
|
|
7
|
+
"en": "adapter type changed to misc-data",
|
|
8
|
+
"de": "adaptertyp geändert in misc-daten",
|
|
9
|
+
"ru": "тип адаптера изменен на misc-data",
|
|
10
|
+
"pt": "tipo de adaptador alterado para misc-data",
|
|
11
|
+
"nl": "adaptertype veranderde in misc-data",
|
|
12
|
+
"fr": "type d'adaptateur changé en misc-data",
|
|
13
|
+
"it": "tipo di adattatore cambiato in misc-data",
|
|
14
|
+
"es": "tipo de adaptador cambiado a misc-data",
|
|
15
|
+
"pl": "zmiana adaptatora została zmieniona na misc-data",
|
|
16
|
+
"zh-cn": "b. 适应类型改为错误数据"
|
|
17
|
+
},
|
|
6
18
|
"2.0.2": {
|
|
7
19
|
"en": "write ack = true in case of additional state is subscribed",
|
|
8
20
|
"de": "schreiben ack = wahr bei zusätzlichem zustand abonniert",
|
|
@@ -131,7 +143,7 @@
|
|
|
131
143
|
"readme": "https://github.com/BenAhrdt/ioBroker.drag-indicator/blob/main/README.md",
|
|
132
144
|
"loglevel": "info",
|
|
133
145
|
"mode": "daemon",
|
|
134
|
-
"type": "
|
|
146
|
+
"type": "misc-data",
|
|
135
147
|
"compact": true,
|
|
136
148
|
"connectionType": "local",
|
|
137
149
|
"dataSource": "poll",
|
|
@@ -140,6 +152,11 @@
|
|
|
140
152
|
"custom": "json"
|
|
141
153
|
},
|
|
142
154
|
"supportCustoms": true,
|
|
155
|
+
"globalDependencies": [
|
|
156
|
+
{
|
|
157
|
+
"admin": ">=5.0.0"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
143
160
|
"dependencies": [
|
|
144
161
|
{
|
|
145
162
|
"js-controller": ">=2.0.0"
|
|
@@ -158,6 +175,19 @@
|
|
|
158
175
|
"name": "Information"
|
|
159
176
|
},
|
|
160
177
|
"native": {}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"_id": "info.subscribedStatesCount",
|
|
181
|
+
"type": "state",
|
|
182
|
+
"common": {
|
|
183
|
+
"role": "indicator",
|
|
184
|
+
"name": "Count of subscribed states",
|
|
185
|
+
"type": "number",
|
|
186
|
+
"read": true,
|
|
187
|
+
"write": false,
|
|
188
|
+
"def": 0
|
|
189
|
+
},
|
|
190
|
+
"native": {}
|
|
161
191
|
}
|
|
162
192
|
]
|
|
163
193
|
}
|
package/main.js
CHANGED
|
@@ -53,20 +53,6 @@ class DragIndicator extends utils.Adapter {
|
|
|
53
53
|
async onReady() {
|
|
54
54
|
// Initialize your adapter here
|
|
55
55
|
|
|
56
|
-
// Creates the subscribed state count
|
|
57
|
-
await this.setObjectNotExistsAsync(this.subscribecounterId, {
|
|
58
|
-
type: "state",
|
|
59
|
-
common: {
|
|
60
|
-
name: "Count of subscribed states",
|
|
61
|
-
type: "number",
|
|
62
|
-
role: "indicator",
|
|
63
|
-
read: true,
|
|
64
|
-
write: false,
|
|
65
|
-
def:0
|
|
66
|
-
},
|
|
67
|
-
native: {},
|
|
68
|
-
});
|
|
69
|
-
|
|
70
56
|
//Read all states with custom configuration
|
|
71
57
|
const customStateArray = await this.getObjectViewAsync("system","custom",{});
|
|
72
58
|
|