I‘m using MMM-SmartWebdisplay
https://github.com/AgP42/MMM-SmartWebDisplay
to display a stream from my front door camera (simple USB-Camera connected to a PI using motion (https://github.com/Motion-Project/motion)
and this works like charm since years.
Read the statement by Michael Teeuw here.
Posts made by BluP
-
RE: Incorporating a Security Cam/Webcam into MagicMirror?
-
RE: Trigger showing IP camera stream (iFrame?) via API call
@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
-
RE: MMM-iFrame or MMM-iFrame-Ping show nothing since last update
@sdetweil
I finally got it working again!:thumbs_up:I did a full fresh installation on a new SD card with complete latest Raspian and new MM and all the modules I used before…and still the same behavior: MMM-IFrame showed nothing and I got the same warnings as mentioned below.
Then I tried MMM-SmartWebDisplay by @AgP42 which finally displays my video stream again. (BTW: This also works with other URLs as described in the documentation)
Many thanks for this module.:clapping_hands:For all having issues with MMM-iFrame, MMM-IFrame-Ping etc., try MMM-SmartWebDisplay.
Don’t forget to do a NPM install in the module folder once the module is cloned.Thanks, Peter
-
RE: MMM-iFrame or MMM-iFrame-Ping show nothing since last update
@sdetweil Hi Sam, I tried that and the I got warnings about MMM-iFrame:
main.js:210 Resource interpreted as Document but transferred with MIME type multipart/x-mixed-replace: "http://192.168.178.8:8081/". updateModuleContent @ main.js:210 (anonymous) @ main.js:139 updateDomWithContent @ main.js:137 (anonymous) @ main.js:119 Promise.then (async) (anonymous) @ main.js:118 updateDom @ main.js:109 updateDom @ main.js:518 updateDom @ module.js:358 (anonymous) @ MMM-iFrame.js:25
The url is my other RasPi running Monitor displaying a video from my frontdoor.
As I stated in my 1st post, all was good since I upgraded to 2.7.1… :-(
Any more hints?
Thx, Peter -
RE: MMM-iFrame or MMM-iFrame-Ping show nothing since last update
@BluP: Got additional information from the console:
update3
MMM-iFrame.js:26Resource interpreted as Document but transferred with MIME type multipart/x-mixed-replace: “”.
main.js:210 Resource interpreted as Document but transferred with MIME type multipart/x-mixed-replace: “http://192.168.178.8:8081/”.@alberttwong: can you give me a hint what needs to be adjusted?
@cowboysdude : I’ve searched the forum and also github and saw that yiou once had issues with iframe as well…any hints from your side?Thx, Peter
-
RE: black screen
Have you done a “npm install” for each module in the respective “…/modules/MMM-myModule” folder?
That was the issue when I updated from 2.4.0 to 2.7.1. no error messagage but blank/blck screen. -
MMM-iFrame or MMM-iFrame-Ping show nothing since last update
Hi everybody,
Just recently updated MM from 2.4.0 to 2.7.1 including all modules.
Unfortunately had issues with MMM-Remote-Control first but used the fixes described on Github.
But both MMM-iFrame or MMM-iFrame-Ping don’t show anything.
I used MMM-iFrame to show a live video stream from my frontdoor using another Pi with Motion and using a curl command to show the iFrame on the MM when movement was detected and hide it after a while. That worked perfectly. I also could use this via homekit and ask Siri to turn on the Frontdoor Cam for example.I can see via http://MyMMIP:8080/remote?action=MODULE_DATA that the state of “hidden” changes between “true” and “false” when I use MMM-Remote-Control from my Mac or iPhone or when i use the buttons (show/hide Module iFrame)
But it shows nothing…Anybody here who has an iFrame up and running with MM 2.7.1.
My other modules:
calendar_monthly
MMM-Carousel
MMM-iFrame-Ping or MMM-iFrame
MMM-RandomPhoto or MMM-BackgroundSlideshow
MMM-Tado
MMM-DWD-WarnWeather
MMM-ModuleScheduler
MMM-Remote-Control
MMM-Tools
MMM-EasyPix
MMM-MyCommute
MMM-Snow
MMM-Wunderlist
MMM-Buttons
MMM-NetworkScanner
MMM-syslog
netatmoThanks,
-
RE: Do you use a PIR sensor? How do you hide it?
@BluP said in Do you use a PIR sensor? How do you hide it?:
You May also think of some different solution: I‘m using a Hue Motion detector which is in my corridor anyway and controls the MM via MM-remotecontrol using the Http get requests through HomeKit and homebridge
-
RE: MMM-ModuleScheduler (how to use MMM-RemoteControl to HIDE/SHOW modules)?
@axled
Thanks a lot!
Your syntax check did the trick. Now it works as expected!
Many thanks!:thumbs_up: