• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. Joern
  3. Posts
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
J
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 7
  • Posts 22
  • Groups 0

Posts

Recent Best Controversial
  • RE: Save performance when rotating screen e.g. on Raspberry Pi

    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:

    posted in Showcase
    J
    Joern
    Sep 19, 2020, 9:39 AM
  • RE: set issue under MagicMirror OS

    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…

    posted in Troubleshooting
    J
    Joern
    Sep 13, 2020, 6:40 PM
  • set issue under MagicMirror OS

    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?

    posted in Troubleshooting
    J
    Joern
    Sep 12, 2020, 6:57 PM
  • RE: nodejs Warnings on recent Stretch-Buster update

    @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
    
    posted in Troubleshooting
    J
    Joern
    Jul 13, 2019, 7:01 PM
  • RE: nodejs Warnings on recent Stretch-Buster update

    @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
    
    posted in Troubleshooting
    J
    Joern
    Jul 13, 2019, 4:53 PM
  • RE: Setup script fails

    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:~ $ 
    
    
    posted in Troubleshooting
    J
    Joern
    Jul 13, 2019, 4:36 PM
  • Setup script fails

    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!
    
    posted in Troubleshooting
    J
    Joern
    Jul 13, 2019, 7:57 AM
  • MM crashing after some hours

    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…

    posted in Troubleshooting
    J
    Joern
    Jan 1, 2019, 3:40 PM
  • RE: Mi band Magic Mirror..

    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…

    posted in Requests
    J
    Joern
    Jan 1, 2019, 2:35 PM
  • RE: MM Crashing

    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.

    posted in Troubleshooting
    J
    Joern
    Oct 13, 2018, 5:55 PM
  • 1 / 1
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy