@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