NEWS
[gelöst] vis / Control-Command / playSound
-
Hallo Zusammen,
im Rahmen meiner Sound-Implementierung wollte ich die Sounds für den Alarm nicht über den Virw, sonbder iBroker auslösen.
Daher haben ich folgendes implementiert - basierend auf einer LED-Anzeige - änder eich noch in eine System-Variable.
setState("vis.0.control.command", '{"instance": "FFFFFFFF", "command": "playSound", "data": "http://192.168.1.5:8082/vis//widgets/lcars/mp3/alert24.mp3"}');
Jedoch bekomme ich im Log dann folgende Fehlermeldungen, immer wenn ein Sound abgespielt wird, es funktioniert jedoch ohne Probleme. - eine Idee?
TypeError: 2015-07-17 07:49:08 error at TCP.onread (net.js:526:21) TypeError: 2015-07-17 07:49:08 error at Socket.Readable.push (_stream_readable.js:127:10) TypeError: 2015-07-17 07:49:08 error at readableAddChunk (_stream_readable.js:165:9) TypeError: 2015-07-17 07:49:08 error at emitReadable (_stream_readable.js:404:5) TypeError: 2015-07-17 07:49:08 error at emitReadable_ (_stream_readable.js:408:10) TypeError: 2015-07-17 07:49:08 error at Socket.EventEmitter.emit (events.js:92:17) TypeError: 2015-07-17 07:49:08 error at Socket. (_stream_readable.js:746:14) TypeError: 2015-07-17 07:49:08 error at Socket.EventEmitter.emit (events.js:95:17) TypeError: 2015-07-17 07:49:08 error at Socket.firstHandler (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/WebSocket.js:678:22) TypeError: 2015-07-17 07:49:08 error at Receiver.add (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/Receiver.js:93:24) TypeError: 2015-07-17 07:49:08 error at Receiver.expectHandler (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/Receiver.js:384:31) TypeError: 2015-07-17 07:49:08 error at Receiver.opcodes.1.finish (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/Receiver.js:397:14) TypeError: 2015-07-17 07:49:08 error at Receiver.self._receiver.ontext (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/WebSocket.js:697:10) TypeError: 2015-07-17 07:49:08 error at WebSocket.EventEmitter.emit (events.js:98:17) TypeError: 2015-07-17 07:49:08 error at WebSocket.onMessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/WebSocket.js:360:18) TypeError: 2015-07-17 07:49:08 error at WebSocket.ws.onmessage (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/websocket.js:112:10) TypeError: 2015-07-17 07:49:08 error at WS.Transport.onData (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:139:8) TypeError: 2015-07-17 07:49:08 error at WS.Transport.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:147:8) TypeError: 2015-07-17 07:49:08 error at WS.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20) TypeError: 2015-07-17 07:49:08 error at WS. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:248:10) TypeError: 2015-07-17 07:49:08 error at Socket.onPacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:430:14) TypeError: 2015-07-17 07:49:08 error at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20) TypeError: 2015-07-17 07:49:08 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) TypeError: 2015-07-17 07:49:08 error at Manager.ondata (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:291:16) TypeError: 2015-07-17 07:49:08 error at Decoder.add (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12) TypeError: 2015-07-17 07:49:08 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20) TypeError: 2015-07-17 07:49:08 error at Decoder. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) TypeError: 2015-07-17 07:49:08 error at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:301:8) TypeError: 2015-07-17 07:49:08 error at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20) TypeError: 2015-07-17 07:49:08 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15) TypeError: 2015-07-17 07:49:08 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:212:12) TypeError: 2015-07-17 07:49:08 error at Socket.onevent (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:254:10) TypeError: 2015-07-17 07:49:08 error at Socket.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20) TypeError: 2015-07-17 07:49:08 error at Socket.StatesInMemClient.client.on.connectionTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/statesInMemClient.js:45:30) TypeError: 2015-07-17 07:49:08 error at Object.that.states.States.change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:1859:80) TypeError: 2015-07-17 07:49:08 error at Object.utils.adapter.stateChange (/opt/iobroker/node_modules/iobroker.javascript/javascript.js:145:17) TypeError: 2015-07-17 07:49:08 error at checkPatterns (/opt/iobroker/node_modules/iobroker.javascript/javascript.js:326:17) TypeError: 2015-07-17 07:49:08 error at getObjectEnums (/opt/iobroker/node_modules/iobroker.javascript/javascript.js:1870:33) TypeError: 2015-07-17 07:49:08 error Cannot call method 'indexOf' of undefined message 2015-07-17 07:49:08 error hm-rega.0.950 [object Object] Cannot call method 'indexOf' of undefined
Danke und Gruß
Mike
-
Habe Fehler gefunden in iobroker.javascript.
Danke.
-
Daher haben ich folgendes implementiert - basierend auf einer LED-Anzeige - änder eich noch in eine System-Variable. `
Ich frage hier auch einfach mal nach.
Was bedeutet denn "basierend auf einer LED-Anzeige"?
Den Sound bekomme ich mit dem setState abgespielt. Danke!
-
Hallo ruhr70,
alles fein, klappt nun auch beim mir.
Ich meinte damit nur - ich frage den Status einer Homematic LED-Anzeige ab und spiele dann den Sound. Das änder eich noch auf eine Variable.
Viele Grüße
Mike