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.

    How are people viewing camera snapshots on their MM?

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 3 Posters 485 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
      slaeyer99
      last edited by

      Some time ago, I’d cobbled together a hacky script that would download my camera snapshots every 30 seconds from my 3 outdoor cameras to an image directory on my Pi, overwriting the previous images. I then had am image viewing plugin show those images on a 10 second carousel on the center of my MM screen. While this worked, the constant writing to SD killed my card and I recently had to rebuild my MM. I did not save that script so I’ll have to rebuild that again. I thought about mounting that directory to a 24mb ram disk to avoid the constant writing issues but that feels like a hack on top of a hack. Since I have to redo everything from scratch anyways, I figured I’d check here first.

      What are people using to view their camera snapshots today? MMM-RTSPViewer is horribly outdated and doesn’t seem to work anymore due to OMXPlayer being abandoned and VLC takes too much of my Pi 3’s memory to view 3 cameras - it slows to an absolute crawl after loading cameras then freezes the display. Additionally , I can’t seem to get the snapshot capability of MMM-RTSPViewer working standalone. I really DON’T want to view live feeds of my cameras and setting up WebRTC viewers seems overly cumbersome for my needs.

      Any suggestions?

      S BKeyportB 2 Replies Last reply Reply Quote 0
      • S Away
        sdetweil @slaeyer99
        last edited by

        @slaeyer99 i have a computer acting as a file server where my pics are stored and shared to my MagicMirror systems. and linked to the proper location for my background image viewer

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          slaeyer99 @sdetweil
          last edited by

          I just finished rebuilding my script and in combination with the MMM-ImagesPhotos module, it’s working ok.

          The script is relatively simple using a set of wget commands and is called via a crontab entry @reboot to keep it running at all times. It has a 30 second wait time before downloading again.

          I mounted the uploads directory to a 24MB tmpfs mount which is actually more than I needed but I wanted to ensure it didn’t run out of space. It works but it’s not as elegant as I would prefer.

          MMM-ImagesPhotos still seems to lag a bit when showing images despite having set the getInterval to 5000 ms. I’ll keep researching another solution and may try to refine my script and my config some in the future. As of right now, it refreshes the images every few minutes which is not what i was after but it’s better than nothing I suppose.

          For now, I’ve got everything (mostly) as I wanted it again and am happy enough to move on for the time being. I’ve also made sure to backup my script and config. If anybody would like the script or to pick my brain a bit on my final-ish solution, feel free to ask.

          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @slaeyer99
            last edited by

            @slaeyer99 cool. my mount is directly to the smb server so the images are loaded from the server directly.

            my MMM-ImagesPhotos fork supports recursive folder search
            too

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @slaeyer99
              last edited by

              @slaeyer99 I personally use MMM-EmbedURL - and just directly grab either the stream (via MotionOS) or individual frames.

              The "E" in "Javascript" stands for "Easy"

              1 Reply Last reply Reply Quote 0
              • S Offline
                slaeyer99 @sdetweil
                last edited by

                @sdetweil Do you have a link to your github repo?

                S 1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @slaeyer99
                  last edited by

                  @slaeyer99 https://github.com/sdetweil/MMM-ImagesPhotos

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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