Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

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

    General Discussion
    3
    5
    58
    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
      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
        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.

        1 Reply Last reply Reply Quote 0
        • V
          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
            sdetweil @velkrosmaak last edited by

            @velkrosmaak trigger rtpstream or some such

            1 Reply Last reply Reply Quote 0
            • B
              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
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy