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 8.6k 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.
    • N Offline
      ninjabreadman @xela
      last edited by

      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

        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 Reply Quote 0
        • N Offline
          ninjabreadman @xela
          last edited by

          @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

            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 Reply Quote 0
            • N Offline
              ninjabreadman @xela
              last edited by ninjabreadman

              @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

                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

                  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 Reply Quote 0
                  • X Offline
                    xela @ninjabreadman
                    last edited by

                    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 Reply Quote 0
                    • N Offline
                      ninjabreadman @xela
                      last edited by ninjabreadman

                      @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
                      • X Offline
                        xela
                        last edited by

                        Sorry… the modules I’m using are:
                        Alert
                        updatenotification
                        helloworld
                        clock
                        calendar
                        MMM-WunderGround
                        MMM-Traffic
                        MMM-GoogleMapsTraffic
                        MMM-ImageSlideshow
                        voicecontrol
                        camera
                        compliments
                        newsfeed
                        MMM-Remote-Control

                        I also intend to use MMM-buttons so when I press a button it will start the image slideshow of artistic pictures (so it will act as a wall art).

                        thank you for your help!

                        N 2 Replies Last reply Reply Quote 0
                        • N Offline
                          ninjabreadman @xela
                          last edited by ninjabreadman

                          @xela It’s not supported natively by webcamjs. See this issue posted here. You can try CSS transforms, but it may be too processor intensive for the RPi.

                          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
                          • N Offline
                            ninjabreadman @xela
                            last edited by

                            @xela Regarding rotating the camera, you can physically rotate the camera. If you’re directly connecting it to the RPi, consider using a flex cable instead.

                            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

                              I am getting the following error:
                              Webcam.js Error: Could not access webcam: NotSupportedError: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV). NotSupportedError: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).

                              Do you know by any chance what it means?

                              N 1 Reply Last reply Reply Quote 0
                              • N Offline
                                ninjabreadman @xela
                                last edited by

                                @xela Read through this issue on GitHub. Given you were trying to make the webcam full screen, is it related?

                                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
                                • R Offline
                                  ricardoyen @xela
                                  last edited by

                                  @xela

                                  Hi,

                                  I’m getting the same error you noted

                                  how did you overcome this error ??

                                  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 / 1
                                  • 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