MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Hello-Lucy Not shown, NO ERROR

    Troubleshooting
    3
    8
    279
    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.
    • N
      Nicodil last edited by

      Hi,

      I tried to get the Hello-Lucy Plugin to work.
      My sound drivers are working and i can also record with aplay and arecord.

      My Microphone is a MicrosoftLifecam and on card 2, device 0.
      Speaker is on 1,0 (aux).

      When i start magicMirrorm all modules are shown normal and i cannot see Lucy at all…

      7fd0dd58-ad63-4349-9be7-7b297d9c7d8e-image.png

      Any ideas what to do?

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

        @nicodil what position is the lucy module configured for in config.js?

        Sam

        Create a working config
        How to add modules

        N 1 Reply Last reply Reply Quote 0
        • N
          Nicodil @sdetweil last edited by

          Hi @sdetweil ,

          at the moment it is on the first position. But i also had it near the end when i started.

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

            @nicodil no

            {
               module: "MMM-Hello-Lucy",
              position: " ????????",
              config:{  
              .
              .
              }
            }
            

            if you don’t have position set, then MM will not put the module content on the screen

            Sam

            Create a working config
            How to add modules

            N 1 Reply Last reply Reply Quote 0
            • N
              Nicodil @sdetweil last edited by Nicodil

              @sdetweil Oh, i see!
              position: “top_center”, is already set…

              {
              disabled: false,
              module: "Hello-Lucy",
              position: "top_center",
              config: {
                  keyword: 'HELLO LUCY',              // keyword to activate listening for a command/sentence
                  timeout: 15,                        // timeout listening for a command/sentence
                  standByMethod: 'DPMS',              // 'DPMS' = anything else than RPi or 'PI'
                  microphone: "2,0",                  // run "arecord -l" card # and device # mine is "0,0"
                  sounds: ["1.mp3", "11.mp3"],        // welcome sound at startup. Add several for a random greetings
                  confirmationSound: "ding.mp3",      // name and extension of sound file
                  startHideAll: true,                 // All modules start as hidden EXCEPT PAGE ONE
                  // *** Page One is your default startup page *** This overrides startHideAll: true,
                  pageOneModules: ["Hello-Lucy"],                     // default modules to show on page one/startup
                  pageTwoModules: ["Hello-Lucy"], // modules to show on page two
                  pageThreeModules: ["Hello-Lucy"],                 // modules to show on page three
                  pageFourModules: ["Hello-Lucy"],                  // modules to show on page four
                  pageFiveModules: ["Hello-Lucy"],               // modules to show on page five
                  pageSixModules: ["Hello-Lucy"],                      // modules to show on page six
                  pageSevenModules: ["Hello-Lucy"],                   // modules to show on page seven
                  pageEightModules: ["Hello-Lucy"],                   // modules to show on page eight
                  pageNineModules: ["Hello-Lucy"],                   // modules to show on page nine
                  pageTenModules: ["Hello-Lucy"]             // modules to show on page ten
                 } },
              
              1 Reply Last reply Reply Quote 0
              • N
                Nicodil last edited by Nicodil

                Hi, i solved it.
                Th variable on top of Hello-Lucy.js was not initialized.
                var importedSentences=‘’; and it worked for me… strange…

                BUT MAYBE this means this var is never filled with the imported Sentences…
                This could explain why my Lucy nothing understands what im saying…

                Should i also install MMM-voice??? Or is this one not necessary for MMM-Lucy?

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

                  @nicodil Lucy includes all the Voice functionthe sentences file name is exact case AND I have to debug it, but I think the sentences has to be in modules and NOT in the module folder…

                  edit:

                  bug, Mykle1 copied this code from me…

                  replace line 15 with this in Hello-Lucy.js

                  const sfn= document.currentScript.src.substring(7,document.currentScript.src.lastIndexOf(document.currentScript.src.slice(7).includes('//')?'//':'/'))
                  

                  Sam

                  Create a working config
                  How to add modules

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

                    Sorry, this is a double post but it may be connected to the OP’s issues and this is the most recent Lucy topic.

                    Actually, there was a dependency issue. It took me some time to figure out how to correct the issue. I took the simplest route. The issue was with the dev dependencies which are not necessary for Lucy to run but caused the installation of necessary dependencies to fail.

                    I’ve removed the installation of the dev dependencies from the dependency installer. I trashed my installation of Lucy (and her dependencies) and did a fresh installation. Everything seems to be working correctly here now.

                    Sorry for the long delay in investigating the problem.

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy