@sdetweil thanks for sharing it then!
Read the statement by Michael Teeuw here.
Latest posts made by sforza
-
RE: MMM-RTSPtoWeb fresh install
It works!!! I could not be happier :D
Thanks a ton - especially for the accurate instructions.
Yes I was able to identify the error line quite clearly. However, could you please explain how did you convert “node-fetch” to “node-fetch@2” as the missing module? - other than experience of course?
UnhandledPromiseRejectionWarning: Error: Cannot find module ‘node-fetch’
Thanks again!
-
RE: MMM-RTSPtoWeb fresh install
@sdetweil thanks a ton for the super fast response! I’m in bed now and turned off the computer already, will surely try tomorrow! If it was not 1:30 am here and waking up early tomorrow I’d try right now! Knowing there is hope to fix it got me really excited!
-
MMM-RTSPtoWeb fresh install
Hi all,
I had this working on an ancient Rpi2B last year and was extremely happy with it, used to monitor my kids sleeping (or not). Surely stream was low res and the pi was getting hot while doing this, but it just worked and it was awesome.
That Pi died so I moved to a Pi4B 4GB I had lying around, just did a fresh installation of 64bit Raspberry Pi OS and Magic Mirror, and this RTSPtoWeb module is unfortunately not working, which I expected somehow, it’s two years since last update of the code.
Of course the RPi2B was running an older RPI OS version, likely was Buster or Bullseye, can’t really remember, surely 32bit.
I have RTSPtoWeb - WebRTC Home Assistant module running on a separate NUC and all is good. Exact same instance I used on the RPi2B.
Error log below. Not sure if easily solvable or related to the deep changes across major version upgrades. Any ideas would be greatly appreciated. Let me know for any additional input required please.
Original developer @shbatm does not seem to be connecting since long ago as per his forum stats. My appreciation for your work here, it was beautiful while it worked.
Thanks a ton in advance!
sforza@rpi4:~/MagicMirror $ uname -a
Linux rpi4 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linuxhttps://github.com/shbatm/MMM-RTSPtoWeb
sforza@rpi4:~/MagicMirror $ npm run start
magicmirror@2.27.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[2024-05-30 14:57:40.824] [LOG] Starting MagicMirror: v2.27.0
[2024-05-30 14:57:40.910] [LOG] Loading config …
[2024-05-30 14:57:40.915] [LOG] config template file not exists, no envsubst
[2024-05-30 14:57:40.927] [LOG] Loading module helpers …
[2024-05-30 14:57:40.930] [LOG] No helper found for module: alert.
[2024-05-30 14:57:41.462] [LOG] Initializing new module helper …
[2024-05-30 14:57:41.465] [LOG] Module helper loaded: updatenotification
[2024-05-30 14:57:41.466] [LOG] No helper found for module: clock.
[2024-05-30 14:57:41.796] [LOG] Initializing new module helper …
[2024-05-30 14:57:41.797] [LOG] Module helper loaded: calendar
[2024-05-30 14:57:41.802] [LOG] No helper found for module: weather.
[2024-05-30 14:57:42.005] [LOG] Initializing new module helper …
[2024-05-30 14:57:42.008] [LOG] Module helper loaded: newsfeed
[2024-05-30 14:57:42.012] [LOG] Initializing new module helper …
[2024-05-30 14:57:42.013] [LOG] Module helper loaded: mmm-systemtemperature
[2024-05-30 14:57:43.886] [ERROR] (node:5145) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘node-fetch’
Require stack:- /home/sforza/MagicMirror/modules/MMM-RTSPtoWeb/node_helper.js
- /home/sforza/MagicMirror/js/app.js
- /home/sforza/MagicMirror/js/electron.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
at Module._resolveFilename (/home/sforza/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:908:27)
at c._load (node:electron/js2c/node_init:2:13672)
at Module.require (node:internal/modules/cjs/loader:1122:19)
at require (node:internal/modules/helpers:130:18)
at Object. (/home/sforza/MagicMirror/modules/MMM-RTSPtoWeb/node_helper.js:2:15)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
at Module.load (node:internal/modules/cjs/loader:1098:32)
at Module._load (node:internal/modules/cjs/loader:945:12)
at c._load (node:electron/js2c/node_init:2:13672)
at Module.require (node:internal/modules/cjs/loader:1122:19)
at require (node:internal/modules/helpers:130:18)
at loadModule (/home/sforza/MagicMirror/js/app.js:183:19)
(Useelectron --trace-warnings ...
to show where the warning was created)
[2024-05-30 14:57:43.916] [ERROR] (node:5145) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[5265:0530/145747.981108:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.981646:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145747.982116:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.982482:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145747.983029:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.983441:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145747.984014:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.984499:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145747.985053:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.986087:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145747.989123:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.989407:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145747.990198:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.990576:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145747.999511:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145747.999992:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145748.000610:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145748.001291:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145748.007640:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145748.012479:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145748.016622:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145748.019573:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145748.023712:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145748.025404:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145748.026450:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145748.027096:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[5265:0530/145748.028094:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
[5265:0530/145748.030385:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
[2024-05-30 14:57:48.589] [INFO] System information:
SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false
OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.28+rpt-rpi-v8
VERSIONS: electron: 29.1.6; used node: 20.9.0; installed node: 22.2.0; npm: 10.7.0; pm2: 5.3.1
OTHER: timeZone: Europe/Madrid; ELECTRON_ENABLE_GPU: undefined
^C/home/sforza/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
-
Two-way mirror experience with Saint Gobain?
Hi all,
any experience with Saint Gobain mirrors? It’s the only one I can find locally. Attached specs. I’m told is 6+4mm thick.
mentioning the expert, seeking your thoughts!
-
RE: MM and Shelly relay integration request - switch TV Off
@sdetweil yes I’m aware 😊 I tried that first but system won’t allow after certain time apparently. I got an error message.
Thanks for the suggestion and the continuos support in this forum!
-
RE: MM and Shelly relay integration request - switch TV Off
@sforza said in MM and Shelly relay integration request - switch TV Off:
Not sure if the relays in the smart plugs would share same API methods.
if the relays and the smart plugs - typo
-
RE: MM and Shelly relay integration request - switch TV Off
@sdetweil I don’t own any shelly relay at the moment. Just trying to explore options to plan my actual mirror build 😊.
Your link seems to be going in the right direction. Not sure if the relays in the smart plugs would share same API methods. Will consider buying one and trying.
Thanks a lot!
-
MM and Shelly relay integration request - switch TV Off
Hi,
I am the “lucky” owner of a tv which shows ugly “no signal” when hdmi goes “sleep mode”.
I was wondering if anyone has managed to control a shelly relay to fully turn on/off the tv, when e.g. motion is detected on webcam.
https://github.com/sdetweil/MMM-SleepWake
https://shelly.cloud/products/shelly-1-smart-home-automation-relay/many thanks in advance
-
RE: Does MMM SleepWake block webcam?
@sdetweil Hi Sam, many thanks for responding here. I think it might work yes. I will give it a try when I have a chance.