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 691.9k 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.
    • S Do not disturb
      sdetweil @sdetweil
      last edited by

      @sdetweil >if i specify the USB camera it works,

      ok, so, how do you update lucy to use the usb camera config ?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        snikolaidis
        last edited by

        @sdetweil
        yes on both i hear what i said and changing the microphone line in config is all i’ve ever done to get it working, flash raspbian -> install MM and modules -> run arecord -l and change the mic config line to what my pi reflects

        Pi4b

         {
        disabled: false,
        module: "Hello-Lucy",
        position: "bottom_bar",
        config: {
            keyword: 'JARVIS',              // keyword to activate listening for a command/sentence
            timeout: 5,                        // 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: ["intro.mp3"],        // welcome sound at startup. Add several for a random greetings
            confirmationSound: "ding.mp3",      // name and extension of sound file
            startHideAll: false,                 // All modules start as hidden EXCEPT PAGE ONE
            // *** Page One is your default startup page *** This overrides startHideAll: true,
            pageOneModules: ["Hello-Lucy","MMM-AfterShip"],                     // default modules to show on page one/startup
            pageTwoModules: ["Hello-Lucy", "MMM-BMW-OW"], // modules to show on page two
            pageThreeModules: ["Hello-Lucy", "MMM-Systemstats"],                 // modules to show on page three
            }
        }
        

        Pi3b+

        {
        disabled: false,
        module: "Hello-Lucy",
        position: "bottom_bar",
        config: {
            keyword: 'JARVIS',              // keyword to activate listening for a command/sentence
            timeout: 5,                        // 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: ["yourang.mp3"],        // welcome sound at startup. Add several for a random greetings
            confirmationSound: "ding.mp3",      // name and extension of sound file
            startHideAll: false,                 // All modules start as hidden EXCEPT PAGE ONE
            // *** Page One is your default startup page *** This overrides startHideAll: true,
            pageOneModules: ["Hello-Lucy","MMM-AfterShip"],                     // default modules to show on page one/startup
            pageTwoModules: ["Hello-Lucy", "MMM-BMW-OW"], // modules to show on page two
            pageThreeModules: ["Hello-Lucy", "MMM-Systemstats"],                 // modules to show on page three
            }
        }
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          snikolaidis
          last edited by

          @sdetweil i specified the mic in ~.asoundrc so now arecord goes directly to the usb mic but still throws the format code, lucy still wont pick it up tho

          
          pcm.!default {
            type asym
            playback.pcm {
              type plug
              slave.pcm "output"
            }
            capture.pcm "hw:2,0"
          }
          
          pcm.output {
            type hw
            card 1
          }
          
          ctl.!default {
            type hw
            card 1
          }
          
          
          M 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil
            last edited by

            mine is

            pcm.!default {
                type hw
                card 0
            }
            
            ctl.!default {
                type hw
                card 1
            }
            

            so I would guess yours would be

            pcm.!default {
                type hw
                card 2
            }
            
            ctl.!default {
                type hw
                card 1
            }
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              snikolaidis
              last edited by

              @sdetweil yeah still not working with lucy even though arecord works, would it have anything to do with that i went beta with the pi4?

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @snikolaidis
                last edited by

                @snikolaidis said in Hello-Lucy:

                i went beta with the pi4

                what beta? the 64bit pi os?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  snikolaidis
                  last edited by

                  @sdetweil the beta firmware & bootloader that lets you boot from usb

                  sudo apt update
                  sudo apt full-upgrade
                  Sudo nano /etc/default/rpi-eeprom-update
                  sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @snikolaidis
                    last edited by

                    @snikolaidis oh… that won’t affect sound

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil Sorry trying to think of anything possible

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

                        @snikolaidis said in Hello-Lucy:

                        on another note, i guess i said too many unkown commands or somethings and a list of all the commands possible popped up and wont go away, any thoughts other than rebooting

                        Oh, did you mean commands to Lucy? The Command List appeared? You can say “Hide Help” or “Close Help”.

                        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

                          Thank you @sdetweil for doing the troubleshooting on this one. :thumbsup:

                          Create a working config
                          How to add modules

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            majik655 @snikolaidis
                            last edited by majik655

                            @snikolaidis Did you ever figure this out? I have a pi4 and have a logitech webcam c920 … it shows as card 2 and should be 2,0 … I can record and play back in arecord Everything from what I can see works fine except when in MM Lucy talks and then when waiting for command her icon goes to ERROR.

                            I have gotten this to work with a sunfounder usb mic (just a crappy mic) and I was hoping the lag would be better using the webcam mic. (waiting for my new 3.5 jack microphone which should help the lag).

                            In any case I just do not know why Lucy doesn’t pick up the webcam mic??
                            @Mykle1 does it make sense it doesn’t work?

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              majik655 @majik655
                              last edited by majik655

                              @majik655 said in Hello-Lucy:

                              @snikolaidis Did you ever figure this out? I have a pi4 and have a logitech webcam c920 … it shows as card 2 and should be 2,0 … I can record and play back in arecord Everything from what I can see works fine except when in MM Lucy talks and then when waiting for command her icon goes to ERROR.

                              I have gotten this to work with a sunfounder usb mic (just a crappy mic) and I was hoping the lag would be better using the webcam mic. (waiting for my new 3.5 jack microphone which should help the lag).

                              In any case I just do not know why Lucy doesn’t pick up the webcam mic??
                              @Mykle1 does it make sense it doesn’t work?

                              Well I THOUGHT I had the crappy usb microphone working on my RPI 4 but I am wrong …Same issue as with webcam.
                              I do know I had this working on my RPI3 last night with crappy usb microphone… The only difference I can see is on the RPI3 it put the usb mic on CARD 1 . on the rpi4 no matter what I put in as a usb mic…it puts it as CARD 2 device 0. On the RPI4 I have “headphones” as card1 and HDMI as 0. I get sound out of both hdmi and 3.5 jack (headphones)…Arecord does record using either usb mic I use. For whatever reason Lucy just keeps throwing ERROR when trying to initialize the mic

                              M 1 Reply Last reply Reply Quote 0
                              • M Offline
                                majik655 @majik655
                                last edited by

                                @majik655 @Mykle1 @snikolaidis
                                Well I am unsure exactly why everything all of a sudden works now but I did the following and it seemed to work.

                                sudo apt update
                                sudo apt full-upgrade
                                sudo reboot

                                Before I was always doing apt-get and never did FULL-upgrade always did apt-get upgrade

                                When I did the apt full-upgrade it then told me at the end that I had 200 or so items that were not being used and could remove them using autoremove…
                                I then rebooted and did not change a thing in my .asoundrc or anything and it all started working.

                                Again I am unsure what exactly fixed it… oh I also removed the usb mouse and usb keyboard (again not sure if any of this matters) but if anyone wants to see my .asoundrc config I will post it.

                                Currently working with Logitech c920 webcam for mic and 3.5 jack for sound out (I want to change this to HDMI but I am afraid something will break.)

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

                                  @majik655

                                  Well, perhaps something was corrected in the update. Hard to tell, really. Glad you got it working.

                                  . (waiting for my new 3.5 jack microphone which should help the lag).

                                  Am I missing something here? 3.5 jack mic on a Pi?

                                  Create a working config
                                  How to add modules

                                  M 2 Replies Last reply Reply Quote 0
                                  • M Offline
                                    majik655 @Mykle1
                                    last edited by

                                    @Mykle1
                                    I was speaking about getting in the mail soon my new microphone that is 3.5mm connector so I can plug it into the raspberry pi’s “headphone” jack (am I wrong it being a 3.5?)
                                    I ordered it because as I have read through all 29 pages of this forum thread it was mentioned (so I understood) that the lag I had when the command would be recognized is due to me using a usb microphone.
                                    At least that is what I understood … I could totally be wrong as this thread goes a long way back in time lol

                                    Then I thought I would just move my mirror and Lucy over to my raspberry 4. And of course nothing worked over there and was probably because I used the sd card on a PI3 previously.
                                    Anyway it is working beautifully and there is no lag (but I am using a logitech webcam now and could be the reason why there is no lag?? or maybe just the “upgrade” from a 3 to a 4 has helped)

                                    The only thing I have issues with now is, my mirror uses a motion PIR sensor to “blank” out the screen when no motion. When you step in front of it, it shows the modules and times out back to blank in 2 minutes of no motion. I have the no signal type of monitor and just need the blanking not turning off power or anything.

                                    So when I start the mirror all modules are shown. I believe this is because of MMM-NEW-PIR forcing the show of all modules when motion.

                                    Even without that for some reason Lucy would ALWAYS show currentweather and weatherforecast… no matter what I did. I could just not get her to not show those on page 1.

                                    So now I have installed NOAA3 and hope maybe I can turn off the PIR module and see if Lucy will only show herself on page one .

                                    Otherwise it is what it is and I can work with it … thank you for everything!

                                    bheplerB 2 Replies Last reply Reply Quote 0
                                    • M Offline
                                      majik655 @Mykle1
                                      last edited by majik655

                                      @Mykle1

                                      I do have one more question…

                                      Is there any way to not show lucy on any pages.

                                      Currently when I start Magic MIrror she is the only thing that shows on the screen.
                                      My PAGEONE in config is [] (nothing… No modules)

                                      For page two I have a few (no lucy) and is working fine.

                                      When she shows page two…its fine… she is not there (good)…
                                      When we go BACK to page one … she is not there (good)…

                                      But when we first start she is there.

                                      Is there any trick I could do to just not show her at all?
                                      I read in an earlier post where I can change “Say, Hello Lucy” and wonder if I can just blank that area out to nothing.

                                      But how would I go about basically removing the microphone icon ?
                                      I could replace it with a black box or something if I have to …just don’ t know where that is.

                                      Of course I would think just getting rid of those display things would still allow lucy to work we just visually would not see her.

                                      EDIT: And yeah old info … looked in en.json file in translations folder and basically changing line 3 in there does nothing really. Please let me know if this is an easy task or not. THANK YOU!

                                      1 Reply Last reply Reply Quote 0
                                      • bheplerB Offline
                                        bhepler Module Developer @majik655
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • bheplerB Offline
                                          bhepler Module Developer @majik655
                                          last edited by

                                          @majik655 said in Hello-Lucy:

                                          I was speaking about getting in the mail soon my new microphone that is 3.5mm connector so I can plug it into the raspberry pi’s “headphone” jack (am I wrong it being a 3.5?)

                                          Hrm. Looking at the specs, it’s a 3.5mm four-pole headphone and composite video jack. Four-pole suggests that it’s designed for headsets with a microphone. I’d want to try that to be sure, but… theoretically you could make it work if you have the right adapter. You’ll need something that will bypass the audio channels and connect to the mic contact.

                                          The fact that it is a video out as well is still blowing my mind a bit.

                                          S M 2 Replies Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @bhepler
                                            last edited by

                                            @bhepler I think it’s speaker/headphone and video. 4 wires signal and ground for both…

                                            no mic

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 14
                                            • 15
                                            • 2 / 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