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

    Posts

    Recent Best Controversial
    • Copy and paste of text to nano config/config.js

      Hi so I’m currently trying to change the current weather details in the nano config/config.js folder. I wanted to try copying and pasting the information shown below to replace the current details in there as a test to get it working. I’m yet to be success full. So I copy the info below and copy and past it over the details already in the file for current weather, but for some reason each time it just re-copys whats already in there New York, instead of replacing it with Amsterdam,Netherlands and all the other info. It seems to paste everywhere else but not in that folder.

      Any help would be gratefully appreciated.

      {
      		module: "currentweather",
      		position: "top_right",	// This can be any of the regions.
      									// Best results in left or right regions.
      		config: {
      			// See 'Configuration options' for more information.
      			location: "Amsterdam,Netherlands",
      			locationID: "", //Location ID from http://openweathermap.org/help/city_list.txt
      			appid: "abcde12345abcde12345abcde12345ab" //openweathermap.org API key.
      		}
      
      posted in Troubleshooting
      I
      IDCreate
    • RE: Raspberry Pi Config Help - Unable to find - [SeatDefaults] To add the following line below xserver-command=X -s 0 -dpms

      @j.e.f.f

      Thanks very much j.e.f.f that’s very helpful advice. I’m pleased I’m not the only one that has had this issue. I couldn’t even find the code line [SeatDefaults] on the page /etc/lightdm/lightdm.conf . I’ll try your suggestion, Mykle1 had also suggested this option to me but I just wanted to dig a little deeper and find out why [SeatDefaults] was not in the script for GNU nano 2.7.4 File: /etc/lightdm/lightdm.conf

      I’m sure there’s probably a obvious explanation for it.

      So how do I install on my Raspberry Pi 3 and is it suitable.I’m running Raspbian Stretch with desktop
      Image with desktop based on Debian Stretch
      Version: September 2017
      Release date: 2017-09-07
      Kernel version: 4.9
      Release notes: Link

      posted in Troubleshooting
      I
      IDCreate
    • Raspberry Pi Config Help - Unable to find - [SeatDefaults] To add the following line below xserver-command=X -s 0 -dpms

      Hi so I’m slowly getting into configuring my Raspberry Pi.

      I’m running Raspbian Stretch with desktop
      Image with desktop based on Debian Stretch
      Version: September 2017
      Release date: 2017-09-07
      Kernel version: 4.9
      Release notes: Link

      I’m following the details on this page https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi

      I’m at the section for the screensaver and I’m at the step below.

      Add the following line below [SeatDefaults]

      xserver-command=X -s 0 -dpms
      

      But I’ve typed everything in correctly but I’m unable to find the line [SeatDefaults]

      at the top of the open screen reads
      GNU nano 2.7.4 File: /etc/lightdm/lightdm.conf

      Any help would be greatly appreciated.

      posted in Troubleshooting
      I
      IDCreate
    • RE: Still going but I've hit a brickwall - Unable to install dependencies

      @Mykle1 ok thanks so I have the mirror screen on my desktop and the menu bar after I pressed alt. What do I do know close it down?

      posted in Troubleshooting
      I
      IDCreate
    • RE: Still going but I've hit a brickwall - Unable to install dependencies

      @Mykle1 so I think I’ve done this as you have said. I went onto my desktop where you see the Raspberry Pi screen like you would a computer. I went to the folder you mentioned and deleted it. I then went ahead and followed your instructions. I then went to type npm start my screen flashed up on my desktop MagicMirror2 then dispersed and is showing on my main screen but says Please create a config file. See README for more information.

      Then below says If you get this message while your config file is already created, your config file probably contains an error. Use a JavaScript linter to validate your file?

      I’m now unable to get to my pi via my desktop. For some strange reason after typing this I’ve just managed to get back onto my Pi via my desktop.

      posted in Troubleshooting
      I
      IDCreate
    • RE: Still going but I've hit a brickwall - Unable to install dependencies

      @Mykle1 I did manage to run the install as you mentioned as well before, it seems that I was in the cd MagicMirror section as you mentioned.

      pi@raspberrypi:~/MagicMirror $ npm install
      
      > magicmirror@2.1.3 install /home/pi/MagicMirror
      > cd vendor && npm install
      
      magicmirror-vendors@ /home/pi/MagicMirror/vendor
      ├── font-awesome@4.7.0 
      ├── moment@2.19.1 
      ├── moment-timezone@0.5.13 
      └── weathericons@2.1.0 
      
      
      > magicmirror@2.1.3 postinstall /home/pi/MagicMirror
      > sh installers/postinstall/postinstall.sh && npm run install-fonts
      
      MagicMirror installation successful!
      
      > magicmirror@2.1.3 install-fonts /home/pi/MagicMirror
      > cd fonts && npm install
      
      magicmirror-fonts@ /home/pi/MagicMirror/fonts
      └── roboto-fontface@0.8.0 
      
      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.1.3 start /home/pi/MagicMirror
      > sh run-start.sh
      
      /home/pi/MagicMirror/node_modules/electron/index.js:9
       throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
       ^
      
      Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
         at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
         at Module._compile (module.js:570:32)
         at Object.Module._extensions..js (module.js:579:10)
         at Module.load (module.js:487:32)
         at tryModuleLoad (module.js:446:12)
         at Function.Module._load (module.js:438:3)
         at Module.require (module.js:497:17)
         at require (internal/module.js:20:19)
         at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
         at Module._compile (module.js:570:32)
      
      npm ERR! Linux 4.9.59-v7+
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
      npm ERR! node v6.11.5
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! magicmirror@2.1.3 start: `sh run-start.sh`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     sh run-start.sh
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs magicmirror
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/MagicMirror/npm-debug.log
      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.1.3 start /home/pi/MagicMirror
      > sh run-start.sh
      
      /home/pi/MagicMirror/node_modules/electron/index.js:9
       throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
       ^
      
      Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
         at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
         at Module._compile (module.js:570:32)
         at Object.Module._extensions..js (module.js:579:10)
         at Module.load (module.js:487:32)
         at tryModuleLoad (module.js:446:12)
         at Function.Module._load (module.js:438:3)
         at Module.require (module.js:497:17)
         at require (internal/module.js:20:19)
         at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
         at Module._compile (module.js:570:32)
      
      npm ERR! Linux 4.9.59-v7+
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
      npm ERR! node v6.11.5
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! magicmirror@2.1.3 start: `sh run-start.sh`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     sh run-start.sh
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs magicmirror
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/MagicMirror/npm-debug.log
      pi@raspberrypi:~/MagicMirror $ 
      
      
      
      posted in Troubleshooting
      I
      IDCreate
    • RE: Still going but I've hit a brickwall - Unable to install dependencies

      @Mykle1 thanks very much I don’t want to be a pain with all these questions.

      So I tried what you’ve said and I get the code below:

      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.1.3 start /home/pi/MagicMirror
      > sh run-start.sh
      
      /home/pi/MagicMirror/node_modules/electron/index.js:9
        throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
        ^
      
      Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
          at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
          at Module._compile (module.js:570:32)
      
      npm ERR! Linux 4.9.59-v7+
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
      npm ERR! node v6.11.5
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! magicmirror@2.1.3 start: `sh run-start.sh`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     sh run-start.sh
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs magicmirror
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/MagicMirror/npm-debug.log
      pi@raspberrypi:~/MagicMirror $ 
      
      
      
      
      posted in Troubleshooting
      I
      IDCreate
    • RE: Still going but I've hit a brickwall - Unable to install dependencies

      Thank you Mykle,

      I’m a complete beginner and no nothing about C code or how to code a Raspberry Pi. I’m just learning as I go along so any help would be most useful.

      I’ve not run the mirror and would’nt even know where to start to do this. I’m just following the instructions from the website. I came up with this issue and I’m totally stuck.

      I’m just so grateful for people like you and this forum for yours, and everyone’s great knowledge. I’m very keen to learn, I’m dyslexic and it can some times take me longer than others to do things like this but I’m determined not to give up.

      So if you would be so kind to assist me and advise me of to what you mean by

      cd into the MagicMirror directory and run npm start and lets see what you get.

      npm start
      

      and lets see what you get.

      Many thanks in advance for all your help.

      posted in Troubleshooting
      I
      IDCreate
    • Still going but I've hit a brickwall - Unable to install dependencies

      Re: Beginner MagicMirror Install Issue - apt --fix-broken install

      So I’m getting ever so closer hoping that someone out there will be able to help. I’m running the latest version of

      Raspbian Stretch with desktop
      Image with desktop based on Debian Stretch
      Version: September 2017
      Release date: 2017-09-07
      Kernel version: 4.9

      I’ve done I don’t know how many Micro SD’s I’ve formatted and how many re-installs I’ve done, but I’ve finally managed to get MagicMirror2 installed or so I thought.

      I get everything almost installed and then just at the end I get this…

      Node.js installation Done!
      Cloning MagicMirror ...
      Cloning into 'MagicMirror'...
      remote: Counting objects: 8798, done.
      remote: Compressing objects: 100% (68/68), done.
      remote: Total 8798 (delta 46), reused 77 (delta 33), pack-reused 8695
      Receiving objects: 100% (8798/8798), 11.32 MiB | 2.78 MiB/s, done.
      Resolving deltas: 100% (4968/4968), done.
      Cloning MagicMirror Done!
      Installing dependencies ...
      npm WARN prefer global coffee-script@1.10.0 should be installed with -g
      npm WARN prefer global jsonlint@1.6.2 should be installed with -g
      
      > uws@0.14.5 install /home/pi/MagicMirror/node_modules/uws
      > node-gyp rebuild > build_log.txt 2>&1 || exit 0
      
      
      
      Unable to install dependencies!
      
      

      It’s really frustrating I’ve been on this all day and thought I had finally cracked it with the good advice from lavolp3. But unfortunately I seem to have hit a brick wall any help would be gratefully appreciated. I’m new to all this so the more simple you can make it the better thanks.

      posted in Troubleshooting magicmirror
      I
      IDCreate
    • 1
    • 2
    • 3
    • 2 / 3