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

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 3 Posters 1.8k Views 3 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.
    • D Offline
      derick4963 @Mykle1
      last edited by

      @mykle1

      I am new to programing stuff and MM. Not sure if the below log useful.

      Once i started MM, there is green color mic icon with command please then just a sec become white color mic icon with error

      WhatsApp Image 2021-02-19 at 02.27.56.jpeg

      Below is the log
      pi@raspberrypi:~/MagicMirror $ npm start dev

      magicmirror@2.14.0 start /home/pi/MagicMirror
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “dev”

      [19.02.2021 02:17.31.097] [LOG] Starting MagicMirror: v2.14.0
      [19.02.2021 02:17.31.103] [LOG] Loading config …
      [19.02.2021 02:17.31.109] [LOG] Loading module helpers …
      [19.02.2021 02:17.31.111] [LOG] No helper found for module: MMM-ViewNotifications.
      [19.02.2021 02:17.32.415] [LOG] Initializing new module helper …
      [19.02.2021 02:17.32.416] [LOG] Module helper loaded: Hello-Lucy
      [19.02.2021 02:17.32.418] [LOG] No helper found for module: alert.
      [19.02.2021 02:17.32.554] [LOG] Initializing new module helper …
      [19.02.2021 02:17.32.555] [LOG] Module helper loaded: updatenotification
      [19.02.2021 02:17.32.557] [LOG] No helper found for module: clock.
      [19.02.2021 02:17.32.905] [LOG] Initializing new module helper …
      [19.02.2021 02:17.32.906] [LOG] Module helper loaded: calendar
      [19.02.2021 02:17.32.906] [LOG] No helper found for module: compliments.
      [19.02.2021 02:17.32.907] [LOG] No helper found for module: currentweather.
      [19.02.2021 02:17.32.908] [LOG] No helper found for module: weatherforecast.
      [19.02.2021 02:17.32.930] [LOG] Initializing new module helper …
      [19.02.2021 02:17.32.930] [LOG] Module helper loaded: newsfeed
      [19.02.2021 02:17.32.931] [LOG] All module helpers loaded.
      [19.02.2021 02:17.33.031] [LOG] Starting server on port 8080 …
      [19.02.2021 02:17.33.040] [WARN] You’re using a full whitelist configuration to allow for all IPs
      [19.02.2021 02:17.33.050] [LOG] Server started …
      [19.02.2021 02:17.33.051] [LOG] Connecting socket for: Hello-Lucy
      [19.02.2021 02:17.33.052] [LOG] Starting module helper: Hello-Lucy
      [19.02.2021 02:17.33.053] [LOG] Connecting socket for: updatenotification
      [19.02.2021 02:17.33.054] [LOG] Connecting socket for: calendar
      [19.02.2021 02:17.33.055] [LOG] Starting node helper for: calendar
      [19.02.2021 02:17.33.056] [LOG] Connecting socket for: newsfeed
      [19.02.2021 02:17.33.056] [LOG] Starting node helper for: newsfeed
      [19.02.2021 02:17.33.057] [LOG] Sockets connected & modules started …
      [19.02.2021 02:17.33.326] [ERROR] Whoops! There was an uncaught exception…
      [19.02.2021 02:17.33.333] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
      at Server.setupListenHandle [as _listen2] (net.js:1300:14)
      at listenInCluster (net.js:1348:12)
      at GetAddrInfoReqWrap.doListen [as callback] (net.js:1487:7)
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:65:10) {
      code: ‘EADDRINUSE’,
      errno: ‘EADDRINUSE’,
      syscall: ‘listen’,
      address: ‘127.0.0.1’,
      port: 8080
      }
      [19.02.2021 02:17.33.335] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [19.02.2021 02:17.33.335] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [19.02.2021 02:17.33.353] [LOG] Launching application.
      [19.02.2021 02:17.33.397] [WARN] (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently “false”. It will change to be “true” in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
      [19.02.2021 02:18.24.112] [LOG] Shutting down server…
      [19.02.2021 02:18.24.117] [LOG] Stopping module helper: Hello-Lucy
      [19.02.2021 02:18.24.118] [LOG] Stopping module helper: updatenotification
      [19.02.2021 02:18.24.120] [LOG] Stopping module helper: calendar
      [19.02.2021 02:18.24.122] [LOG] Stopping module helper: newsfeed

      Mykle1M S 2 Replies Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @derick4963
        last edited by

        @derick4963 said in hello lucy:

        EADDRINUSE

        You have a conflict with port 8080 that needs to be resolved

        Create a working config
        How to add modules

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

          @derick4963 maybe u have an instance running already w pm2

          pm2 status
          pm2 stop all

          then try your npm start

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            derick4963 @sdetweil
            last edited by

            @sdetweil
            @ Mykle1

            I have reformat with clean MM with only Hello-lucy and default module but still getting white mic with ERROR.

            pi@raspberrypi:~/MagicMirror $ npm start dev

            magicmirror@2.14.0 start
            DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “dev”

            [20.02.2021 15:27.50.505] [LOG] Starting MagicMirror: v2.14.0
            [20.02.2021 15:27.50.511] [LOG] Loading config …
            [20.02.2021 15:27.50.516] [LOG] Loading module helpers …
            [20.02.2021 15:27.51.806] [LOG] Initializing new module helper …
            [20.02.2021 15:27.51.808] [LOG] Module helper loaded: Hello-Lucy
            [20.02.2021 15:27.51.810] [LOG] No helper found for module: alert.
            [20.02.2021 15:27.51.925] [LOG] Initializing new module helper …
            [20.02.2021 15:27.51.927] [LOG] Module helper loaded: updatenotification
            [20.02.2021 15:27.51.928] [LOG] No helper found for module: clock.
            [20.02.2021 15:27.52.265] [LOG] Initializing new module helper …
            [20.02.2021 15:27.52.266] [LOG] Module helper loaded: calendar
            [20.02.2021 15:27.52.266] [LOG] No helper found for module: compliments.
            [20.02.2021 15:27.52.267] [LOG] No helper found for module: currentweather.
            [20.02.2021 15:27.52.268] [LOG] No helper found for module: weatherforecast.
            [20.02.2021 15:27.52.288] [LOG] Initializing new module helper …
            [20.02.2021 15:27.52.289] [LOG] Module helper loaded: newsfeed
            [20.02.2021 15:27.52.290] [LOG] All module helpers loaded.
            [20.02.2021 15:27.52.367] [LOG] Starting server on port 8080 …
            [20.02.2021 15:27.52.381] [LOG] Server started …
            [20.02.2021 15:27.52.382] [LOG] Connecting socket for: Hello-Lucy
            [20.02.2021 15:27.52.383] [LOG] Starting module helper: Hello-Lucy
            [20.02.2021 15:27.52.384] [LOG] Connecting socket for: updatenotification
            [20.02.2021 15:27.52.385] [LOG] Connecting socket for: calendar
            [20.02.2021 15:27.52.386] [LOG] Starting node helper for: calendar
            [20.02.2021 15:27.52.387] [LOG] Connecting socket for: newsfeed
            [20.02.2021 15:27.52.388] [LOG] Starting node helper for: newsfeed
            [20.02.2021 15:27.52.389] [LOG] Sockets connected & modules started …
            [20.02.2021 15:27.52.656] [LOG] Launching application.
            [20.02.2021 15:27.52.689] [WARN] (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently “false”. It will change to be “true” in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
            [20.02.2021 15:27.56.904] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
            [20.02.2021 15:27.57.027] [LOG] Create new news fetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
            [20.02.2021 15:27.57.082] [INFO] Checking git for module: Hello-Lucy
            [20.02.2021 15:27.58.320] [INFO] Newsfeed-Fetcher: Broadcasting 56 items.
            [20.02.2021 15:27.58.952] [INFO] Calendar-Fetcher: Broadcasting 10 events.
            [20.02.2021 15:32.58.623] [INFO] Newsfeed-Fetcher: Broadcasting 56 items.
            [20.02.2021 15:33.00.255] [INFO] Calendar-Fetcher: Broadcasting 10 events.
            ^C
            pi@raspberrypi:~/MagicMirror $

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

              @derick4963 said in hello lucy:

              I have reformat with clean MM with only Hello-lucy and default module but still getting white mic with ERROR.

              I don’t know why you would have done that yet. Did you attempt to rectify the port conflict? Did you follow the instructions given by sdetweil? When given help, it is customary (and polite) to let the helper know if you followed their directions and the result. Anyway . .

              What hardware are you using?
              What OS is on the hardware?
              How did you install MM?

              Run arecord -l in a terminal and post the output.

              Please use a code block when posting any code on the forum. It makes the code much easier to read for people trying to help you.

              Screenshot from 2021-02-20 10-28-07.png

              Click the icon with the yellow box around it and post your code accordingly.

              Create a working config
              How to add modules

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

                @mykle1

                pi@raspberrypi:~ $ arecord -l
                **** List of CAPTURE Hardware Devices ****
                card 2: UM02 [UM02], device 0: USB Audio [USB Audio]
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                pi@raspberrypi:~ $ 
                
                

                I don’t know why you would have done that yet. Did you attempt to rectify the port conflict?
                Yes, by changing the the port from 8080 to 8188.

                Did you follow the instructions given by sdetweil?
                Yes, but didnt work.

                When given help, it is customary (and polite) to let the helper know if you followed their directions and the result. Anyway . .
                Sorry first time using the forum and new to all these. Will take note of it when using the forum.

                What hardware are you using?
                raspberry pi 4b, 4GB ram. 32GB sd card

                What OS is on the hardware?
                pi@raspberrypi:~ $ uname -a
                Linux raspberrypi 5.10.11-v7l+ #1399 SMP Thu Jan 28 12:09:48 GMT 2021 armv7l GNU/Linux
                pi@raspberrypi:~ $ cat /etc/os-release
                PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
                NAME=“Raspbian GNU/Linux”
                VERSION_ID=“10”
                VERSION=“10 (buster)”
                VERSION_CODENAME=buster
                ID=raspbian
                ID_LIKE=debian
                HOME_URL=“http://www.raspbian.org/”
                SUPPORT_URL=“http://www.raspbian.org/RaspbianForums”
                BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs”

                How did you install MM?
                By following the offical Magic mirror website

                S Mykle1M 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @derick4963
                  last edited by

                  @derick4963 how did u confirm mic?

                  arecord test.wav
                  speak something
                  ctrl-c to stop recording
                  aplay test.wav
                  do u hear what u said before,?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @derick4963 said in hello lucy:

                    card 2: UM02 [UM02], device 0: USB Audio [USB Audio]

                    Just confirming your microphone entry in the Lucy config entry

                    microphone: "2,0", - Yes?

                    Create a working config
                    How to add modules

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      derick4963 @sdetweil
                      last edited by

                      @sdetweil said in hello lucy:

                      aplay test.wav

                      Yes i have record and able to hear the recoded audio.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        derick4963 @Mykle1
                        last edited by

                        @mykle1

                        Yes

                        below is my config

                        	{
                        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","MMM-EasyPix"],                     // default modules to show on page one/startup
                            //pageTwoModules: ["Hello-Lucy", "MMM-BMW-DS", "MMM-EventHorizon"], // modules to show on page two
                            //pageThreeModules: ["Hello-Lucy", "MMM-Lunartic"],                 // modules to show on page three
                            //pageFourModules: ["Hello-Lucy", "MMM-PC-Stats"],                  // modules to show on page four
                            //pageFiveModules: ["Hello-Lucy", "MMM-Searchlight"],               // modules to show on page five
                            //pageSixModules: ["Hello-Lucy", "MMM-NOAA3"],                      // modules to show on page six
                            //pageSevenModules: ["Hello-Lucy", "MMM-Recipe"],                   // modules to show on page seven
                            //pageEightModules: ["Hello-Lucy", "MMM-rfacts"],                   // modules to show on page eight
                            //pageNineModules: ["Hello-Lucy", "MMM-History"],                   // modules to show on page nine
                            //pageTenModules: ["Hello-Lucy", "MMM-HardwareMonitor"]             // modules to show on page ten
                            }
                        },
                        
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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