MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Hello-Lucy installation troubles

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    31 Posts 4 Posters 9.6k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      SSkull995 @Mykle1
      last edited by SSkull995

      @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!

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @SSkull995
        last edited by Mykle1

        @SSkull995 said in Hello-Lucy installation troubles:

        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?

        Yes.

        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

        That is correct. You can remove the contents of the brackets but not the brackets themselves.

        Please correct syntax errors at or above this line: SyntaxError: Unexpected token ] in JSON at position 7147
        at JSON.parse ()

        I just mentioned this error above and the reason for it. If you have added to/modified the checkCommands.json file it is likely you left a comma after the very last array in the file, or some other mistake.

        I’m finding it hard to pinpoint your issue based on your description of the problems you’re having. Sometimes it works, sometimes it doesn’t.

        Create a working config
        How to add modules

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          SSkull995 @Mykle1
          last edited by SSkull995

          @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!

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @SSkull995
            last edited by

            @SSkull995 said in Hello-Lucy installation troubles:

            When I remove DarkSky from the config.js, then it works again.

            Interesting and very telling. I’m not accusing you of making mistakes but they do happen. I am unable to duplicate the issues that you are stating. I just installed DarkSkyForecast and added it to Lucy without a problem.

            Post your config entry for Lucy (in a code block) and I’ll take a look at it again

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer
              last edited by

              MMM-DarkSkyForecast now works by default with Hello-Lucy and has been added to the repo

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • V Offline
                varad wattamwar
                last edited by

                Im facing the same issue , Hello Lucy is not detecting my voice. I have removed Google assistant module, my mic is working fine, my installing is correct, my rpi model is 3B+.
                Please can someone help me.

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @varad wattamwar
                  last edited by

                  @varad-wattamwar

                  Lucy does have trouble with some accents. My friend from Norway experienced terrible recognition issues. Lucy will never have the accuracy of Google or Alexa.

                  With that said:
                  Are you receiving any errors in terminal or dev console?
                  Is there an error on the display.
                  Do you see a green microphone icon next to the words, “Say, Hello Lucy”?

                  Create a working config
                  How to add modules

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Mykle1
                    last edited by

                    @mykle1 someone else in India having trouble, add the

                    debug:true,
                    

                    option to the Lucy
                    config:{}

                    section in config.js

                    and then while running examing the console where u start MM,
                    either npm start or pm2 (pm2 logs --lines=100)

                    as the voice reco receiver logs what it (thinks it) heard

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 4
                    • 3 / 4
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy