Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. [gelöst] vis / Control-Command / playSound

    NEWS

    • Neues Video auf YouTube

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    [gelöst] vis / Control-Command / playSound

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      diablolot last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        Habe Fehler gefunden in iobroker.javascript.

        Danke.

        1 Reply Last reply Reply Quote 0
        • ruhr70
          ruhr70 last edited by

          @diablolot:

          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!

          1 Reply Last reply Reply Quote 0
          • D
            diablolot last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate

            823
            Online

            32.0k
            Users

            80.5k
            Topics

            1.3m
            Posts

            3
            4
            2823
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo