Read the statement by Michael Teeuw here.
Trigger showing IP camera stream (iFrame?) via API call
-
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?
-
@velkrosmaak I use this
https://motion-project.github.io/
for motion detection on my MagicMirrorI 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. -
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.
-
@velkrosmaak trigger rtpstream or some such
-
@velkrosmaak
I also use motion to detect and then stream the video via to the MM via MMM_SmartWebDisplayIn 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.shand 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-SmartWebDisplayPeter
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