iobroker.alarm 3.4.0 → 3.4.1
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 -3
- package/io-package.json +14 -14
- package/main.js +10 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
Placeholder for the next version (at the beginning of the line):
|
|
30
30
|
### **WORK IN PROGRESS**
|
|
31
31
|
-->
|
|
32
|
+
### 3.4.1 (2023-10-29)
|
|
33
|
+
* (misanorot) fixed astro at presence simulation (jsControler 5.x???)
|
|
34
|
+
|
|
32
35
|
### 3.4.0 (2023-10-03)
|
|
33
36
|
* (misanorot) fixed #168
|
|
34
37
|
|
|
@@ -41,9 +44,6 @@
|
|
|
41
44
|
### 3.3.11 (2023-04-15)
|
|
42
45
|
* (misanorot) fixed issue at night rest
|
|
43
46
|
|
|
44
|
-
### 3.3.10 (2023-03-31)
|
|
45
|
-
* (misanorot) fixed litle speech and presence bug
|
|
46
|
-
|
|
47
47
|
## License
|
|
48
48
|
MIT License
|
|
49
49
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "alarm",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"3.4.1": {
|
|
7
|
+
"en": "fixed astro at presence simulation (jsControler 5.x???)",
|
|
8
|
+
"de": "fester Astro bei Präsenzsimulation (jsControler 5.x?)",
|
|
9
|
+
"ru": "фиксированная астро при наличии симуляции (jsControler 5.x?)",
|
|
10
|
+
"pt": "astro fixo na simulação de presença (jsControler 5.x?)",
|
|
11
|
+
"nl": "gerepareerd astro bij aanwezigheidssimulatie (jsControler 5.x)",
|
|
12
|
+
"fr": "astro fixe à la simulation de présence (jsControler 5.x?)",
|
|
13
|
+
"it": "astro fisso alla simulazione di presenza (jsControler 5.x?)",
|
|
14
|
+
"es": "astro fijo en simulación de presencia (jsControler 5.x?)",
|
|
15
|
+
"pl": "stworzona gwiazda w symulacji (jsControler 5.x?)",
|
|
16
|
+
"uk": "фіксована астро при наявності моделювання (jsControler 5.x?)",
|
|
17
|
+
"zh-cn": "固定在场的模拟(jsControler 5.x?)"
|
|
18
|
+
},
|
|
6
19
|
"3.4.0": {
|
|
7
20
|
"en": "fixed #168",
|
|
8
21
|
"de": "fest #168",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "prawidłowe problemy z burgle logiem",
|
|
81
94
|
"uk": "виправлені питання в burgle log",
|
|
82
95
|
"zh-cn": "堡固定问题"
|
|
83
|
-
},
|
|
84
|
-
"3.3.8": {
|
|
85
|
-
"en": "fixed issues at burgle log",
|
|
86
|
-
"de": "feste probleme bei burgle log",
|
|
87
|
-
"ru": "фиксированные вопросы в burgle log",
|
|
88
|
-
"pt": "problemas fixos no log de águia",
|
|
89
|
-
"nl": "vertaling:",
|
|
90
|
-
"fr": "problèmes fixes dans le journal de burgle",
|
|
91
|
-
"it": "problemi fissi a log burgle",
|
|
92
|
-
"es": "problemas fijos en el registro de burgle",
|
|
93
|
-
"pl": "prawidłowe problemy z burgle logiem",
|
|
94
|
-
"uk": "виправлені питання в burgle log",
|
|
95
|
-
"zh-cn": "堡固定问题"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"title": "Alarm",
|
package/main.js
CHANGED
|
@@ -1964,20 +1964,16 @@ class Alarm extends utils.Adapter {
|
|
|
1964
1964
|
|
|
1965
1965
|
|
|
1966
1966
|
getAstro() {
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
});
|
|
1978
|
-
} catch (err) {
|
|
1979
|
-
this.log.warn('System location settings cannot be called up. Please check configuration!');
|
|
1980
|
-
}
|
|
1967
|
+
this.getForeignObject('system.config', (err, obj) => {
|
|
1968
|
+
if (obj && obj.common && obj.common.longitude && obj.common.latitude) {
|
|
1969
|
+
const longitude = obj.common.longitude;
|
|
1970
|
+
const latitude = obj.common.latitude;
|
|
1971
|
+
this.log.debug(`longitude: ${longitude} | latitude: ${latitude}`);
|
|
1972
|
+
this.setSun(longitude, latitude);
|
|
1973
|
+
} else {
|
|
1974
|
+
this.log.error('System location settings cannot be called up. Please check configuration!');
|
|
1975
|
+
}
|
|
1976
|
+
});
|
|
1981
1977
|
}
|
|
1982
1978
|
|
|
1983
1979
|
async setSun(longitude, latitude) {
|