MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. dvbit
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 9
    • Posts 115
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: mmm assistant mk2

      @sdetweil
      done
      here the output

      pi@MagicMirror:~/MagicMirror/node_modules/electron/dist $ bash -c $(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixsandbox)
      pi@MagicMirror:~/MagicMirror/node_modules/electron/dist $ ls -la
      total 107496
      drwxr-xr-x 4 pi pi     4096 May 30 12:38 .
      drwxr-xr-x 4 pi pi     4096 May 30 12:38 ..
      -rw-r--r-- 1 pi pi   145945 May 30 12:38 chrome_100_percent.pak
      -rw-r--r-- 1 pi pi   209147 May 30 12:38 chrome_200_percent.pak
      -rwxr-xr-x 1 pi pi  4202140 May 30 12:38 chrome-sandbox
      -rwxr-xr-x 1 pi pi 74664904 May 30 12:38 electron
      -rw-r--r-- 1 pi pi 10410272 May 30 12:38 icudtl.dat
      -rwxr-xr-x 1 pi pi   157372 May 30 12:38 libEGL.so
      -rwxr-xr-x 1 pi pi  1949660 May 30 12:38 libffmpeg.so
      -rwxr-xr-x 1 pi pi  4883208 May 30 12:38 libGLESv2.so
      -rw-r--r-- 1 pi pi     1060 May 30 12:38 LICENSE
      -rw-r--r-- 1 pi pi  3961766 May 30 12:38 LICENSES.chromium.html
      drwxr-xr-x 2 pi pi     4096 May 30 12:38 locales
      -rw-r--r-- 1 pi pi    83237 May 30 12:38 natives_blob.bin
      drwxr-xr-x 2 pi pi     4096 May 30 12:38 resources
      -rw-r--r-- 1 pi pi  8471329 May 30 12:38 resources.pak
      -rw-r--r-- 1 pi pi   275792 May 30 12:38 snapshot_blob.bin
      -rw-r--r-- 1 pi pi   608820 May 30 12:38 v8_context_snapshot.bin
      -rw-r--r-- 1 pi pi        5 May 30 12:38 version
      
      

      I mean I did run the bash
      No output. here is the detail listing of the folder.
      I do not see any timestamps changed…

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      @Bugsounet said in mmm assistant mk2:

      ~/MagicMirror/node_modules/electron/dist $ ls -la

      pi@MagicMirror:~/MagicMirror $ ~/MagicMirror/node_modules/electron/dist $ ls -la
      bash: /home/pi/MagicMirror/node_modules/electron/dist: Is a directory
      pi@MagicMirror:~/MagicMirror $ cd ~/MagicMirror/node_modules/electron/dist 
      pi@MagicMirror:~/MagicMirror/node_modules/electron/dist $ ls -la
      total 107496
      drwxr-xr-x 4 pi pi     4096 May 30 12:38 .
      drwxr-xr-x 4 pi pi     4096 May 30 12:38 ..
      -rw-r--r-- 1 pi pi   145945 May 30 12:38 chrome_100_percent.pak
      -rw-r--r-- 1 pi pi   209147 May 30 12:38 chrome_200_percent.pak
      -rwxr-xr-x 1 pi pi  4202140 May 30 12:38 chrome-sandbox
      -rwxr-xr-x 1 pi pi 74664904 May 30 12:38 electron
      -rw-r--r-- 1 pi pi 10410272 May 30 12:38 icudtl.dat
      -rwxr-xr-x 1 pi pi   157372 May 30 12:38 libEGL.so
      -rwxr-xr-x 1 pi pi  1949660 May 30 12:38 libffmpeg.so
      -rwxr-xr-x 1 pi pi  4883208 May 30 12:38 libGLESv2.so
      -rw-r--r-- 1 pi pi     1060 May 30 12:38 LICENSE
      -rw-r--r-- 1 pi pi  3961766 May 30 12:38 LICENSES.chromium.html
      drwxr-xr-x 2 pi pi     4096 May 30 12:38 locales
      -rw-r--r-- 1 pi pi    83237 May 30 12:38 natives_blob.bin
      drwxr-xr-x 2 pi pi     4096 May 30 12:38 resources
      -rw-r--r-- 1 pi pi  8471329 May 30 12:38 resources.pak
      -rw-r--r-- 1 pi pi   275792 May 30 12:38 snapshot_blob.bin
      -rw-r--r-- 1 pi pi   608820 May 30 12:38 v8_context_snapshot.bin
      -rw-r--r-- 1 pi pi        5 May 30 12:38 version
      
      

      Please look also post above: I realize my asoundrc file may be screwed since I did not complete on second install the sound output wizard successfully

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      @dvbit said in mmm assistant mk2:

      Update: I reinstalled from scratch (again for a2d I had to do a npm rebuild, you may want to take note)

      Still the same issue of assistant hanging after query:
      I do the query, hotword recognized, query recognized, answer fetched, answer saved in temp and displayed on screen bottom but no audio feedback and gogle spin icon going.
      After refreshing the screen goes again in “steady state”

      Now I am sure I have a sound output issue.
      Meaning that I can play sounds on the mirror via vlc but somehow the plugin cannot.
      I guess that somehow the plugin does not receive a feedback of “play ended” from the output.
      What I also noticed is that if I refresh the browser by vnc the mirror will go again in a waiting status.
      Will continue checking

      could it be this: https://github.com/raspberrypi/firmware/issues/1243

      Edit: Nope - vlc outputs sound

      IMPORTANT:
      The Install script for the audio output was succesfull just the first time.
      on second install I skipped the output part as I could not get through indeed.
      However the input was working just fine. recorded my voice and could hear it.

      Posting here my asoundrc file

      pcm.!default {
        type asym
        playback.pcm {
          type plug
          slave.pcm "output"
        }
        capture.pcm {
          type plug
          slave.pcm "input"
        }
      }
      
      pcm.output {
        type hw
        card 0
      }
      
      ctl.!default {
        type hw
        card 0
      
      

      Input is : kinect microphones
      Output : TV speakers (directly through TV speakers)

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      Update: I reinstalled from scratch (again for a2d I had to do a npm rebuild, you may want to take note)

      Still the same issue of assistant hanging after query:
      I do the query, hotword recognized, query recognized, answer fetched, answer saved in temp and displayed on screen bottom but no audio feedback and gogle spin icon going.
      After refreshing the screen goes again in “steady state”

      Now I am sure I have a sound output issue.
      Meaning that I can play sounds on the mirror via vlc but somehow the plugin cannot.
      I guess that somehow the plugin does not receive a feedback of “play ended” from the output.
      What I also noticed is that if I refresh the browser by vnc the mirror will go again in a waiting status.
      Will continue checking

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      Hi
      Curious it has been working for the first calls.
      Now It answers on screen.
      Not via speakers (but that could be for sure a problem with my audio setup)
      The other thing is that the on screen google assistant prompt on top keeps spinning and no further interaction is possible.

      Here is the debug log.
      I can see the call is successfully created files inthe tmp directory and have scped them to my laptop and they are ok.
      What changed in between was the tests are that I installed a2d .

      While I investigate on my audio output to check if it works I post the log in debug mode
      I see a suspicious “null” in volume in the log.
      I tried a vlc lastResponse.mp3 and it was correctly output

      [2020-06-01 12:15:47.539] [LOG]    [ASSISTANT:AS] CONVERSATION:SCREEN object
      [2020-06-01 12:15:47.542] [LOG]    [ASSISTANT:AS] CONVERSATION:ACTION { requestId: '5ed37b16-0000-2f10-85f3-089e0827ce88' }
      [2020-06-01 12:15:47.543] [LOG]    [ASSISTANT:AS] CONVERSATION:RESPONSE 
      [2020-06-01 12:15:47.589] [LOG]    [ASSISTANT:AS] CONVERSATION:AUDIO 1600
      [2020-06-01 12:15:47.592] [LOG]    [ASSISTANT:AS] CONVERSATION:AUDIO 1600
      [2020-06-01 12:15:47.593] [LOG]    [ASSISTANT:AS] CONVERSATION:AUDIO 1600
      [2020-06-01 12:15:47.594] [LOG]    [ASSISTANT:AS] CONVERSATION:AUDIO 1600
      [2020-06-01 12:15:47.596] [LOG]    [ASSISTANT:AS] CONVERSATION:AUDIO 1600
      [2020-06-01 12:15:47.597] [LOG]    [ASSISTANT:AS] CONVERSATION:AUDIO 1600
      [2020-06-01 12:15:47.598] [LOG]    [ASSISTANT:AS] CONVERSATION:AUDIO 768
      [2020-06-01 12:15:47.602] [LOG]    [ASSISTANT:AS] CONVERSATION_ALL_RESPONSES_RECEIVED
      [2020-06-01 12:15:47.603] [LOG]    [ASSISTANT:AS] CONVERSATION_END:COMPLETED
      [2020-06-01 12:15:47.603] [LOG]    [ASSISTANT:AS] CONVERSATION_PP:RESPONSE_AUDIO_PROCESSED
      [2020-06-01 12:15:47.604] [LOG]    [MP3] MP3 FILE CREATED 10368 bytes
      [2020-06-01 12:15:47.656] [LOG]    [ASSISTANT:SP] CONVERSATION:SCREENOUTPUT_CREATED
      [2020-06-01 12:15:47.657] [LOG]    [ASSISTANT] ASSISTANT_RESULT { error: null,
        action: { requestId: '5ed37b16-0000-2f10-85f3-089e0827ce88' },
        text: null,
        screen:
         { text:
            'Bracciano RM / Ora locale\n12:15\nlunedì 1 giugno 2020\nOrario (Edited)',
           links: [],
           photos: [],
           path:
            '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/tmp/lastScreenOutput.html',
           uri: 'tmp/lastScreenOutput.html' },
        audio:
         { path:
            '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/tmp/lastResponse.mp3',
           uri: 'tmp/lastResponse.mp3' },
        transcription: { transcription: 'a che ora è', done: true },
        continue: false,
        volume: null,
        lastQuery:
         { type: 'MIC',
           key: null,
           lang: 'it-IT',
           useScreenOutput: true,
           useAudioOutput: true,
           status: 'standby',
           chime: true } }
      
      
      
      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      A2D was not working at first launch.
      npm rebuild in the directory did the trick.
      Working now

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      and flawless install!
      Thanks @Bugsounet

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      Installing . Flawless process

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      @Bugsounet yep. Sure. Reading now. Installing tomorrow.and giving you feedback.
      If you need help in giving simple support (i.e. dumb Linux, not reading the wiki … Aka not real issue / first level support I can try to help you there :-))

      posted in Troubleshooting
      D
      dvbit
    • RE: mmm assistant mk2

      @Bugsounet great!
      Will be testing.
      And reporting quietly .

      Tx again. Merci

      Ps: good I have exactly the same setup.

      posted in Troubleshooting
      D
      dvbit
    • 1 / 1