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.

    Trigger showing IP camera stream (iFrame?) via API call

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 825 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.
    • V Offline
      velkrosmaak
      last edited by

      Loving my magicmirror setup, mainly showing Google photos and news which is great. I’ve been trying to work out how I can have the display switch to a full screen camera view when movement is detected on that camera. I’m using motioneye for the cameras, and Home Assistant for automation. From that, I can easily make an API call when movement is detected, so I wondered if there was a way I could achieve that.

      I couldn’t find any plugins that seemed to support this, and the MM API docs don’t suggest this would work either. Anyone tried anything similar?

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @velkrosmaak
        last edited by

        @velkrosmaak I use this
        https://motion-project.github.io/
        for motion detection on my MagicMirror

        I don’t stream video, but it’s possible.
        there are events when motion starts, and u can control what to do w the video stream.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • V Offline
          velkrosmaak
          last edited by

          I see! Motioneye is a web frontend for motion (https://github.com/ccrisan/motioneye) but I don’t understand how the MM side would work.

          S B 2 Replies Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @velkrosmaak
            last edited by

            @velkrosmaak trigger rtpstream or some such

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              BluP Project Sponsor @velkrosmaak
              last edited by

              @velkrosmaak
              I also use motion to detect and then stream the video via to the MM via MMM_SmartWebDisplay

              In the motion config file (/etc/motion) search for

              ’ # Command to be executed when an event starts. (default: none)
              '# An event starts at first motion detected after a period of no motion defined by event_gap
              '# on_event_start value
              '# Show iFrame in MagicMirror
              on_event_start /etc/motion/notifyOn_MM.sh

              '# Command to be executed when an event ends after a period of no motion
              '# (default: none). The period of no motion is defined by option event_gap.
              '# on_event_end value
              '# Hide iFrame on MagicMirror
              on_event_end /etc/motion/notifyOff_MM.sh

              and the scripts could look like:

              '# Show SmartWebDisplay in MagicMirror (iFrame no longer supported in MM 2.7.1)
              curl --no-verbose http://:8080/remote?action=SHOW"&"module=module_10_MMM-SmartWebDisplay

              Peter

              1 Reply Last reply Reply Quote 1

              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