• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Installing modules on windows

Scheduled Pinned Locked Moved Troubleshooting
16 Posts 2 Posters 4.4k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    vintage89
    last edited by vintage89 Apr 11, 2020, 1:04 PM Apr 11, 2020, 1:04 PM

    @sdetweil
    Thanks :)
    I´ve run the script, but when I tried to start it gave me this:

    
    pi@raspberrypi:~/MagicMirror $ npm start
    
    > magicmirror@2.11.0 start /home/pi/MagicMirror
    > electron js/electron.js
    
    
    (electron:8589): Gtk-WARNING **: 14:59:29.032: cannot open display: 
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.11.0 start: `electron js/electron.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.11.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/2020-04-11T12_59_29_059Z-debug.log
    
    

    I changed the package.json to this - like you said in my other post:

    4E9946A3-9DCE-41FA-9833-5CA4345521F6.jpeg

    S 1 Reply Last reply Apr 11, 2020, 1:05 PM Reply Quote 0
    • S Away
      sdetweil @vintage89
      last edited by sdetweil Apr 11, 2020, 1:08 PM Apr 11, 2020, 1:05 PM

      @vintage89 do

      export DISPLAY=:0

      then
      npm start

      these two steps are what the original code did, would have worked on linux… just not on Windows…
      windows doesn’t have ‘xwindows display’

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      V 2 Replies Last reply Apr 11, 2020, 1:09 PM Reply Quote 0
      • V Offline
        vintage89 @sdetweil
        last edited by Apr 11, 2020, 1:09 PM

        @sdetweil
        Gave me this, did I do something wrong? :)

        
        pi@raspberrypi:~ $ export DISPLAY=:0
        pi@raspberrypi:~ $ cd MagicMirror/
        pi@raspberrypi:~/MagicMirror $ npm start
        
        > magicmirror@2.11.0 start /home/pi/MagicMirror
        > electron js/electron.js
        
        
        (electron:813): Gtk-WARNING **: 15:08:03.027: cannot open display: :0
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! magicmirror@2.11.0 start: `electron js/electron.js`
        npm ERR! Exit status 1
        npm ERR! 
        npm ERR! Failed at the magicmirror@2.11.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/2020-04-11T13_08_03_102Z-debug.log
        
        
        1 Reply Last reply Reply Quote 0
        • V Offline
          vintage89 @sdetweil
          last edited by Apr 11, 2020, 1:13 PM

          @sdetweil ahh, sorry - forgot to mention that I got my rassberry today, so I’m on a raspberry now. My bad!!

          S 1 Reply Last reply Apr 11, 2020, 1:18 PM Reply Quote 0
          • S Away
            sdetweil @vintage89
            last edited by Apr 11, 2020, 1:18 PM

            @vintage89 how are u connected to the pi? ssh, vnc, on the monitor?

            and you are using the graphical desktop version of Raspian, right?? u must to display on the pi…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            V 1 Reply Last reply Apr 11, 2020, 1:25 PM Reply Quote 0
            • V Offline
              vintage89 @sdetweil
              last edited by Apr 11, 2020, 1:25 PM

              @sdetweil
              I’m connected via ssh and vnc. I managed to start it with the original config.json. It’s after I put in the synology-module that everything went out the window.

              S 1 Reply Last reply Apr 11, 2020, 1:27 PM Reply Quote 0
              • S Away
                sdetweil @vintage89
                last edited by Apr 11, 2020, 1:27 PM

                @vintage89 eh… I cut/pasted the sample config for that module into config.js at the end of the module list and it came up just fine

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                V 1 Reply Last reply Apr 11, 2020, 1:33 PM Reply Quote 0
                • V Offline
                  vintage89 @sdetweil
                  last edited by Apr 11, 2020, 1:33 PM

                  @sdetweil
                  I´ll try and start from scratch again :)
                  So If I understand you correctly - I don’t have to change the package.json when I’m on the raspberry? :)

                  S 2 Replies Last reply Apr 11, 2020, 1:36 PM Reply Quote 0
                  • S Away
                    sdetweil @vintage89
                    last edited by Apr 11, 2020, 1:36 PM

                    @vintage89 correct… (long as its a pi3 or 4)

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil @vintage89
                      last edited by Apr 11, 2020, 1:37 PM

                      @vintage89 u don’t need to start from scratch… just copy the config/config.js.sample to config/config.js

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        10/16
                        Last post
                      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