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

Help with the camera

Scheduled Pinned Locked Moved Troubleshooting
16 Posts 3 Posters 7.3k 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.
  • X Offline
    xela
    last edited by yawns Feb 6, 2018, 12:56 PM Feb 6, 2018, 12:04 PM

    Hello,

    I’m very new to all of this but still have my setup going very well.
    However I’m stuck with the Camera. I have few Logitech webcams and I’ve tested it with all of hem but I still can’t get it to work.
    I’ve installed the voicecontrol module and the camera module. I’ve recorded the show Camera and hide camera commands and downloaded the file and put it in the root directory of MM. I’ve edited the config files according the instructions but still nothing happens when I say “Show Camera”.
    Can someone please explain what am I doing wrong?

    Here is the part of my config file:

    		{
    			module: 'camera',
        		position: 'top_right',
        		config: {
    			selfieInterval: 3,  // Time interval in seconds before the photo will be taken.
            	emailConfig: {
                service: 'gamil', // Email provider to use to send email with a photo.
                auth: {
                user: '',  // Your email account
                pass: ''  // Your password for email account
            }
            }
    		}
    		},
    		{
        		module: 'voicecontrol',
        		position: 'top_right',
        		config: {
            		models: [
                	{
                    	keyword: "Show Camera",
                    	description: "Say 'Show Camera' to display camera",
                    	file: "showCamera.pmdl",
                    	message: "SHOW_CAMERA"
                	},
                	{
                    	keyword: "Hide Camera",
                    	description: "Say 'Hide Camera' to hide camera",
                    	file: "hideCamera.pmdl",
                    	message: "HIDE_CAMERA"
                	},
                	{
                    	keyword: "Selfie",
                    	description: "Say 'Selfie' when camera is visible",
                    	file: "selfie.pmdl",
                    	message: "SELFIE"
                	},
            ],
        }
    },
    
    N 1 Reply Last reply Feb 7, 2018, 2:07 AM Reply Quote 0
    • N Offline
      ninjabreadman @xela
      last edited by Feb 7, 2018, 2:07 AM

      Are you able to use the webcam normally, as described here? If you’re having trouble making it work, I would ensure it’s first working as expected outside of MM.

      Problem with config or JavaScript? Copy/paste it into JSHint.
      Check out the detailed walkthroughs on install, config, modules, etc.

      1 Reply Last reply Reply Quote 0
      • X Offline
        xela
        last edited by Feb 7, 2018, 2:12 AM

        thank you. yes, I’ve tested it first as described in the link you’ve provided although I’ve tested only capturing an image and not live stream.
        The thing is that i’m not sure is the voice component works for me at all and I don’t even know how to test it.
        thank you for your help!

        N 1 Reply Last reply Feb 7, 2018, 2:42 AM Reply Quote 0
        • N Offline
          ninjabreadman @xela
          last edited by Feb 7, 2018, 2:42 AM

          @xela What modules are you using? This seems like voicecontrol, but what are you using for a camera module? Does it already include receivers for those notifications?

          Problem with config or JavaScript? Copy/paste it into JSHint.
          Check out the detailed walkthroughs on install, config, modules, etc.

          1 Reply Last reply Reply Quote 0
          • X Offline
            xela
            last edited by yawns Feb 7, 2018, 6:38 AM Feb 7, 2018, 3:24 AM

            i’m getting all of that which I have no idea what it means but I think it is related to the voicecontrol:

            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
            ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
            ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
            ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
            ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
            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
            JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
            JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
            
            N R 2 Replies Last reply Feb 7, 2018, 12:51 PM Reply Quote 0
            • N Offline
              ninjabreadman @xela
              last edited by ninjabreadman Feb 7, 2018, 12:52 PM Feb 7, 2018, 12:51 PM

              @xela Which modules are you using? Did you run npm install in both folders? Do you also have the camera module in your config.js?

              Problem with config or JavaScript? Copy/paste it into JSHint.
              Check out the detailed walkthroughs on install, config, modules, etc.

              1 Reply Last reply Reply Quote 0
              • X Offline
                xela
                last edited by Feb 8, 2018, 6:28 AM

                thank you very much! it’s working!

                do you know by any chance if it’s possible to have the camera picture as vertically full screen?
                Or is not, is it possible to hide all other modules when the camera picture is on?
                I want to use the camera as my mirror so when I say the magic work everything disappears and only the camera picture stays.

                1 Reply Last reply Reply Quote 0
                • N Offline
                  ninjabreadman
                  last edited by Feb 8, 2018, 1:23 PM

                  Have a look at MMM-pages. Install it, and you can then send a PAGE_CHANGED notification either when you send the camera notifications (voicecontrol module) or when you receive and process them (camera module). That should page between the camera and everything else.

                  Problem with config or JavaScript? Copy/paste it into JSHint.
                  Check out the detailed walkthroughs on install, config, modules, etc.

                  X 1 Reply Last reply Feb 8, 2018, 7:25 PM Reply Quote 0
                  • X Offline
                    xela @ninjabreadman
                    last edited by Feb 8, 2018, 7:25 PM

                    Thank you very much! That’s great.
                    Do you know by any chance if it’s possible to have the camera image 90 degree rotated and on full screen? I want to use the camera as the mirror instead of applying a glass or a film.

                    N 1 Reply Last reply Feb 8, 2018, 9:35 PM Reply Quote 0
                    • N Offline
                      ninjabreadman @xela
                      last edited by ninjabreadman Feb 8, 2018, 9:38 PM Feb 8, 2018, 9:35 PM

                      @xela What modules are you using? ¯\_(ツ)_/¯

                      Problem with config or JavaScript? Copy/paste it into JSHint.
                      Check out the detailed walkthroughs on install, config, modules, etc.

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