• 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.

Camera module

Scheduled Pinned Locked Moved Utilities
26 Posts 13 Posters 30.3k Views 13 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.
  • J Offline
    James
    last edited by Sep 13, 2016, 8:44 AM

    0_1473756248829_iOS_fly_93.jpeg

    V 1 Reply Last reply Feb 14, 2017, 12:46 PM Reply Quote 0
    • C Offline
      cowboysdude Module Developer
      last edited by Sep 14, 2016, 1:04 AM

      That’s pretty cool! Great job!

      1 Reply Last reply Reply Quote 0
      • J Offline
        jeremytripp
        last edited by jeremytripp Sep 17, 2016, 6:43 PM Sep 17, 2016, 6:25 PM

        Tested the voice control + camera module today and got both working. Thanks @James for the tip on the missing config curly brackets. Was starting to drive me crazy as no JS Linters were picking it up.

        For future reference, the voice control module now comes pre-packaged with the three camera commands by default in the voicecontrol.js file, so in your config.js file, you only need to add:

        {
            module: 'voicecontrol',
            position: 'bottom_left'			
        },
        

        In fact, if you do add the config: definitions and any keywords to your config.js file, it actually overrides the three default camera commands. With that said, is it best practice to add additional keyword commands to voicecontrol.js OR to remove the defaults from voicecontrol.js and place everything in config.js?

        I also get the ALSA lib error messages in Terminal after quitting the mirror, as well as the countdown bug James mentions after taking a picture, but everything seems to work and I DID receive the email no problem (using Gmail, after following @alexyak’s instructions on “Allowing Less Secure Apps” and “Allowing Access To Your Gmail Account”).

        All in all, awesome work, Alex! Thrilled to now have 3 of your modules running on my mirror as I’m running motion sensor too!

        1 Reply Last reply Reply Quote 0
        • J Offline
          jeremytripp
          last edited by Sep 17, 2016, 6:40 PM

          Follow up: I tried both configurations and it only works when all voice command keywords are in voicecontrol.js, so that answers my question, I suppose!

          T 1 Reply Last reply Feb 8, 2017, 4:42 PM Reply Quote 0
          • T Offline
            thereisnotry87 @jeremytripp
            last edited by yawns Feb 14, 2017, 2:17 PM Feb 8, 2017, 4:42 PM

            @jeremytripp First of all thanks to post your experience, it was very self-explanatory. So…did you get these kind of ALSA lib error messages?

            *ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave*
            
            *ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
            ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
            ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side*
            
            *ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi*
            
            *ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
            ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
            ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
            ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
            ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline*
            
            *ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused*
            
            *ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused*
            
            *ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave*
            
            *Cannot connect to server socket err = No such file or directory
            Cannot connect to server request channel*
            
            *jack server is not running or cannot be started*
            

            I’ve already seen that @James got similar errors but at least for him it worked (video display top centred and taking pictures). In my case nothing happens when I send the voice command.

            Any suggestions? I love the support of this community.

            1 Reply Last reply Reply Quote 0
            • T Offline
              thereisnotry87
              last edited by Feb 8, 2017, 4:59 PM

              Mmm first it would be nice to check if the microphone is recording…anyway can anyone suggest me an IDE at least to make a good code debugging? Because I’m currently working with a text editor on Rasp pi.

              1 Reply Last reply Reply Quote 0
              • V Offline
                vageesh79 @James
                last edited by Feb 14, 2017, 12:46 PM

                @James Hi Can you please tell how you get the ps camera working on your pi. I have been doing that but i cannot get it to work.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  daenick
                  last edited by Apr 5, 2017, 3:41 PM

                  @alexyak same problem here:

                  initializing nodemailer
                  ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
                  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
                  ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

                  ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

                  ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
                  Cannot connect to server socket err = No such file or directory
                  Cannot connect to server request channel
                  jack server is not running or cannot be started

                  The system recognizes the words to show and exit. But he does not recognize the word Selfie, or do anything.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sberniz
                    last edited by Mar 14, 2018, 4:11 AM

                    Hi everyone, i just tried magic mirror on pi zero w, works great, i’m using it with midori browser./ server only. camera module is loaded, but i can’t see it on the screen. does anyone know how to do it? thanks

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wireshark
                      last edited by Jul 6, 2018, 9:48 PM

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • 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