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 Fun & Games
    285 Posts 27 Posters 682.7k Views 27 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.
    • cowboysdudeC Offline
      cowboysdude Module Developer @TheGeekfather
      last edited by

      @TheGeekfather Well in all honesty what you’re doing is just making a huge mess. You need to delete ALL the modules that don’t belong in the default folder. ANY changes you made to any files undo…

      Install modules as they are intended and we can help you, other then that I have no answers for you.

      T 1 Reply Last reply Reply Quote 1
      • T Offline
        TheGeekfather @cowboysdude
        last edited by

        @cowboysdude

        I understand - and yes I will re-install

        One last question - should the mic icon flash when you speak?

        Again, THANK YOU for all your help :)

        cowboysdudeC 1 Reply Last reply Reply Quote 1
        • cowboysdudeC Offline
          cowboysdude Module Developer @TheGeekfather
          last edited by

          @TheGeekfather Yes, green :)

          1 Reply Last reply Reply Quote 0
          • T Offline
            TheGeekfather @Mykle1
            last edited by

            @Mykle1

            Hi, you mentioned you were going to fix the install problem after noticing microphone not working with a fresh install.

            Any progress?

            Thank you for updates

            cowboysdudeC 1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer @TheGeekfather
              last edited by

              @TheGeekfather The mic is an easy fix if you’re using a pi…

              Open terminal and type in ‘arecord -l’ it will give you all the info on your mic… more than likely if your using a USB mic it will be most likely 1,0.
              In your config in Hello-Lucy in the ‘config’ section of Hello-Lucy you would put:
              "microphone: “1,0”,

              That’s it…pretty simple. Yes I realize simple if you know it LOL.

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                TheGeekfather @cowboysdude
                last edited by

                @cowboysdude

                :) Knowledge is Power - That is what I always told my students

                This is the mic I have

                **** List of CAPTURE Hardware Devices ****
                card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                
                
                cowboysdudeC 1 Reply Last reply Reply Quote 0
                • cowboysdudeC Offline
                  cowboysdude Module Developer @TheGeekfather
                  last edited by

                  @TheGeekfather I went to school to be a teacher but never taught… I’m not real good with touchy feeling kinda things I tend to be more direct and that’s not a good thing in Schools LOL

                  Yes you could add:

                   {
                    disabled: false,
                    module: "Hello-Lucy",
                   position: "top_right",
                   config: {
                     keyword: 'HELLO LUCY',             
                     microphone: "1,0",                   
                     timeout: 15,                        // timeout listening for a command/sentence
                     defaultOnStartup: 'Hello-Lucy',
                     standByMethod: 'DPMS',              // 'DPMS' = anything else than RPi or 'PI'
                     sounds: [ ],         
                     confirmationSound: "ding.mp3", 
                      startHideAll: true,                 // if true, all modules start as hidden
                    pageOneModules: ["Hello-Lucy", "MMM-Insults"],    / 
                    pageTwoModules: ["MMM-BMW-DS", "MMM-Events"],     // modules to show on page two
                    pageThreeModules: ["MMM-Lunartic"],               // modules to show on page three
                    pageFourModules: ["MMM-PC-Stats"],                // modules to show on page four
                    pageFiveModules: [],                              // modules to show on page five
                    pageSixModules: [],                               // modules to show on page six
                    pageSevenModules: [],                             // modules to show on page seven
                    pageEightModules: [],                             // modules to show on page eight
                    pageNineModules: [],                              // modules to show on page nine
                    pageTenModules: []                                // modules to show on page ten
                    }
                   },
                  

                  That is an example config… the ONLY thing you need to change is the modules listed on the ‘pages’… it should work on a pi with a usb mic… Please note there will be about a 4 to 5 second delay… the pi is small and this is heavy weight it’s lifting.

                  As soon as @Mykle1 tests this on a pi4 we’ll let everyone know :)

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

                    @cowboysdude

                    As you know, the installer was not at fault. The automatic identification of the microphone was not happening, at least on the Pi. Thanks for stepping in while I was busy troubleshooting and thanks for testing

                    Create a working config
                    How to add modules

                    cowboysdudeC 1 Reply Last reply Reply Quote 1
                    • cowboysdudeC Offline
                      cowboysdude Module Developer @Mykle1
                      last edited by

                      @Mykle1 Who are you and what are you doing here? LOL

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

                        @cowboysdude

                        Uhh, I was hoping you’d tell me. :-)

                        Create a working config
                        How to add modules

                        T 1 Reply Last reply Reply Quote 0
                        • cowboysdudeC Offline
                          cowboysdude Module Developer @TheGeekfather
                          last edited by

                          @TheGeekfather If you have any other questions I’m sure @Mykle1 will be happy to help you :) I’m not on that often… the last couple days I’ve been on more then I have been in 3 months LOL

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TheGeekfather @Mykle1
                            last edited by TheGeekfather

                            @Mykle1

                            Thank you for all your help. Started fresh install - put modules in correct folder

                            added "microphone: “1,0”,

                            AND

                            Hello-Lucy works GREAT :)

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

                              @TheGeekfather

                              Well ok then! You’re happy? I’m happy! Lucy’s happy! :-)

                              Seriously, I’m glad you’re up and running and I’m glad you’re pleased. :thumbsup:

                              Now, can you do something simple for me? Can you please tell me:

                              1. Your hardware ( Pi3? 4? whatever)
                              2. Your microphone (including if it’s USB or analog)
                              3. Your OS (if not using a Pi?)
                              4. Your response time from the time you issue a command until Lucy responds or you hear the confirmation sound. Instantly? 1 second? 3? 5?

                              Create a working config
                              How to add modules

                              T 1 Reply Last reply Reply Quote 0
                              • cowboysdudeC Offline
                                cowboysdude Module Developer
                                last edited by

                                I love it when a plan comes together…

                                alt text

                                1 Reply Last reply Reply Quote 1
                                • T Offline
                                  TheGeekfather @Mykle1
                                  last edited by

                                  @Mykle1

                                  Happy :)

                                  1. Pi 4
                                  2. Mic is Analog plugged in to a sound card (came with mic - Zax Sound)
                                  3. Buster
                                  4. 2-3 seconds

                                  Just a small note - Sometimes I have to unplug sound card and plug back in - Works with either a speaker plugged in to card or using HDMI sound.

                                  cowboysdudeC 1 Reply Last reply Reply Quote 0
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer @TheGeekfather
                                    last edited by cowboysdude

                                    @TheGeekfather Try using a Omnidirectional mic… like this :
                                    https://www.walmart.com/ip/Stereo-Omnidirectional-Condenser-Microphone-Mic-3-5mm-Connector-for-Meeting-Business-Conference-Desktop-Computer/392379431

                                    Can’t say it will solve the delay…the Pi’s seem to have that delay…

                                    alt text

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

                                      @cowboysdude

                                      You are absolutely right, CBD. That microphone extends the active listening distance dramatically. Across the room without shouting and it improves the success of the commands.Thanks for recommending it to me. I’m going to get another. :thumbsup:

                                      @TheGeekfather

                                      Yes, I just finish testing Lucy on a Pi 4, with a usb microphone and with a usb sound card that accepts an analog microphone. In both cases, the latency is pretty annoying. And even though you (and I) were using an analog microphone, the presence of the USB adapter slows things up. The usb microphone by itself was just as slow.

                                      Now, take that same analog microphone and use it on a 12+ year old laptop board running ubuntu and MM with Lucy. The response is measured in milliseconds. It’s fantastic!

                                      Create a working config
                                      How to add modules

                                      1 Reply Last reply Reply Quote 1
                                      • doctorwhenD Offline
                                        doctorwhen
                                        last edited by

                                        @Mykle1 I added a few modules to Hello-Lucy following your easy instructions. Not sure if this is the best way to contact you with the info but just following through with the last step in your instructions which is to tell you the command and module name :)

                                        Here is a diff of my sentences.json and yours:

                                        80,81d79
                                        < "HIDE IFRAME",
                                        < "SHOW IFRAME",
                                        86,87d83
                                        < "HIDE LIGHTS",
                                        < "SHOW LIGHTS",
                                        92,93d87
                                        < "HIDE NETWORK",
                                        < "SHOW NETWORK",
                                        108,109d101
                                        < "HIDE SOLAR",
                                        < "SHOW SOLAR",
                                        116,117d107
                                        < "HIDE STOCKS",
                                        < "SHOW STOCKS",
                                        

                                        And a diff of my checkCommands.json and yours:

                                        7,21d6
                                        <   ["SHOW","IFRAME","","","true","MMM-iFrame",""],
                                        <   ["HIDE","IFRAME","","","false","MMM-iFrame",""],
                                        <
                                        <   ["SHOW","LIGHTS","","","true","mmm-hue-lights",""],
                                        <   ["HIDE","LIGHTS","","","false","mmm-hue-lights",""],
                                        <
                                        <   ["SHOW","NETWORK","","","true","MMM-NetworkScanner",""],
                                        <   ["HIDE","NETWORK","","","false","MMM-NetworkScanner",""],
                                        <
                                        <   ["SHOW","SOLAR","","","true","MMM-Solar",""],
                                        <   ["HIDE","SOLAR","","","false","MMM-Solar",""],
                                        <
                                        <   ["SHOW","STOCKS","","","true","MMM-stocks",""],
                                        <   ["HIDE","STOCKS","","","false","MMM-stocks",""],
                                        <
                                        124,125c109,110
                                        <   ["SHOW","STATS","","","true","MMM-SystemStats",""],
                                        <   ["HIDE","STATS","","","false","MMM-SystemStats",""],
                                        ---
                                        >   ["SHOW","STATS","","","true","MMM-PC-Stats",""],
                                        >   ["HIDE","STATS","","","false","MMM-PC-Stats",""],
                                        145,148c130,133
                                        <   ["SHOW","WEATHER","","","true","currentweather",""],
                                        <   ["HIDE","WEATHER","","","false","currentweather",""],
                                        <   ["SHOW","WEATHER","","","true","weatherforecast",""],
                                        <   ["HIDE","WEATHER","","","false","weatherforecast",""]
                                        ---
                                        >   ["SHOW","WEATHER","","","true","MMM-BMW-DS",""],
                                        >   ["HIDE","WEATHER","","","false","MMM-BMW-DS",""],
                                        >   ["SHOW","WEATHER","","","true","MMM-NOAA3",""],
                                        >   ["HIDE","WEATHER","","","false","MMM-NOAA3",""]
                                        

                                        As you can see, I added support for the following modules:
                                        MMM-iFrame, mmm-hue-lights, MMM-NetworkScanner, MMM-Solar, and MMM-stocks

                                        I also modified your existing support for the STATS and WEATHER commands, altering them to act upon different modules.

                                        Thanks for the really cool module and easy instructions to extend!

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

                                          @doctorwhen said in Hello-Lucy:

                                          Thanks for the really cool module and easy instructions to extend!

                                          You’re welcome. I tried to make the installation instructions as clear as possible. You have just confirmed that for me, so thank you.

                                          I went ahead and added your modifications to the repo so that they now work by default for anyone that cares to use Lucy.

                                          Many thanks!

                                          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

                                            Hello-Lucy.

                                            Minor Update

                                            Add 4 more modules to the defaults:

                                            • MMM-EveryNews
                                            • MMM-MercuryInRetrograde
                                            • MMM-PLOW
                                            • MMM-WeatherOrNot

                                            Bringing the total of modules that now work by default to 58

                                            Create a working config
                                            How to add modules

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 15 / 15
                                            • 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