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 by alexyak

    Scheduled Pinned Locked Moved General Discussion
    13 Posts 4 Posters 6.2k 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.
    • S Offline
      shramik49
      last edited by

      hi,
      need help with camera module by alexyak(https://github.com/alexyak/camera).
      how to change the size of the image/video preview on the magicmirror.
      i want the image preview fit from center to the bottom of the magicmirror.

      brobergB 1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor @shramik49
        last edited by

        @shramik49 Try

        .camera video {
        Width: 1280px;
        Height: 960px;
        }
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          shramik49 @broberg
          last edited by

          thank you @broberg

          .camera video {
          Width: 1280px;
          Height: 960px;
          }
          

          sorry but where to put this lines ?

          brobergB 1 Reply Last reply Reply Quote 0
          • brobergB Offline
            broberg Project Sponsor @shramik49
            last edited by

            @shramik49 yeah sorry, in the custom.css

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              shramik49 @broberg
              last edited by

              @broberg
              i added the above lines but the size dint change.

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

                0_1491293952631_Untitled.png

                brobergB strawberry 3.141S 2 Replies Last reply Reply Quote 0
                • brobergB Offline
                  broberg Project Sponsor @shramik49
                  last edited by broberg

                  @shramik49 then I’m clueless

                  1 Reply Last reply Reply Quote 0
                  • strawberry 3.141S Offline
                    strawberry 3.141 Project Sponsor Module Developer @shramik49
                    last edited by

                    @shramik49 the video size gets inserted as style attribute directly to the element. If you want to override those you have to use the following rules

                    .camera video {
                      width: 1280px !important;
                      height: 960px !important;
                    }
                    

                    Please create a github issue if you need help, so I can keep track

                    S 1 Reply Last reply Reply Quote 1
                    • S Offline
                      shramik49 @strawberry 3.141
                      last edited by

                      @strawberry-3.141
                      thank you so much…
                      now i can adjust the image preview.

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

                        the camera module by alexyak is voice controlled. can it be controlled from a switch connected to gpio??

                        johnnyboyJ 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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