@zdenek Hello, what did you fix in Google Maps Traffic code?
Have same issue…
@zdenek Hello, what did you fix in Google Maps Traffic code?
Have same issue…
Today even install does not run :-(
Entpacken von nodejs (14.18.2-deb-1nodesource1) über (12.22.5~dfsg-2~11u1) …
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/nodejs_14.18.2-deb-1nodesource1_armhf.deb (–unpack):
Versuch, »/usr/share/doc/nodejs/api/fs.html« zu überschreiben, welches auch in Paket nodejs-doc 12.22.5~dfsg-2~11u1 ist
dpkg-deb: Fehler: »einfügen«-Unterprozess wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet
Fehler traten auf beim Bearbeiten von:
/var/cache/apt/archives/nodejs_14.18.2-deb-1nodesource1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Edit using - PI OS - Buster now runs as before:
When I fresh start MM:
pi@raspberrypi:~/MagicMirror $ free -h
total used free shared buff/cache available
Mem: 1,8Gi 291Mi 982Mi 195Mi 598Mi 1,3Gi
Hello,
I’m using MM since years but since last year it is crashs more and more. Freeram, restart every 6h and similar already help but seems to get worse.
I use only
Google Maps
ImageslideShow
iFrame for Videostream (this seems to impact heavy)
HW itseld is not really used on CPU, but RAM is always running out.
Do you suggest a different OS or are 4GB of PI4 simple not enough for that? Since RAM is fairly empty after restart I assume only trashed full over time.
Also restart via PM2 does not really empty it…
bottom 110% was first try, but cutted away parts on left side :-( even if there was space… Margin 0, if not other issues will come - works fine as mirror is anyhow bigger…
After removing frame margin from main.css body, works fine!!
@hango - Big thanks for super fast reply!!
body {
margin: 0px;
position: absolute;
height: calc(100% - 0px);
width: calc(100% - 0px);
Screen appears THANKS, but whole display is having a offset of approx 10% moved to right… (left black bar, right gutted away…)
bottom: 110%; works for right side, but left side is cutted.
ist that something that is driven maybe by config or main.css?
Hello,
I tried your proposal in custom.css.
For -90deg as written works fine.
For 90deg again black screen.
(edit: 0deg , 180deg, -270deg result in black screen)
Hello,
when do I need to run npm install?
Only one or also when I download modules from git afterwards?
I recall that this was asked inside modules folder sometimes in past or only once in MagicMirror folder is enough?
BR
Hello,
based on that showcase here
[Showcase] (https://forum.magicmirror.builders/topic/9707/save-performance-when-rotating-screen-e-g-on-raspberry-pi/12)
I tried to rotate screen. So post it here again in Troubleshooting, as showcase is not right place for support I assume.
Iam struggeling on my PI3 to rotate by 90deg to right. Monitor has 1920x1080.
Doing it I see only black screen at any other position than -90deg!!
At -90deg screen is there only upside done…
As I need to change to 90deg or -270deg I got only black screen (also 180deg even) …
So I changed config.txt to:
display_hdmi_rotate=0
framebuffer_width=1920
framebuffer_height=1080
& custom.css to:
body {
margin: 0;
position: absolute;
transform: rotate(90deg);
transform-origin: top left;
width: 100vh;
height: 100vw;
object-fit: cover;
top: 100vh;
visibility: visible;
}
What is missing/wrong?
transform: rotate(90deg);
transform-origin: top right;
works at least see have screen, but only half screen is used, so no option…
Hello,
Iam struggeling on my PI3 to rotate by 90deg to right. Monitor has 1920x1080.
But I see only black screen at any other position than -90deg!!
As I need to change to 90deg or -270deg I got only black screen (also 180deg even) …
So I changed config.txt to:
display_hdmi_rotate=0
framebuffer_width=1920
framebuffer_height=1080
& custom.css to:
body {
margin: 0;
position: absolute;
transform: rotate(90deg);
transform-origin: top left;
width: 100vh;
height: 100vw;
object-fit: cover;
top: 100vh;
visibility: visible;
}
What is missing?
Worse case I change physical mounting way, but not preferred :face_with_stuck-out_tongue_winking_eye:
Thanks, Iam not very familiar with Docker compilation, then I will try a fresh install in old school way and rotate screen by CSS, that also saved a lot of CPU/GPU use already…
Hello,
I switched to MagicMirror OS (2020-05-10_2020-02-13-magicmirroros-buster-lite-0.1.0.zip) & it is running fairly smooth. Used Raspberry desktop version in past.
Only issue I have no, that I cannot make the display turn off & turn on by PIR sensor connected to PIN-header. Without that I burn energy like hell during none use…
Usally I turn off by python script:
subprocess.call("DISPLAY=:0 xset s activate", shell=True)
and turn on by:
subprocess.call("DISPLAY=:0 xset s reset", shell=True)
Seems that MM interface is running on “tty7 session”.
Trying to activate in screen tty1 (on PI with keyboard), does not show any effect…
sleep 1;DISPLAY=:0 xset s activate
Does I not understand the display and tty sessions maybe?
@sdetweil said in nodejs Warnings on recent Stretch-Buster update:
npm install
Oh that’s looks better & I can start now. Below outcome of installation.
So what did I do with the line “npm@latest -g” before. Did I define for nom to use older version, that was appliedduring current run of “npm install”?
pi@raspberrypi:~/MagicMirror $ npm install
npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
> electron-chromedriver@1.8.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
> node ./download-chromedriver.js
successfully dowloaded and extracted!
> core-js@2.6.9 postinstall /home/pi/MagicMirror/node_modules/core-js
> node scripts/postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> electron@3.1.10 postinstall /home/pi/MagicMirror/node_modules/electron
> node install.js
Downloading tmp-2201-1-SHASUMS256.txt-3.1.10
[============================================>] 100.0% of 4.79 kB (4.79 kB/s)
> magicmirror@2.8.0 install /home/pi/MagicMirror
> cd vendor && npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
added 82 packages from 57 contributors and audited 220 packages in 30.154s
found 5 vulnerabilities (4 low, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
> magicmirror@2.8.0 postinstall /home/pi/MagicMirror
> sh installers/postinstall/postinstall.sh && npm run install-fonts
MagicMirror installation successful!
> magicmirror@2.8.0 install-fonts /home/pi/MagicMirror
> cd fonts && npm install
added 1 package from 1 contributor and audited 1 package in 7.521s
found 0 vulnerabilities
added 1008 packages from 1328 contributors and audited 3572 packages in 299.519s
found 0 vulnerabilities
@qu1que said in nodejs Warnings on recent Stretch-Buster update:
sudo npm install npm@latest -g
Hello, tried also under manuell install process to use:
pi@raspberrypi:~/MagicMirror $ sudo npm install npm@latest -g
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.10.1
added 19 packages from 13 contributors, removed 12 packages and updated 32 packages in 61.073s
But still:
pi@raspberrypi:~/MagicMirror $ npm start
> magicmirror@2.8.0 start /home/pi/MagicMirror
> sh run-start.sh
run-start.sh: 4: run-start.sh: electron: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! magicmirror@2.8.0 start: `sh run-start.sh`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the magicmirror@2.8.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-07-13T16_53_04_944Z-debug.log
after checking here for similar issue, I used bigger desktop image (2019-07-10-raspbian-buster.zip) . Still issue as below, what can I do do complete install?
Installing dependencies ...
npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
> electron-chromedriver@1.8.0 install /root/MagicMirror/node_modules/electron-chromedriver
> node ./download-chromedriver.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/root/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron-chromedriver@1.8.0 install: `node ./download-chromedriver.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron-chromedriver@1.8.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-07-13T16_33_01_193Z-debug.log
Unable to install dependencies!
pi@raspberrypi:~ $
Hello,
running the default install script on PI3 with latest Raspberry OS, I only get following:
npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
> electron-chromedriver@1.8.0 install /root/MagicMirror/node_modules/electron-chromedriver
> node ./download-chromedriver.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/root/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron-chromedriver@1.8.0 install: `node ./download-chromedriver.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron-chromedriver@1.8.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-07-12T20_19_17_073Z-debug.log
Unable to install dependencies!
Hello,
Iam running magicmirror@2.5.0 with some modules (IP Cam, Google Maps, Wunderlist), but without restart every 6-8 hours the whole PI totally freezes.
Iam already running conjob to restart MM or even whole PI, but I want to understand to root cause.
How can I check for this? Do I run out of RAM or what be be cause? (PI 2 with 1GB).
e.g. after 2 hours:
pi@raspberrypi:~/MagicMirror $ free -w
total used free shared buffers cache available
Mem: 948964 363668 232508 265580 9940 342848 270028
Swap: 0 0 0
pi@raspberrypi:~/MagicMirror $
How can I start to investigate? I see no clear trend that RAM e.g. goes to zero…
Looks promising but Iam not seeing any implementation of sleep data.
Ist that accumulated inside the app only?
That would be cool to see automatically every morning on the mirror…
Any update? Mine MM is also crashing on a PI3 every few hours.
Screen goes to black (not turn of Screen) and now more inputs are possible.