0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using email@example.com
3 info using firstname.lastname@example.org
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle email@example.com~prestart: firstname.lastname@example.org
6 silly lifecycle email@example.com~prestart: no script for prestart, continuing
7 info lifecycle firstname.lastname@example.org~start: email@example.com
8 verbose lifecycle firstname.lastname@example.org~start: unsafe-perm in lifecycle true
9 verbose lifecycle email@example.com~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/root/MagicMirror/node_modules/.bin:/usr/bin:/usr/local/sbin:/usr/local/b$
10 verbose lifecycle firstname.lastname@example.org~start: CWD: /root/MagicMirror
11 silly lifecycle email@example.com~start: Args: [ '-c', 'electron js/electron.js' ]
12 silly lifecycle firstname.lastname@example.org~start: Returned: code: 1 signal: null
13 info lifecycle email@example.com~start: Failed to exec start script
14 verbose stack Error: firstname.lastname@example.org start: `electron js/electron.js`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:245:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:850:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid email@example.com
16 verbose cwd /root/MagicMirror
17 error Linux 4.4.9-v7+
18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
19 error node v6.2.0
20 error npm v3.8.9
21 error code ELIFECYCLE
22 error firstname.lastname@example.org start: `electron js/electron.js`
22 error Exit status 1
23 error Failed at the email@example.com start script 'electron js/electron.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the magicmirror package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error electron js/electron.js
Note from admin: Please use Markdown on code snippets so it is easier to read!
@MichMich I tried the jshint and jslint but, was not successful because of my lack of knowledge in this language. I fixed it but basically scrapping the whole file and doing one section at a time. I learnt a whole lot in two hours though haha
@taztrk please use Markdown on code snippets so it is easier to read 🙂
Looks like your OS or node version is not supported by Electron. Try using Raspbian especially if you do not have much experience.
Fairly new to MagicMirror2, everything is installed, current version, works a treat, looks awesome too!
Anyway I added this code as an tag within a tag, now this is the strange part if I open the index.html file using firefox itself runs as it should and plays the complete playlist, auto plays, repeats… Everything is fine.
But once it is opened as it should be on my Raspberry Pi 2 B, it will cue to autoplay the first song/video but then just show a revolving icon meaning it is loading and nothing more. However if I use tab on my keyb and hit the pause button and then hit the enter button again it is quite happy to play the next song/video for me until the end of that said track.
Here is the exact HTML
You can insert that within a
tag if you wish and see if that will play the next track after the first automatically yourself if you wish…
Just the mind is boggling here and I’m not sure how or why this is happening…
pi@raspberrypi ~ $ date
Sat May 14 09:32:09 EDT 2016
pi@raspberrypi ~ $
and here is the screenshot. if i wake up every day at 9am, i would not notice the 8hrs delay.
but since i wake up at 6am, thats when i noticed the delay as seen in previous screenshots
Taking this topic back to the storage question above, I did a fresh install on another rPi-3 and captured some info. One a stock Raspbian Jessie, running on an 8G card, with all apps updated, nothing removed, once you have MM up and running, you’re looking at the following for storage:
Now, since you’re likely to only use this for MM and nothing else, there’s no sense in leaving all of the other apps on it that are pre-installed. So, I removed some of the big ones:
And after running autoremove as well, which cleared even more space removing other unneeded apps, you’re down to this:
That’s 1.3G worth of storage that I just cleared up. So unless you need a larger SD card for other stuff, an 8G works just fine. Potentially even a 4G. You’ll still have plenty of room left after you clean up the installation.
Another option is to start with Raspbian Jessie-lite on a 4G card, but then you have to install the X server, desktop environment, and a login manager yourself. Assuming you get it all done correctly, you’ll end up with a very light weight installation of the OS, taking up only 53% of storage (remember, 4G card), with MM running lean and clean on top of that. I did try that as well but ran into issues with electron.js and for the time involved, knowing I wasn’t going to run it on there, it wasn’t worth continuing. I will leave that as an exercise to the brave.