iobroker.smartcontrol 1.3.1 → 1.3.2
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 +4 -0
- package/io-package.json +15 -13
- package/main.js +2 -4
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -90,6 +90,10 @@ This is just to provide you an overview of the adapter options.
|
|
|
90
90
|
Placeholder for the next version (at the beginning of the line):
|
|
91
91
|
### **WORK IN PROGRESS**
|
|
92
92
|
-->
|
|
93
|
+
### 1.3.2 (2022-11-25)
|
|
94
|
+
* (oelison) #19 problem with any web request solved
|
|
95
|
+
* (oelison) #18 my contact added
|
|
96
|
+
|
|
93
97
|
### 1.3.1 (2022-10-20)
|
|
94
98
|
* (simatec) (oelison) dark mode fix #5
|
|
95
99
|
* (oelison) log info type error #16
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "smartcontrol",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.3.2": {
|
|
7
|
+
"en": "#19 problem with any web request solved\n#18 my contact added",
|
|
8
|
+
"de": "#19 problem mit jeder web-anfrage gelöst\n#18 mein kontakt hinzugefügt",
|
|
9
|
+
"ru": "#19 проблема с любым веб-запросом решена\n#18 мой контакт добавлен",
|
|
10
|
+
"pt": "#19 problema com qualquer pedido web resolvido\n#18 meu contato adicionado",
|
|
11
|
+
"nl": "19 probleem met elk web verzoek opgelost\n♪18 my contact toegevoegd",
|
|
12
|
+
"fr": "#19 problème avec toute demande web résolue\n#18 mon contact ajouté",
|
|
13
|
+
"it": "#19 problema con qualsiasi richiesta web risolto\n#18 il mio contatto aggiunto",
|
|
14
|
+
"es": "#19 problema con cualquier solicitud web resuelto\n#18 mi contacto añadido",
|
|
15
|
+
"pl": "zagadnienie 19 z wszelkimi żądaniami internetowymi\ndodało się dodać 18",
|
|
16
|
+
"uk": "#19 проблеми з будь-яким веб-запитом\n#18 мій контакт додано",
|
|
17
|
+
"zh-cn": "行动19 与任何网站要求解决的问题\n我的联络人"
|
|
18
|
+
},
|
|
6
19
|
"1.3.1": {
|
|
7
20
|
"en": "(oelison) dark mode fix #5\nlog info type error #16",
|
|
8
21
|
"de": "(oelison) dunkler modus fix #5\nlog info type fehler #16",
|
|
@@ -77,18 +90,6 @@
|
|
|
77
90
|
"es": "Solución: lo más probable es que finalmente solucione el problema # 43, así como una solución para el problema # 35",
|
|
78
91
|
"pl": "Poprawka: najprawdopodobniej ostatecznie rozwiązuje problem nr 43, a także obejście problemu nr 35",
|
|
79
92
|
"zh-cn": "修复:最有可能最终解决了问题43和问题35的解决方法"
|
|
80
|
-
},
|
|
81
|
-
"1.1.0": {
|
|
82
|
-
"en": "Improvement: if multiple motion sensors assigned to zone, zone will not switch off if any other motion sensor assigned to same zone is still motion=true",
|
|
83
|
-
"de": "Verbesserung: Wenn der Zone mehrere Bewegungsmelder zugewiesen sind, wird die Zone nicht ausgeschaltet, wenn ein anderer Bewegungsmelder, der derselben Zone zugewiesen ist, noch Bewegung=true ist",
|
|
84
|
-
"ru": "Исправлено: если несколько датчиков движения назначены зоне, зона не будет отключаться, если любой другой датчик движения, назначенный той же зоне, все еще движется = true",
|
|
85
|
-
"pt": "Correção: se vários sensores de movimento atribuídos à zona, a zona não desligará se qualquer outro sensor de movimento atribuído à mesma zona ainda for movimento = verdadeiro",
|
|
86
|
-
"nl": "Oplossing: als er meerdere bewegingssensoren zijn toegewezen aan een zone, wordt de zone niet uitgeschakeld als een andere bewegingssensor die aan dezelfde zone is toegewezen nog steeds beweging = waar is",
|
|
87
|
-
"fr": "Correction: si plusieurs capteurs de mouvement affectés à la zone, la zone ne s'éteindra pas si un autre capteur de mouvement affecté à la même zone est toujours en mouvement = vrai",
|
|
88
|
-
"it": "Risolto: se più sensori di movimento sono assegnati alla zona, la zona non si spegne se qualsiasi altro sensore di movimento assegnato alla stessa zona è ancora motion = true",
|
|
89
|
-
"es": "Solución: si se asignan varios sensores de movimiento a la zona, la zona no se apagará si cualquier otro sensor de movimiento asignado a la misma zona sigue siendo movimiento = verdadero",
|
|
90
|
-
"pl": "Poprawka: jeśli wiele czujników ruchu jest przypisanych do strefy, strefa nie wyłączy się, jeśli jakikolwiek inny czujnik ruchu przypisany do tej samej strefy jest nadal ruch = prawda",
|
|
91
|
-
"zh-cn": "修复:如果分配给区域的多个运动传感器,如果分配给同一区域的任何其他运动传感器仍然是motion = true,则区域将不会关闭"
|
|
92
93
|
}
|
|
93
94
|
},
|
|
94
95
|
"titleLang": {
|
|
@@ -116,6 +117,7 @@
|
|
|
116
117
|
"zh-cn": "控制设备更智能:通过分组(包括动作,打开窗口等)进行分组,并相应地设置目标设备"
|
|
117
118
|
},
|
|
118
119
|
"authors": [
|
|
120
|
+
"oelison <iobrokersmartcontrol(at)sciphy.de",
|
|
119
121
|
"Mic-M <iob.micm@gmail.com>"
|
|
120
122
|
],
|
|
121
123
|
"keywords": [
|
package/main.js
CHANGED
|
@@ -49,9 +49,7 @@ class SmartControl extends utils.Adapter {
|
|
|
49
49
|
Trigger: require('./lib/trigger-class.js'), // Class for Triggers and Target devices handling
|
|
50
50
|
mSuncalc: require('suncalc2'), // https://github.com/andiling/suncalc2
|
|
51
51
|
mSchedule: require('node-schedule'), // https://github.com/node-schedule/node-schedule
|
|
52
|
-
|
|
53
|
-
mGot: require('@esm2cjs/got'), // https://github.com/sindresorhus/got || This is a 'request' replacement due to https://nodesource.com/blog/express-going-into-maintenance-mode#alternativestorequest
|
|
54
|
-
|
|
52
|
+
axios: require('axios').default,
|
|
55
53
|
// {object} timers - All timer objects.
|
|
56
54
|
timersZoneOn: {}, // for option "onAfter" in Zones table
|
|
57
55
|
timersZoneOff: {}, // for option "offAfter" in Zones table
|
|
@@ -809,7 +807,7 @@ class SmartControl extends utils.Adapter {
|
|
|
809
807
|
try {
|
|
810
808
|
this.log.debug(`Trying to call target URL (name: '${name}', URL: '${url}')`);
|
|
811
809
|
// @ts-ignore This expression is not callable.
|
|
812
|
-
const response = await this.x.
|
|
810
|
+
const response = await this.x.axios.get(url);
|
|
813
811
|
this.log.debug(`Calling target URL was successful (name: '${name}', URL: '${url}')`);
|
|
814
812
|
// Set response to state smartcontrol.x.targetURLs.xxxxxxx.response
|
|
815
813
|
if (this.x.helper.isLikeEmpty(response.body)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.smartcontrol",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Control devices smarter: by grouping, including triggers like motion, opening window, etc. and set target devices accordingly",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mic-M",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/iobroker-community-adapters/ioBroker.smartcontrol"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"
|
|
28
|
+
"axios": "^0.27.2",
|
|
29
29
|
"@iobroker/adapter-core": "^2.4.0",
|
|
30
30
|
"@types/jquery": "^3.5.14",
|
|
31
31
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@types/proxyquire": "^1.3.28",
|
|
47
47
|
"@types/sinon": "^10.0.11",
|
|
48
48
|
"@types/sinon-chai": "^3.2.5",
|
|
49
|
-
"axios": "^0.27.2",
|
|
50
49
|
"chai": "^4.3.6",
|
|
51
50
|
"chai-as-promised": "^7.1.1",
|
|
52
51
|
"eslint": "^8.24.0",
|