• 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.

vendor folders ?

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 2 Posters 2.7k 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.
  • M Offline
    mollobeck
    last edited by Sep 18, 2017, 8:11 PM

    Hi everyone,
    First jump into my magic mirror project… and first surprise
    On launch, the javascript console alerts me that some files are missing in vendor subfolders. However they just do not exist.
    Did I miss something during the installation or do I have some extra action to do to fix it ?
    Thanks
    Florian

    M 1 Reply Last reply Sep 18, 2017, 8:46 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @mollobeck
      last edited by Sep 18, 2017, 8:46 PM

      @mollobeck

      Can you post the console output here?

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • M Offline
        mollobeck
        last edited by mollobeck Sep 18, 2017, 8:51 PM Sep 18, 2017, 8:50 PM

        0_1505767808367_Capture d’écran 2017-09-18 à 22.49.27.png

        Here it is - and I confirm that those files do not exist in the folder

        M 1 Reply Last reply Sep 18, 2017, 8:52 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @mollobeck
          last edited by Mykle1 Sep 18, 2017, 8:56 PM Sep 18, 2017, 8:52 PM

          @mollobeck

          Ok, my bad, I meant the terminal output. I’m sorry about that. Many times the terminal output will tell us where the problem lies.

          So, run the mirror then quit the mirror. Then post your terminal output in a code block because this old man can’t see those pictures very well :-/

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • M Offline
            mollobeck
            last edited by Sep 18, 2017, 8:56 PM

            The right one here :)

            MacBook-Pro-de-Florian:MagicMirror florian$ sudo npm install && sudo npm start
            Password:
            npm WARN lifecycle magicmirror@2.1.2~install: cannot run in wd %s %s (wd=%s) magicmirror@2.1.2 cd vendor && npm install /Users/florian/Desktop/SMART MIRROR/prod/MagicMirror
            npm WARN lifecycle magicmirror@2.1.2~postinstall: cannot run in wd %s %s (wd=%s) magicmirror@2.1.2 sh installers/postinstall/postinstall.sh /Users/florian/Desktop/SMART MIRROR/prod/MagicMirror
            npm WARN grunt-stylelint@0.9.0 requires a peer of stylelint@^8.0.0 but none was installed.
            npm WARN stylelint-config-recommended@1.0.0 requires a peer of stylelint@^8.0.0 but none was installed.
            npm WARN stylelint-config-standard@17.0.0 requires a peer of stylelint@^8.0.0 but none was installed.
            
            up to date in 4.943s
            
            > magicmirror@2.1.2 start /Users/florian/Desktop/SMART MIRROR/prod/MagicMirror
            > sh run-start.sh
            
            Starting MagicMirror: v2.1.2
            Loading config ...
            Loading module helpers ...
            No helper found for module: alert.
            Initializing new module helper ...
            Module helper loaded: updatenotification
            No helper found for module: clock.
            No helper found for module: currentweather.
            Initializing new module helper ...
            Module helper loaded: newsfeed
            All module helpers loaded.
            Starting server on port 8080 ... 
            Server started ...
            Connecting socket for: updatenotification
            Connecting socket for: newsfeed
            Starting module: newsfeed
            Sockets connected & modules started ...
            Launching application.
            
            M 1 Reply Last reply Sep 18, 2017, 9:03 PM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @mollobeck
              last edited by Mykle1 Sep 18, 2017, 9:06 PM Sep 18, 2017, 9:03 PM

              @mollobeck

              Ok, I see the warnings.

              You should not have to run sudo to install your dependencies or start the mirror.

              Is the mirror not running?

              If your mirror runs, you can disregard the warnings.

              You may have to run npm install in the vendor directory again.

              This seems to be the culprit here, though I don’t know the meaning

              cannot run in wd %s %s (wd=%s)

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 1
              • M Offline
                mollobeck
                last edited by Sep 18, 2017, 9:27 PM

                Thank you - running the npm command in the folder populated it !
                I do not know exactly why it didn’t work but here is the magic…
                Thanks again!

                M 1 Reply Last reply Sep 19, 2017, 12:07 AM Reply Quote 1
                • M Offline
                  Mykle1 Project Sponsor Module Developer @mollobeck
                  last edited by Sep 19, 2017, 12:07 AM

                  @mollobeck said in vendor folders ?:

                  Thank you - running the npm command in the folder populated it !

                  I thought that might do it.

                  Thanks again!

                  You’re welcome. Enjoy your mirror. :^)

                  Create a working config
                  How to add modules

                  M 1 Reply Last reply Sep 19, 2017, 6:45 AM Reply Quote 1
                  • M Offline
                    mollobeck @Mykle1
                    last edited by mollobeck Sep 19, 2017, 7:00 AM Sep 19, 2017, 6:45 AM

                    @Mykle1

                    Done :)
                    I have a second question about the weather forecast module.
                    It is not appearing on the mirror. Here is a sample of my config.js file :

                    		{
                    			module: "weatherforecast",
                    			position: "lower_third",
                    			header: "Weather Forecast",
                    			config: {
                    				location: "Paris",
                    				locationID: "2988507",  //ID from http://www.openweathermap.org/help/city_list.txt
                    				appid: "929XXXXXXXXXX81d",
                    				roundTemp: true,
                    			}
                    		},
                    

                    Is there something done wrong ?
                    EDIT : it seems that the daily forecast API is not free

                    M 1 Reply Last reply Sep 19, 2017, 11:26 AM Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @mollobeck
                      last edited by Mykle1 Sep 19, 2017, 11:39 AM Sep 19, 2017, 11:26 AM

                      @mollobeck said in vendor folders ?:

                      Is there something done wrong ?

                      No, you’ve done nothing wrong. There is an issue with new API keys being rejected. I think I saw a fix here somewhere. I’ll look for it.

                      EDIT: Here it is

                      “Well… Yesterday I submitted a patch to hack the situation with the new accounts in OpenWeather.”

                      https://github.com/roramirez/MagicMirror/commit/e8438d37d78acc7a9e29e694a6987ce068324bcd

                      Alternately, you can try other weather modules. There are many of them.

                      Create a working config
                      How to add modules

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