• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 using Adafruit Voice Bonnet

Scheduled Pinned Locked Moved Solved Troubleshooting
24 Posts 2 Posters 3.2k Views 2 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 Away
    sdetweil @sinbad339
    last edited by Jan 5, 2022, 6:34 PM

    @sinbad339 said in Hello-Lucy using Adafruit Voice Bonnet:

    its normal autostart,

    how is that done? pm2 or did u do some other setup

    sounds like mm is not running as user but as root?

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Jan 5, 2022, 6:47 PM Reply Quote 0
    • S Offline
      sinbad339 @sdetweil
      last edited by Jan 5, 2022, 6:47 PM

      @sdetweil
      I followed the instructions from https://www.magicmirrorcentral.com/complete-raspberry-pi-magic-mirror-tutorial/.
      It included

      type in the following command:
      
      pm2 startup
       
      A different command will appear. Run that command also.
      
      Now create a shell script for startup. Open up the built-in text editor on the Pi by typing in:
      
      cd ~
      nano mm.sh
      The lower line basically means, “open up a file called mm.sh in the nano text editor.”
      
      When the text editor has opened, add this to the mm.sh file:
      
      cd ~/MagicMirror
      DISPLAY=:0 npm start
      Make your shiny new script executable by typing in:
      
      chmod +x mm.sh
      Now start up Magic Mirror and make it start up on boot:
      
      pm2 start mm.sh
      
      pm2 save
      Now, reboot your Pi by typing in
      
      sudo reboot
      
      S 1 Reply Last reply Jan 5, 2022, 7:27 PM Reply Quote 0
      • S Away
        sdetweil @sinbad339
        last edited by Jan 5, 2022, 7:27 PM

        @sinbad339 hm… my install script does all that.

        mm.sh already exists in the installers folder.

        try my fixuppm2.sh from here
        https://github.com/sdetweil/MagicMirror_scripts

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Jan 5, 2022, 7:47 PM Reply Quote 0
        • S Offline
          sinbad339 @sdetweil
          last edited by Jan 5, 2022, 7:47 PM

          @sdetweil
          Let me start by saying I really appreciate your help with this. You’ve given me a lot of your time, and clearly I couldn’t have made any progress without you. Thank you.

          Running your fixupppm2 script fixes the microphone on a restart, but then there is no speaker output. If I stop MM, then manually restart it with npm start, the mic and speaker work fine, as before the fixup.

          S 1 Reply Last reply Jan 5, 2022, 11:07 PM Reply Quote 0
          • S Away
            sdetweil @sinbad339
            last edited by sdetweil Jan 6, 2022, 1:07 PM Jan 5, 2022, 11:07 PM

            @sinbad339 that makes no sense to me.
            could u start it w pm2, and then ps -ef >somefile.txt

            and email me thevfile some file.txt

            same userid as here at gmail.

            I want to see if there is some permissions problem

            oh, check the file contents to make sure no userid or password is exposed. shouldn’t be but u never know.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Jan 6, 2022, 2:09 PM Reply Quote 0
            • S Offline
              sinbad339 @sdetweil
              last edited by Jan 6, 2022, 2:09 PM

              @sdetweil
              Just sent it…

              1 Reply Last reply Reply Quote 0
              • S Offline
                sinbad339
                last edited by Jan 6, 2022, 2:26 PM

                Just sent two additional files; one where the speaker worked, and one where it didn’t. As I explained in the email, this is an intermittent issue and it doesn’t matter how MM is started.

                S 1 Reply Last reply Jan 6, 2022, 2:41 PM Reply Quote 0
                • S Away
                  sdetweil @sinbad339
                  last edited by Jan 6, 2022, 2:41 PM

                  @sinbad339 i replied

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sinbad339
                    last edited by Jan 6, 2022, 8:07 PM

                    Well, I gave up on the Adafruit Voice Bonnet, and instead installed a USB microphone with output (Samson GoMic). Now, mic and speakers work every time whether MM/Hello-Lucy starts up automatically at boot, or if I start it using npm start.

                    I’ll probably mark it resolved, even thought the fundamental issue is not.

                    A BIG thanks to @sdetweil for all of his patience and help.

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 2 / 3
                    2 / 3
                    • First post
                      20/24
                      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