vendor folders ?



  • 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


  • Module Developer

    @mollobeck

    Can you post the console output here?



  • 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


  • Module Developer

    @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 😕



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

  • Module Developer

    @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)



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


  • Module Developer

    @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. :^)



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


  • Module Developer

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