iobroker.sayit 4.0.2 → 4.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 +2 -1
- package/io-package.json +13 -13
- package/main.js +15 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -267,9 +267,10 @@ The following values for engines are possible:
|
|
|
267
267
|
### **WORK IN PROGRESS**
|
|
268
268
|
-->
|
|
269
269
|
## Changelog
|
|
270
|
-
### 4.0.
|
|
270
|
+
### 4.0.3 (2024-07-11)
|
|
271
271
|
* (bluefox) Packages updated
|
|
272
272
|
* (bluefox) Corrected playing in vis
|
|
273
|
+
* (bluefox) Corrected blockly
|
|
273
274
|
|
|
274
275
|
### 4.0.1 (2024-05-25)
|
|
275
276
|
* (bluefox) Packages updated
|
package/io-package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "sayit",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.3",
|
|
5
5
|
"news": {
|
|
6
|
-
"4.0.
|
|
7
|
-
"en": "Packages updated\nCorrected playing in vis",
|
|
8
|
-
"de": "Pakete aktualisiert\nKorrigiertes Spielen in Vis",
|
|
9
|
-
"ru": "Обновленные пакеты\nИсправленная игра в vis",
|
|
10
|
-
"pt": "Pacotes atualizados\nJogo correto em vis",
|
|
11
|
-
"nl": "Pakketten bijgewerkt\nGecorrigeerd spelen in vis",
|
|
12
|
-
"fr": "Mise à jour des paquets\nCorrigé jouer dans vis",
|
|
13
|
-
"it": "Pacchetti aggiornati\nCorretto giocare in vis",
|
|
14
|
-
"es": "Paquetes actualizados\nCorregido jugando en vis",
|
|
15
|
-
"pl": "Aktualizacja pakietów\nPoprawione gry w vis",
|
|
16
|
-
"uk": "Пакети оновлені\nПравильна гра в
|
|
17
|
-
"zh-cn": "更新软件包\n
|
|
6
|
+
"4.0.3": {
|
|
7
|
+
"en": "Packages updated\nCorrected playing in vis\nCorrected blockly",
|
|
8
|
+
"de": "Pakete aktualisiert\nKorrigiertes Spielen in Vis\nBlockiert korrigiert",
|
|
9
|
+
"ru": "Обновленные пакеты\nИсправленная игра в vis\nИсправлено блокно",
|
|
10
|
+
"pt": "Pacotes atualizados\nJogo correto em vis\nCorrigido em bloco",
|
|
11
|
+
"nl": "Pakketten bijgewerkt\nGecorrigeerd spelen in vis\nBloksgewijs gecorrigeerd",
|
|
12
|
+
"fr": "Mise à jour des paquets\nCorrigé jouer dans vis\nCorrigé en bloc",
|
|
13
|
+
"it": "Pacchetti aggiornati\nCorretto giocare in vis\nCorretto in blocco",
|
|
14
|
+
"es": "Paquetes actualizados\nCorregido jugando en vis\nCorregido bloqueado",
|
|
15
|
+
"pl": "Aktualizacja pakietów\nPoprawione gry w vis\nPoprawione blokowane",
|
|
16
|
+
"uk": "Пакети оновлені\nПравильна гра в віках\nВиправлено блоклі",
|
|
17
|
+
"zh-cn": "更新软件包\n已校正播放相对\n块状修正"
|
|
18
18
|
},
|
|
19
19
|
"4.0.1": {
|
|
20
20
|
"en": "Packages updated\nUsing the pre-calculated duration of the mp3 to wait long enough even for longer announcements",
|
package/main.js
CHANGED
|
@@ -102,7 +102,21 @@ function startAdapter(options) {
|
|
|
102
102
|
|
|
103
103
|
function processMessage(obj) {
|
|
104
104
|
if (obj) {
|
|
105
|
-
if (obj.command === '
|
|
105
|
+
if (obj.command === 'say') {
|
|
106
|
+
const text = obj.message.text;
|
|
107
|
+
const language = obj.message?.language;
|
|
108
|
+
const volume = obj.message?.volume;
|
|
109
|
+
|
|
110
|
+
if (obj.callback) {
|
|
111
|
+
const opts = {...obj.message};
|
|
112
|
+
opts.callback = error => {
|
|
113
|
+
adapter.sendTo(obj.from, obj.command, {error, result: error ? undefined : 'Ok'}, obj.callback);
|
|
114
|
+
};
|
|
115
|
+
addToQueue(text, language, volume, null, opts);
|
|
116
|
+
} else {
|
|
117
|
+
addToQueue(text, language, volume);
|
|
118
|
+
}
|
|
119
|
+
} else if (obj.command === 'stopInstance') {
|
|
106
120
|
stop(false, () =>
|
|
107
121
|
obj.callback && adapter.sendTo(obj.from, obj.command, null, obj.callback));
|
|
108
122
|
} else if (obj.callback && obj.command === 'browseGoogleHome') {
|