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
-
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:25The 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: -
RE: MMM-ModuleScheduler (how to use MMM-RemoteControl to HIDE/SHOW modules)?
@axled
Thanks for the tipps. I’ll check that.Yes, I checked the config options in MMM-traffic, but if you use them and the module is hidden, you can’t use MMM-remoteControl to Show them again.
Nevertheless I’ll try your information to see what happens.
Thanks a lot. I’ll keep you updated! :-) -
RE: How to hide mouse icon in running MM?
@paulb
and not to forget if you want this automatically after boot:sudo nano /home/pi/.config/lxsession/LXDE-pi/autostartadd the following to that file
@unclutter -idle 3 -
RE: MMM-ModuleScheduler (how to use MMM-RemoteControl to HIDE/SHOW modules)?
@axled
this is the PM2 logs output directly after restarting MM:pi@raspberrypi:~/MagicMirror $ pm2 logs MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines: 0|MagicMir | at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31 0|MagicMir | at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10) 0|MagicMir | at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21) 0|MagicMir | at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16) 0|MagicMir | at emitTwo (events.js:106:13) 0|MagicMir | at ChildProcess.emit (events.js:191:7) 0|MagicMir | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 0|MagicMir | TypeError: Cannot read property 'hash' of null 0|MagicMir | at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31 0|MagicMir | at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10) 0|MagicMir | at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21) 0|MagicMir | at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16) 0|MagicMir | at emitTwo (events.js:106:13) 0|MagicMir | at ChildProcess.emit (events.js:191:7) 0|MagicMir | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) /home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines: 0|MagicMir | MMM-ModuleScheduler is sending SEND_NOTIFICATION to REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send SEND_NOTIFICATION to REMOTE_ACTION at Sat Jun 16 2018 14:53:00 GMT+0200 (CEST) based on "1-59/2 * * * *" 0|MagicMir | Shutting down server... 0|MagicMir | Stopping module helper: updatenotification 0|MagicMir | Stopping module helper: calendar 0|MagicMir | Stopping module helper: MMM-DWD-WarnWeather 0|MagicMir | Stopping module helper: MMM-Remote-Control 0|MagicMir | Stopping module helper: MMM-NetworkScanner 0|MagicMir | Stopping module helper: MMM-Traffic 0|MagicMir | Stopping module helper: MMM-ModuleScheduler 0|MagicMir | Stopping module helper: newsfeed 0|MagicMir | 0|MagicMir | > magicmirror@2.3.1 start /home/pi/MagicMirror 0|MagicMir | > sh run-start.sh 0|MagicMir | 0|MagicMir | Starting MagicMirror: v2.3.1 0|MagicMir | Loading config ... 0|MagicMir | Loading module helpers ... 0|MagicMir | No helper found for module: alert. 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: updatenotification 0|MagicMir | No helper found for module: clock. 0|MagicMir | No helper found for module: calendar_monthly. 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: calendar 0|MagicMir | No helper found for module: MMM-EasyPix. 0|MagicMir | No helper found for module: currentweather. 0|MagicMir | No helper found for module: weatherforecast. 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: MMM-DWD-WarnWeather 0|MagicMir | No helper found for module: MMM-iFrame. 0|MagicMir | No helper found for module: MMM-RandomPhoto. 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: MMM-Remote-Control 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: MMM-NetworkScanner 0|MagicMir | No helper found for module: compliments. 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: MMM-Traffic 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: MMM-ModuleScheduler 0|MagicMir | Initializing new module helper ... 0|MagicMir | Module helper loaded: newsfeed 0|MagicMir | All module helpers loaded. 0|MagicMir | Starting server on port 8080 ... 0|MagicMir | You're using a full whitelist configuration to allow for all IPs 0|MagicMir | Server started ... 0|MagicMir | Connecting socket for: updatenotification 0|MagicMir | Connecting socket for: calendar 0|MagicMir | Starting node helper for: calendar 0|MagicMir | Connecting socket for: MMM-DWD-WarnWeather 0|MagicMir | MMM-DWD-WarnWeather helper started... 0|MagicMir | Connecting socket for: MMM-Remote-Control 0|MagicMir | Starting node helper for: MMM-Remote-Control 0|MagicMir | Connecting socket for: MMM-NetworkScanner 0|MagicMir | Starting module: MMM-NetworkScanner 0|MagicMir | Connecting socket for: MMM-Traffic 0|MagicMir | MMM-Traffic helper started ... 0|MagicMir | Connecting socket for: MMM-ModuleScheduler 0|MagicMir | Starting node helper for: MMM-ModuleScheduler 0|MagicMir | Connecting socket for: newsfeed 0|MagicMir | Starting module: newsfeed 0|MagicMir | Sockets connected & modules started ... 0|MagicMir | Launching application. 0|MagicMir | Whoops! There was an uncaught exception... 0|MagicMir | TypeError: Cannot read property 'replace' of undefined 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:240:24 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:768:18 0|MagicMir | at Git. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:808:18) 0|MagicMir | at done (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1354:21) 0|MagicMir | at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1379:16) 0|MagicMir | at emitTwo (events.js:106:13) 0|MagicMir | at ChildProcess.emit (events.js:191:7) 0|MagicMir | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 0|MagicMir | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | Whoops! There was an uncaught exception... 0|MagicMir | TypeError: Cannot read property 'replace' of undefined 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:240:24 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:768:18 0|MagicMir | at Git. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:808:18) 0|MagicMir | at done (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1354:21) 0|MagicMir | at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1379:16) 0|MagicMir | at emitTwo (events.js:106:13) 0|MagicMir | at ChildProcess.emit (events.js:191:7) 0|MagicMir | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 0|MagicMir | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | Whoops! There was an uncaught exception... 0|MagicMir | TypeError: Cannot read property 'replace' of undefined 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:240:24 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:768:18 0|MagicMir | at Git. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:808:18) 0|MagicMir | at done (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1354:21) 0|MagicMir | at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1379:16) 0|MagicMir | at emitTwo (events.js:106:13) 0|MagicMir | at ChildProcess.emit (events.js:191:7) 0|MagicMir | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 0|MagicMir | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | Whoops! There was an uncaught exception... 0|MagicMir | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | TypeError: Cannot read property 'replace' of undefined 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:240:24 0|MagicMir | at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:768:18 0|MagicMir | at Git. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:808:18) 0|MagicMir | at done (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1354:21) 0|MagicMir | at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/git.js:1379:16) 0|MagicMir | at emitTwo (events.js:106:13) 0|MagicMir | at ChildProcess.emit (events.js:191:7) 0|MagicMir | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 0|MagicMir | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/***secret-stuff***/basic.ics - Interval: 300000 0|MagicMir | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/de.german%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000 0|MagicMir | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/***Secret-stuff***.calendar.google.com/public/basic.ics - Interval: 300000 0|MagicMir | MMM-NetworkScanner received CONFIG 0|MagicMir | MMM-ModuleScheduler is removing all scheduled jobs 0|MagicMir | MMM-ModuleScheduler received CREATE_NOTIFICATION_SCHEDULE 0|MagicMir | MMM-ModuleScheduler is scheduling REMOTE_ACTION using "30 6 * * * 0|MagicMir | MMM-ModuleScheduler has scheduled REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send REMOTE_ACTION at Sun Jun 17 2018 06:30:00 GMT+0200 (CEST) 0|MagicMir | MMM-ModuleScheduler is scheduling REMOTE_ACTION using "30 22 * * * 0|MagicMir | MMM-ModuleScheduler has scheduled REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send REMOTE_ACTION at Sat Jun 16 2018 22:30:00 GMT+0200 (CEST) 0|MagicMir | MMM-ModuleScheduler is scheduling REMOTE_ACTION using "0 2 * * SUN 0|MagicMir | MMM-ModuleScheduler has scheduled REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send REMOTE_ACTION at Sun Jun 17 2018 02:00:00 GMT+0200 (CEST) 0|MagicMir | MMM-ModuleScheduler is scheduling REMOTE_ACTION using "*/2 * * * * 0|MagicMir | MMM-ModuleScheduler has scheduled REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send REMOTE_ACTION at Sat Jun 16 2018 14:54:00 GMT+0200 (CEST) 0|MagicMir | MMM-ModuleScheduler is scheduling REMOTE_ACTION using "1-59/2 * * * * 0|MagicMir | MMM-ModuleScheduler has scheduled REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send REMOTE_ACTION at Sat Jun 16 2018 14:53:00 GMT+0200 (CEST) 0|MagicMir | Create new news fetcher for url: https://www.n-tv.de/rss - Interval: 300000 0|MagicMir | Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000 0|MagicMir | MMM-ModuleScheduler is sending SEND_NOTIFICATION to REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send SEND_NOTIFICATION to REMOTE_ACTION at Sat Jun 16 2018 14:55:00 GMT+0200 (CEST) based on "1-59/2 * * * *" 0|MagicMir | MMM-ModuleScheduler is sending SEND_NOTIFICATION to REMOTE_ACTION 0|MagicMir | MMM-ModuleScheduler will next send SEND_NOTIFICATION to REMOTE_ACTION at Sat Jun 16 2018 14:56:00 GMT+0200 (CEST) based on "*/2 * * * *"Thanks for the hint with “npm start dev”
As beeing a newbie to npm this was not known to me.
Within the “console” tab I can see notifications send from MMM-ModuleScheduler on a minute bais as expected.
Is there a chance to see the content of the payload?I also recognized several error mesages from MM. …
Thanks, Peter -
MMM-ModuleScheduler (how to use MMM-RemoteControl to HIDE/SHOW modules)?
Hi all,
I’m using MMM-RemoteControl also from other devices to HIDE/SHOW modules (e.g. MMM-iFRAME with a video stream) via HTTP Get requests and that works nicely.
http://My_MM_IP:8080/remote?action=SHOW&module=module_11_MMM-iFramehttp://My_MM_IP:8080/remote?action=HIDE&module=module_11_MMM-iFrameThis command is send from a Raspi running Motion with a connected USB CAM and will show/hide the videostream when this RasPi detects any motion. This works great.
Now I’m also using MMM-traffic but would like to show the module only in the mornig hours during the working days and hide afterwards.
I tried something like:
// SHOW traffic module on weekdays between 6:00 and 9:30 {notification: 'REMOTE_ACTION', schedule: '0 6 * * MON-FRI', payload: {action: "SHOW&module=module_15_MMM-Traffic"}}, {notification: 'REMOTE_ACTION', schedule: '30 9 * * MON-FRI', payload: {action: "HIDE&module=module_15_MMM-Traffic"}}but the module does not hide.
For testing purposes I also tried this:{notification: 'REMOTE_ACTION', schedule: '*/2 * * * MON-FRI', payload: {action: 'SHOW {"identifier":"module_15_MMM-Traffic"}'}}, {notification: 'REMOTE_ACTION', schedule: '1-59/2 * * * MON-FRI', payload: {action: 'HIDE {"identifier":"module_15_MMM-Traffic"}'}}Actually the moudle should be sown/hidden every other minute. In PM2 log I can see that there is some action going on, but I expect that simply my paload description is wrong.
Any hints?
Many thanks form Neuss/DE -
RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror
Hi snille,
Have you ever found a solution? I want to do something similar, but was also not able to get a module to be hidden/shown during certain times using MMM-ModuleScheduler
I tried
{notification: 'REMOTE_ACTION', schedule: '*/2 * * * MON-FRI', payload: {action: "SHOW&module=module_15_MMM-Traffic"}}, {notification: 'REMOTE_ACTION', schedule: '1-59/2 * * * MON-FRI', payload: {action: "HIDE&module=module_15_MMM-Traffic"}}Does not make real sense, switching on a module every other minute, but would have been nice for testing…
If I use this as a GET request via HTTP,
http://My_MM_IP:8080/remote?action=HIDE&module=module_16_MMM-Trafficit works like charm…also curl works using another Raspi sending this command to the MM
Any idea?
Thanks, Peter