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

    Posts

    Recent Best Controversial
    • RE: Hello-Lucy installation troubles

      @Mykle1 I do not believe it is related some mod I did to the original checkCommand, because I am adding one module at a time and the error occurred randomly. When I removed the last module that I added to Lucy, the error remained

      Edit:
      It is true, it is quite unstable the module and sometimes it runs and others it doesn’t. For instance, I put inside MMM-DarkSkyForecast, both in the config.js and in the checkCommand.json. There is no error, but the module does not start. Further, Lucy does not start either, no intro sound and microphone that blinks. Plus all the modules show up.
      When I remove DarkSky from the config.js, then it works again. If I try DarkSky on a config.js without Lucy, it works!

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      @Mykle1 Hi Mykle! Thank you, I will absolutely update the repo.
      The issue is this: after a while on npm start and ctrl+c in the MM, to check the modules and the correct behaviour of them, I noticed that the microphone starts to blink on the upper right corner and the phrase “command please” comes up. From that point, Lucy does not recognise any word I say, even if the microphone is full functional and records super fine.

      One thing for the sound, I realise that for the intro sound (1.mp3 and 11.mp3) you have to keep the [], even if there is only one .mp3 file. Was is supposed to be like this? Because the ding.mp3 is not between brackets, but I remove the brackets from the intro sound, then Lucy does not play any sound at the start up

      Edit:
      I managed to make everything work! However I have a problem now, because the error occurred again
      [20:12:09.572] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: SyntaxError: Unexpected token ] in JSON at position 7147
      at JSON.parse ()
      at Object. (/home/pi/MagicMirror/modules/Hello-Lucy/node_helper.js:26:26)
      at Module._compile (internal/modules/cjs/loader.js:786:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
      at Module.load (internal/modules/cjs/loader.js:645:32)
      at Function.Module._load (internal/modules/cjs/loader.js:560:12)
      at Module.require (internal/modules/cjs/loader.js:685:19)
      at require (internal/modules/cjs/helpers.js:16:16)
      at loadModule (/home/pi/MagicMirror/js/app.js:132:17)
      at loadNextModule (/home/pi/MagicMirror/js/app.js:166:5)

      It just happened, 3 mins ago I was able to use Lucy without problems!

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      Ok so, troubles again sorry! I just restarted MM and now Lucy starts but does not hide my modules and does not get the starting phrase. The microphone is working as the speaker, and the modules are the same as before.
      No clue why this occurs, no errors during MM startup

      Edit:
      I notice that the intro voice starts, as well as the mic icon and the string “Say Hello Lucy”. However, all my modules are there, as the program does not hide them, and the start phrase is not recognised. I just used alsamixer to check the card number, which matches the config.js one. Further, I tried to record myself and the microphone works without problems, I can clearly hear my voice and the hello Lucy phrase.
      Maybe something in the program is still making some troubles? Many thanks again Mykle!

      So many edit:
      Now when I start the MM, the microphone blinks barred, like no microphone. And it’s stated “Command Please”. It is weird, because I launched it and it froze on the “command” and no mic and no welcome phrases. Sometimes it starts tho, without really a scheme

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      @Mykle1 You are the man! Now it works without problems! I just can’t get my intro .mp3 work, but that is simple fix. Many thanks Mykle! Have a nice day and sorry for the problems :)

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      @Mykle1 Perfect! I will do it right now, let me just boot my raspi. Many thanks and sorry once more, I was into solving this problem, but I could not figure out where the json was ahah!

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      I can see I did not really explained myself, and I am sorry for that. I did the three passages of yours in the readme, and after reinstalling everything now it does not show me any error during installation! Yes!
      BUT, now I run MagicMirror with the module installed and put in the config.js, and this message comes up:

      No helper found for module: alert.
      [15:12:13.980] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: SyntaxError: Unexpected token ] in JSON at position 6643

      This occurs only when I put the module in config.js, but I don’t know where the error is, what is the JSON file?
      Many thanks and sorry!

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      @sdetweil actually I have dependencies.sh, because the ./ makes it invisible even if it was there. Typing ls in installers makes me see the normal dependencies.sh

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      @SSkull995 just to be sure, I ran the program again, the installer. This time with the ./dependencies. Errors+no dependencies directory found

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      @sdetweil man, I never ran sudo.
      And I still don’t know why the program gives me the error about the config.json file and the dependencies.sh
      Btw, ./dependencies is no command

      posted in Troubleshooting
      S
      SSkull995
    • RE: Hello-Lucy installation troubles

      @sdetweil
      This is the output error when I run npm start. I generated the config.json with the npm init, no more errors during dependencies installation.

      [17:54:16.999] [ERROR] App threw an error during load
      [17:54:17.000] [ERROR] Error: Cannot find module ‘pocketsphinx-continuous’
      at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
      at Function.Module._resolveFilename (/home/pi/MM/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
      at Function.Module._resolveFilename (/home/pi/MM/node_modules/module-alias/index.js:49:29)
      at Function.Module._load (internal/modules/cjs/loader.js:528:25)
      at Module.require (internal/modules/cjs/loader.js:658:17)
      at require (internal/modules/cjs/helpers.js:20:18)
      at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:2:13)
      at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:410:3)
      at Module._compile (internal/modules/cjs/loader.js:711:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
      [17:54:17.002] [LOG] Whoops! There was an uncaught exception…
      [17:54:17.002] [ERROR] { Error: Cannot find module ‘pocketsphinx-continuous’
      at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
      at Function.Module._resolveFilename (/home/pi/MM/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
      at Function.Module._resolveFilename (/home/pi/MM/node_modules/module-alias/index.js:49:29)
      at Function.Module._load (internal/modules/cjs/loader.js:528:25)
      at Module.require (internal/modules/cjs/loader.js:658:17)
      at require (internal/modules/cjs/helpers.js:20:18)
      at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:2:13)
      at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:410:3)
      at Module._compile (internal/modules/cjs/loader.js:711:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10) code: ‘MODULE_NOT_FOUND’ }

      There still is this:
      [STEP 3/5] Installing pocketsphinx | Done
      [STEP 4/5] Exporting paths
      [STEP 4/5] Exporting paths | Done
      [STEP 5/5] Installing npm dependencies
      dependencies.sh: line 89: cd: /root/MagicMirror/modules/Hello-Lucy: No such file or directory

      Why no directory in root? Many thanks and sorry!

      posted in Troubleshooting
      S
      SSkull995
    • 1 / 1