Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. sayit geht nach update auf admin5 und js 3.3 nicht mehr

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    sayit geht nach update auf admin5 und js 3.3 nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @bahnuhr last edited by Thomas Braun

      @bahnuhr

      Unter Linux beginnen 'absolute Pfade' immer mit dem Wurzelverzeichnis.
      Pfadangaben relativ zur aktuellen Position im Verzeichnisbaum können ohne / oder mit . beginnen.

      echad@chet:~ $ cd opt
      -bash: cd: opt: Datei oder Verzeichnis nicht gefunden
      echad@chet:~ $ cd /opt
      echad@chet:/opt $
      

      Und deswegen wird auch immer die komplette Ein- und Ausgabe gewünscht, wenn etwas aus der Konsole hier reinkopiert wird. Damit man sieht wo der Kandidat 'relativ' im Dateibaum steht. Oder es werden gleich in den Antworten absolute Pfade vorgegeben, ob die jetzt erforderlich sind oder nicht.

      bahnuhr F 2 Replies Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active @Thomas Braun last edited by

        @thomas-braun
        ok, so ganz verstanden habe ich es nicht.

        Denn vorher war doch mein pfad

        opt/iobroker...

        und da hat offensichtlich iobroker doch das fehlende davor gesetzt.

        Und nach dem update halt nicht.

        Vielleicht hilft es ja anderen die den gleichen Fehler in den Scripten haben.

        F 1 Reply Last reply Reply Quote 0
        • F
          fastfoot @Thomas Braun last edited by

          @thomas-braun sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

          relativ zur aktuellen Position im Verzeichnisbaum

          und diese Position ist mW /opt/iobroker/node_modules/iobroker.javascript/, so zeigt es jedenfalls pwd an

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • F
            fastfoot @bahnuhr last edited by

            @bahnuhr sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

            Denn vorher

            ... wurde es halt laxer gehandhabt

            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @fastfoot last edited by

              @fastfoot
              Keine Ahnung was das working directory ist. Jedenfalls ist es mit einem absoluten Pfad immer richtig.

              1 Reply Last reply Reply Quote 0
              • lobomau
                lobomau @bahnuhr last edited by

                @bahnuhr Fehler hast du ja bereits gefunden 👍
                Nun wollte ich es bei mir mal nachstellen, da ich noch nie ein mp3 über ioB abgespielt habe.
                Gibt es eine Beschränkung bzgl. des mp3? Ich habe eine mit 3,7 MB Größe ausprobiert.

                bahnuhr F 2 Replies Last reply Reply Quote 0
                • bahnuhr
                  bahnuhr Forum Testing Most Active @lobomau last edited by

                  @lobomau sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                  Gibt es eine Beschränkung bzgl. des mp3? Ich habe eine mit 3,7 MB Größe ausprobiert.

                  Kann ich nicht beantworten. Benutze die kleinen mp3 nur so als "Ansage-Gong".

                  Aber probier es doch aus.
                  Und geb dann Bescheid.

                  lobomau 1 Reply Last reply Reply Quote 0
                  • F
                    fastfoot @lobomau last edited by

                    @lobomau sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                    Ich habe eine mit 3,7 MB Größe ausprobiert.

                    jetzt stehe ich mal auf dem Schlauch. SayIt erstellt doch MP3 aus Text

                    bahnuhr 1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active @fastfoot last edited by

                      @fastfoot sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                      @lobomau sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                      Ich habe eine mit 3,7 MB Größe ausprobiert.

                      jetzt stehe ich mal auf dem Schlauch. SayIt erstellt doch MP3 aus Text

                      Nein, sayit kann auch mp3 abspielen.
                      Siehe script oben.

                      Ich benutze verschiedene mp3 als eingangs Ton und danach werden mit timeout der Text abgespielt.

                      z.B. so:

                      setState('sayit.3.tts.text', '/opt/iobroker/iobroker-data/files/vis.0/mp3/tos-computer-03.mp3');
                      setTimeout(function() { setState('sayit.4.tts.text', "Spülmaschine ist fertig.") } , 3000);
                      

                      Für den "gong" benutze ich sayit.3 und für den Text sayit.4
                      (musste 2 Instanzen nehmen; ansonsten gab es ein Problem (weiß jetzt aber nicht mehr welches)).

                      F 1 Reply Last reply Reply Quote 0
                      • lobomau
                        lobomau @bahnuhr last edited by

                        @bahnuhr hab ich ausprobiert. Bleibt stumm, auch keine Fehlermeldung.
                        Hab einfach Einzeiler genommen:

                        Funktioniert:

                        setState('sayit.0.tts.text', 'Hallo');
                        

                        Funktioniert nicht:

                        setState('sayit.0.tts.text', '/opt/iobroker/iobroker-data/files/vis.0/mp3/badboys.mp3');
                        

                        Vorher frisch mp3 upgeloaded:
                        2abe2db0-cb63-4242-8cbf-c9529e25047e-image.png

                        bahnuhr 1 Reply Last reply Reply Quote 0
                        • F
                          fastfoot @bahnuhr last edited by

                          @bahnuhr sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                          Nein, sayit kann auch mp3 abspielen.

                          cool, wieder was gelernt 🙂

                          1 Reply Last reply Reply Quote 0
                          • bahnuhr
                            bahnuhr Forum Testing Most Active @lobomau last edited by

                            @lobomau sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                            Funktioniert nicht:

                            Hast du mal ne ganz kleine Datei probiert?

                            lobomau 1 Reply Last reply Reply Quote 0
                            • lobomau
                              lobomau @bahnuhr last edited by lobomau

                              @bahnuhr bin grad am Suchen...

                              Edit.: geht auch nicht. 😞

                              sayit.0.tts.text
                              

                              wird korrekt gefüllt mit:

                              /opt/iobroker/iobroker-data/files/vis.0/mp3/glas-scheibe.mp3
                              
                              bahnuhr 2 Replies Last reply Reply Quote 0
                              • bahnuhr
                                bahnuhr Forum Testing Most Active @lobomau last edited by

                                @lobomau sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                                @bahnuhr bin grad am Suchen...

                                Edit.: geht auch nicht. 😞

                                Hast du die gleichen Eingaben in der Instanz wie ich.
                                Also auf browser eingestellt.

                                Oder wo willst du die Datei abspielen?

                                lobomau 1 Reply Last reply Reply Quote 0
                                • bahnuhr
                                  bahnuhr Forum Testing Most Active @lobomau last edited by

                                  @lobomau sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                                  wird korrekt gefüllt mit:

                                  Also klappt es.
                                  Sehr gut.

                                  1 Reply Last reply Reply Quote 0
                                  • lobomau
                                    lobomau @bahnuhr last edited by

                                    @bahnuhr nee, nicht gleich... spielt auf google mini ab. Text für Sprache kein Problem.

                                    bahnuhr 1 Reply Last reply Reply Quote 0
                                    • bahnuhr
                                      bahnuhr Forum Testing Most Active @lobomau last edited by bahnuhr

                                      @lobomau sagte in sayit geht nach update auf admin5 und js 3.3 nicht mehr:

                                      google mini

                                      oder alexa hab ich auch mal probiert.

                                      Musste du (glaube ich) über ein cloud gehen.

                                      Hatte dies aber dann aufgegeben.

                                      Bei mir hängt im Wohnzimmer ein Win Surface Tablet. Und da muss der Ton ankommen.

                                      lobomau 1 Reply Last reply Reply Quote 0
                                      • lobomau
                                        lobomau @bahnuhr last edited by

                                        @bahnuhr ich habe mal zum Testen auf Browser gestellt. Auch kein Ton. Was soll´s. Ich bleibe dann bei den Sprachansagen. 👍

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        397
                                        Online

                                        31.9k
                                        Users

                                        80.1k
                                        Topics

                                        1.3m
                                        Posts

                                        error sayit
                                        6
                                        30
                                        507
                                        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