A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 0 Votes
    1 Posts
    537 Views
    M
    Hello all! Just finished my build yesterday, and I noticed that after long sleep cycles, the monitor turns on with detected movement (PIR sensor), but MagicMirror itself is just a black screen with my mouse cursor. I am also not able to close MagicMirror by pushing alt. I have to restart the pi to get MagicMirror to load properly after the long sleep. Has anyone had a problem like this? Is there a setting to not have the MagicMirror program sleep?
  • Sending notifications from python to MM

    Solved
    8
    0 Votes
    8 Posts
    4k Views
    C
    Thanks @bream !
  • PM2 keeps failing throughout the day.

    1
    0 Votes
    1 Posts
    628 Views
    M
    Here’s the PM2 log. If you need anything else please let me know. I am very much an amateur hobbyist and appreciate any help the community can give. [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option) /home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | [5692:1029/074712.391276:FATAL:bus.cc(1152)] D-Bus connection was d isconnected. Aborting. 0|mm | [1420:1029/084634.621771:FATAL:memory.cc(22)] Out of memory. size=1 68710144 0|mm | [5204:1029/192609.616263:FATAL:memory.cc(22)] Out of memory. size=1 68390656 0|mm | [5786:1029/205730.197199:FATAL:memory.cc(22)] Out of memory. size=1 68390656 0|mm | [10336:1030/123847.381365:FATAL:memory.cc(22)] Out of memory. size= 82673664 0|mm | [14524:1030/193135.199433:FATAL:memory.cc(22)] Out of memory. size= 168710144 0|mm | [15002:1030/203155.584255:FATAL:memory.cc(22)] Out of memory. size= 168710144 0|mm | [15801:1031/004231.466488:FATAL:memory.cc(22)] Out of memory. size= 168710144 0|mm | [22888:1031/182320.640073:FATAL:memory.cc(22)] Out of memory. size= 120422400 0|mm | [23729:1102/231539.117803:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [13342:1103/081157.062213:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [13880:1103/092611.731661:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [14574:1103/101944.380162:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [14956:1103/112718.990769:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [15635:1103/124555.329821:FATAL:memory.cc(22)] Out of memory. size= 145084416 /home/pi/.pm2/logs/mm-out.log last 15 lines: 0|mm | Create new news fetcher for url: http://blog.mlive.com/sports_impac t/atom.xml - Interval: 300000 0|mm | Create new news fetcher for url: http://feeds.denverpost.com/dp-new s-topstories - Interval: 300000 0|mm | Create new news fetcher for url: http://feeds.denverpost.com/dp-spo rts-snow_sports - Interval: 300000 0|mm | Create new news fetcher for url: https://sports.yahoo.com/top/rss.x ml - Interval: 300000 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:01 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:08 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:12 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:20 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:35 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:36 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:46 ** ERROR ** Couldn’t retrieve dat a for provider SNET: null 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:47 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:48 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:56 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:59 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input
  • Black screen after starting

    Unsolved
    13
    0 Votes
    13 Posts
    12k Views
    CyruS1337C
    Ok thank you. Then I will use 0.0.0.0 Thanks again for your help !!! That’s really great
  • Magic Mirror keeps coming back on

    1
    0 Votes
    1 Posts
    426 Views
    S
    Hi, I am using MMM-Remote Control to control my MM from my phone. Works awesome. Only thing is each time I send the command “Turn off mirror” it does that for about 20 minutes then it comes back on on its own. How can I turn it off for a longer period of time, say like at night?
  • 0 Votes
    2 Posts
    1k Views
    evroomE
    Btw, a simple restart of MagicMirror solved the issue and my MM is working again. Web search tells me that: gnutls_handshake(): This function performs the handshake of the TLS/SSL protocol, and initializes the TLS session parameters. Looks to be related with git, as all calls were done to github.com.
  • Outdated npm packages occur several vulnerabilities

    Unsolved
    1
    0 Votes
    1 Posts
    3k Views
    A
    Hello, a lot of packages are outdated and there are several vulnerabilities which I get after the installation. I am not getting run the magic mirror. Any suggestions? pi@raspberrypi:~/MagicMirror $ node -v v10.13.0 pi@raspberrypi:~/MagicMirror $ npm -v 6.4.1 Output after installation on RaspBerry Pi 3, Raspbian Jessie Lite: added 945 packages from 964 contributors and audited 2510 packages in 493.451s found 79 vulnerabilities (31 low, 32 moderate, 15 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details Outdated packages: pi@raspberrypi:~/MagicMirror $ npm outdated Package Current Wanted Latest Location body-parser 1.18.2 1.18.3 1.18.3 magicmirror chai 4.1.2 4.2.0 4.2.0 magicmirror colors 1.1.2 1.3.2 1.3.2 magicmirror danger 3.1.3 3.9.0 6.0.2 magicmirror electron 2.0.0 2.0.13 3.0.7 magicmirror express 4.16.2 4.16.4 4.16.4 magicmirror grunt-markdownlint 1.0.43 1.1.6 2.1.0 magicmirror helmet 3.9.0 3.14.0 3.14.0 magicmirror jsdom 11.6.2 11.12.0 13.0.0 magicmirror jshint 2.9.5 2.9.6 2.9.6 magicmirror mocha 4.1.0 4.1.0 5.2.0 magicmirror mocha-logger 1.0.5 1.0.6 1.0.6 magicmirror request 2.83.0 2.88.0 2.88.0 magicmirror rrule-alt 2.2.7 2.2.8 2.2.8 magicmirror simple-git 1.85.0 1.106.0 1.106.0 magicmirror socket.io 2.0.4 2.1.1 2.1.1 magicmirror spectron 3.7.2 3.7.3 5.0.0 magicmirror stylelint 8.4.0 8.4.0 9.7.1 magicmirror npm audit fix: > phantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/phantomjs-prebuilt > node install.js PhantomJS not found on PATH Unexpected platform or architecture: linux/arm It seems there is no binary available for your platform/architecture Try to install PhantomJS globally npm WARN acorn-jsx@5.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 (node_modules/phantomjs-prebuilt): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 install: `node install.js` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 + socket.io@2.1.1 + jshint@2.9.6 + request@2.88.0 + mocha-logger@1.0.6 added 30 packages from 33 contributors, removed 32 packages, updated 37 packages and moved 1 package in 65.581s fixed 37 of 79 vulnerabilities in 2510 scanned packages 1 vulnerability required manual review and could not be updated 3 package updates for 41 vulns involved breaking changes (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually) after npm update list of outdated packages: Package Current Wanted Latest Location danger 3.9.0 3.9.0 6.0.2 magicmirror electron 2.0.13 2.0.13 3.0.7 magicmirror grunt-markdownlint 1.1.6 1.1.6 2.1.0 magicmirror jsdom 11.12.0 11.12.0 13.0.0 magicmirror mocha 4.1.0 4.1.0 5.2.0 magicmirror spectron 3.7.3 3.8.0 5.0.0 magicmirror stylelint 8.4.0 8.4.0 9.7.1 magicmirror After all updates and upgrades the list of npm audit: pi@raspberrypi:~/MagicMirror $ npm audit === npm audit security report === # Run npm install spectron@5.0.0 to resolve 3 vulnerabilities SEMVER WARNING: Recommended action is a potentially breaking change ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ spectron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ spectron > electron-chromedriver > electron-download > │ │ │ nugget > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ spectron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ spectron > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ spectron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ spectron > webdriverio > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ # Run npm install --save-dev stylelint@9.7.1 to resolve 4 vulnerabilities SEMVER WARNING: Recommended action is a potentially breaking change ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > postcss-reporter > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > table > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Cryptographically Weak PRNG │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ randomatic │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > micromatch > braces > expand-range > fill-range │ │ │ > randomatic │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/157 │ └───────────────┴──────────────────────────────────────────────────────────────┘ # Run npm update sshpk --depth 6 to resolve 5 vulnerabilities ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ electron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ electron > electron-download > nugget > request > │ │ │ http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ request │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ jsdom │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ jsdom > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ jshint │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ jshint > phantom > phantomjs-prebuilt > request > │ │ │ http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ jshint │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ jshint > phantomjs-prebuilt > request > http-signature > │ │ │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────────────────┐ │ Manual Review │ │ Some vulnerabilities require your attention to resolve │ │ │ │ Visit https://go.npm.me/audit-guide for additional guidance │ └──────────────────────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Patched in │ >=4.17.5 │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ express-ipfilter │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ express-ipfilter > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ One of the suggestions is occurs this: pi@raspberrypi:~/MagicMirror $ npm install --save-dev stylelint@9.7.1 npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/sshpk npm WARN acorn-jsx@5.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm ERR! path /home/pi/MagicMirror/node_modules/sshpk npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/sshpk' npm ERR! { [Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/sshpk'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/home/pi/MagicMirror/node_modules/sshpk\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/home/pi/MagicMirror/node_modules/sshpk' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-01T21_58_27_349Z-debug.log Some of the packages need sudo to get updated successfully o_O Alter all : sudo npm install --save-dev spectron@5.0.0 mocha@5.2.0 jsdom@13.0.0 grunt-markdownlint@2.1.0 electron@3.0.7 danger@6.0.2 output: pi@raspberrypi:~/MagicMirror $ npm outdated Package Current Wanted Latest Location electron MISSING 3.0.7 3.0.7 magicmirror so I tried to install electron again: pi@raspberrypi:~/MagicMirror $ npm install electron@latest -g npm WARN checkPermissions Missing write access to /usr/lib/node_modules npm ERR! path /usr/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/lib/node_modules'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/lib/node_modules\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/lib/node_modules' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-01T22_32_58_797Z-debug.log seems to be a bad idea to install electron as sudo. npm install electron@latest After all the installation and upgrades as you can see the audit: pi@raspberrypi:~/MagicMirror $ npm outdated pi@raspberrypi:~/MagicMirror $ npm audit npm ERR! code ELOCKVERIFY npm ERR! Errors were found in your package-lock.json, run npm install to fix them. npm ERR! Missing: danger@^6.0.2 npm ERR! Missing: grunt-markdownlint@^2.1.0 npm ERR! Missing: jsdom@^13.0.0 npm ERR! Missing: mocha@^5.2.0 npm ERR! Missing: spectron@^5.0.0 now i tried to start: pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 nohup npm start & [1] 3939 pi@raspberrypi:~/MagicMirror $ nohup: ignoring input and appending output to 'nohup.out' content of the file nohup.out: > magicmirror@2.5.0 start /home/pi/MagicMirror > sh run-start.sh /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! magicmirror@2.5.0 start: `sh run-start.sh` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the magicmirror@2.5.0 start 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! /home/pi/.npm/_logs/2018-11-01T22_49_36_884Z-debug.log log file 2018-11-01T22_49_36_884Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using npm@6.4.1 3 info using node@v10.13.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle magicmirror@2.5.0~prestart: magicmirror@2.5.0 6 info lifecycle magicmirror@2.5.0~start: magicmirror@2.5.0 7 verbose lifecycle magicmirror@2.5.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle magicmirror@2.5.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games 9 verbose lifecycle magicmirror@2.5.0~start: CWD: /home/pi/MagicMirror 10 silly lifecycle magicmirror@2.5.0~start: Args: [ '-c', 'sh run-start.sh' ] 11 info lifecycle magicmirror@2.5.0~start: Failed to exec start script 12 verbose stack Error: magicmirror@2.5.0 start: `sh run-start.sh` 12 verbose stack spawn ENOENT 12 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18) 12 verbose stack at ChildProcess.emit (events.js:182:13) 12 verbose stack at maybeClose (internal/child_process.js:962:16) 12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) 13 verbose pkgid magicmirror@2.5.0 14 verbose cwd /home/pi/MagicMirror 15 verbose Linux 4.14.71-v7+ 16 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 17 verbose node v10.13.0 18 verbose npm v6.4.1 19 error file sh 20 error code ELIFECYCLE 21 error errno ENOENT 22 error syscall spawn 23 error magicmirror@2.5.0 start: `sh run-start.sh` 23 error spawn ENOENT 24 error Failed at the magicmirror@2.5.0 start script. 24 error This is probably not a problem with npm. There is likely additional logging output above. 25 verbose exit [ 1, true ] There are no Permission errors. sudo chown -R $(whoami) ~/../../usr/lib/node_modules/ sudo chown -R $(whoami) ~/.npm/ Any suggestions? I had to install the desktop environment to get it work. Best way is to follow the constructions here: https://github.com/MichMich/MagicMirror/wiki/Jessie-Lite-Installation-Guide Thanks to @lavolp3 https://forum.magicmirror.builders/post/46231 After the installation of desktop enviroenment I could run the magic mirror without errors. “Launched application.” But nothing could be seen. I removed all began a fresh installation but ended with the same problems and new issiues. I think this project is out of the date and needs a lot of time and work to get worked.
  • error: inflate: data stream error (invalid code lengths set)

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    G
    Try to make an update to my MM with “git pull && npm install” in the MagicMirror Directory and get these Error: error: inflate: data stream error (invalid code lengths set) fatal: loose object d0ecde3277023772ee3a1864f9a113a1c215cc8a (stored in .git/objects/d0/ecde3277023772ee3a1864f9a113a1c215cc8a) is corrupt fatal: The remote end hung up unexpectedly How can i resolve this? I´m not so firm with the command line so i dont know what tod do! Thanks for your Help
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    26 Views
  • package-lock.json How to commit?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    lavolp3L
    Same issue, haven’t seen that before. Anyone an idea?
  • traffic show info question

    Unsolved
    1
    0 Votes
    1 Posts
    610 Views
    citizendevpiC
    can someone post there config that shows route info text in the traffic module all mine says is when to leave but I would like to see more like the router name and the arrival time thanks
  • Update says to "commit your changes or stash them before you can merge." ?

    26
    0 Votes
    26 Posts
    44k Views
    rudibaraniR
    I am trying to update my Docker version to 2.5.0. Do I need to update the Docker image itself or can I just use the regular update path? I keep getting the error to commit or stash my changes. Doing so does not change a thing: root@magic_mirror:/opt/magic_mirror# git reset --hard && git pull HEAD is now at 6aa156d Merge pull request #1343 from MichMich/develop Updating 6aa156d..6db61b4 error: Your local changes to the following files would be overwritten by merge: config/config.js.sample css/main.css modules/default/alert/alert.js modules/default/calendar/calendarfetcher.js modules/default/compliments/README.md modules/default/compliments/compliments.js modules/default/newsfeed/README.md modules/default/newsfeed/newsfeed.js modules/default/updatenotification/updatenotification.js modules/default/weatherforecast/weatherforecast.js Please, commit your changes or stash them before you can merge. Aborting ``` Stashing the changes does not help either. Does someone have an idea?
  • MM stopped loading after updating pi (error log included)

    Unsolved
    1
    0 Votes
    1 Posts
    540 Views
    I
    Fresh install of pi, tested and MM runs. Added the modules I want, tested, they all load and everything works. Ran updates on the pi, rebooted, MM won’t load. PM2 log files show: Error: ENOENT: no such file or directory, open 'package.json' at Object.fs.openSync (fs.js:660:18) at Object.fs.readFileSync (fs.js:565:33) at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:15:32) at Module._compile (internal/modules/cjs/loader.js:654:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10) at Module.load (internal/modules/cjs/loader.js:566:32) at tryModuleLoad (internal/modules/cjs/loader.js:506:12) at Function.Module._load (internal/modules/cjs/loader.js:498:3) at Module.require (internal/modules/cjs/loader.js:598:17) at require (internal/modules/cjs/helpers.js:11:18) That log repeats as long as PM2 tries to keep loading MM. running find . -name package.json -maxdepth 2 -execdir npm install \; doesn’t fix it. MM files are up to date (git pull), and the config file is good (npm run config:check) Not sure where to go from here.
  • Black screen after some time

    Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    Mykle1M
    @striiker said in Black screen after some time: I’ve considered downgrading to a pre-2.4.0 build (haven’t checked to see if it’s even available) All the releases https://github.com/MichMich/MagicMirror/releases
  • Sound loop not seamless. Request advice.

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    Mykle1M
    @sean Hi sean. No, I have not tried it on a Pi, yet. I only just started developing the module and came upon this issue. When/if I can solve this, the PI will get its chance.
  • High CPU load of electron and MM freezes

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    W
    @a94marbo said in High CPU load of electron and MM freezes: Hi I have noticed that MM freezes some times and electron is consuming 70-80% of the CPU. I think these are releted somehow. I tried to reinstall dependancies with “git pull && npm install” everything goes fine until the end when I get “npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.” error message. Dont know if that is related to electron high CPU load. Anyone recognize these errors? Absolutely - I have 2 raspberry pis, freshly installed MMM on both and have these issues. I am struggling around with an earlier electron version, activating the Open GL fkms driver, increasing GPU Mem size, increasing swap memory size but the problem prevails. This issues has been heavily discussed from what it seems about a year ago (this is where the “earlier version of electron” solution comes from), but nothing ever happened I guess. e.g. see: https://github.com/MichMich/MagicMirror/issues/1059 https://forum.magicmirror.builders/topic/2717/electron-performance/7
  • Black screen after installing MMM-UKLiveBusStopInfo....

    Unsolved
    1
    0 Votes
    1 Posts
    496 Views
    D
    I started to configure my MagicMirror and all was well till I decided to add that module. Because I was testing it I wasn’t using MM autostart but rather “DISPLAY=:0 npm start” I made several reboots and all was fine. When I added MMM-UKLiveBusStopInfo it was ok (module was visible and showing buses) till I rebooted the Pi. Now I have an unresponsive black screen with the cursor in the top left corner. How to fix it?
  • MM Update - GIT error

    Solved
    17
    0 Votes
    17 Posts
    8k Views
    P
    hmm… it looks like my system is broken. npm makes a lot of problems too. I decide to reset the systems completely. Fresh OS and a new MM installation. It was easier as to find the root cause. Now everythink is running up again. Thanks a lot for your ideas and your help
  • MM crashes without any error message

    Unsolved
    1
    0 Votes
    1 Posts
    602 Views
    K
    HI, my MagicMirror crashes at startup without any error message. I can see all modules loading on the console then the screen turns black but there is noUI instead i get back to console. I already tried to take anoterh config.js but same behaviour. Is there any debug file where i might find some hints.
  • MMM-Hotword problem with Black Screen

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    E
    I’m going to call this solved, kinda. I restarted from scratch and got it to work. Snowboy was not installing for some reason. Possibly my raspbian was not up to date. But we’ll never know.