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

GETTING STARTED : HELP !!

Scheduled Pinned Locked Moved Troubleshooting
16 Posts 4 Posters 6.2k Views 3 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.
  • ? Offline
    A Former User
    last edited by Oct 1, 2017, 5:49 PM

    0_1506880118230_sshot.png

    This is a screen shot of the directory from github (left) and then what files are on the pi (right) is this correct?

    1 Reply Last reply Reply Quote 0
    • ? Offline
      A Former User @MichMich
      last edited by Oct 1, 2017, 5:58 PM

      @MichMich I have tried renaming the file that is in that folder to just say config.js and restarted the pi but still getting the same issue.

      M 1 Reply Last reply Oct 2, 2017, 1:45 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @Guest
        last edited by Oct 2, 2017, 1:45 AM

        @PCPAYN3

        So, you made a copy of the config.js.sample file and renamed it to config.js, and then you run the mirror and it says your config is missing or has errors?

        Can you post your terminal output here?

        Create a working config
        How to add modules

        ? 1 Reply Last reply Oct 2, 2017, 9:45 AM Reply Quote 0
        • ? Offline
          A Former User @Mykle1
          last edited by Oct 2, 2017, 9:45 AM

          @Mykle1 yes thats correct. What do you mean by post terminal output? Sorry im a newbie at this.

          M 1 Reply Last reply Oct 2, 2017, 11:57 AM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @Guest
            last edited by Oct 2, 2017, 11:57 AM

            @PCPAYN3

            Check that the config.js file is inside the MagicMirror/config/ folder. Unless you made changes to the sample file itself before copying and renaming, that should work.

            Your terminal, where you run your commands to launch the mirror. You would copy and paste the information in that window here. It’s probably a good idea for you to copy and paste your config.js file here as well.

            Please select the code block option when pasting </>

            Create a working config
            How to add modules

            ? 2 Replies Last reply Oct 2, 2017, 12:00 PM Reply Quote 0
            • ? Offline
              A Former User @Mykle1
              last edited by Oct 2, 2017, 12:00 PM

              @Mykle1 hi yes it is in that folder as shown on my screen grab from winscp i will copy the code from the file tonight and paste it on here for you to see.

              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @Mykle1
                last edited by Oct 2, 2017, 12:02 PM

                @Mykle1 is there a command i should be running when the pi boots? As i have been going into the folder and loading the index.html file from there.

                M 1 Reply Last reply Oct 2, 2017, 12:31 PM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Guest
                  last edited by Oct 2, 2017, 12:31 PM

                  @PCPAYN3

                  @PCPAYN3 said in GETTING STARTED : HELP !!:

                  is there a command i should be running when the pi boots? As i have been going into the folder and loading the index.html file from there.

                  I’m not really sure what you’re asking. The index.html file isn’t going to launch the mirror. Open a terminal, cd into the MagicMirror directory and run npm start. If you get the config error, we’ll take it from there once you post your terminal and config here

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by Oct 3, 2017, 3:21 PM

                    Terminal:
                    pi@raspberrypi:~ $ npm start
                    npm ERR! Linux 4.9.35-v7+
                    npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
                    npm ERR! node v6.11.3
                    npm ERR! npm v3.10.10
                    npm ERR! path /home/pi/package.json
                    npm ERR! code ENOENT
                    npm ERR! errno -2
                    npm ERR! syscall open

                    npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
                    npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
                    npm ERR! enoent This is most likely not a problem with npm itself
                    npm ERR! enoent and is related to npm not being able to find a file.
                    npm ERR! enoent

                    npm ERR! Please include the following file with any support request:
                    npm ERR! /home/pi/npm-debug.log

                    Config File:
                    /* Magic Mirror Config
                    *

                    • By Michael Teeuw http://michaelteeuw.nl
                    • MIT Licensed.
                    • For more information how you can configurate this file
                    • See https://github.com/MichMich/MagicMirror#configuration

                    */

                    var config = {
                    address: “localhost”, // Address to listen on, can be:
                    // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
                    // - another specific IPv4/6 to listen on a specific interface
                    // - “”, “0.0.0.0”, “::” to listen on any interface
                    // Default, when address config is left out, is “localhost”
                    port: 8080,
                    ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
                    // or add a specific IPv4 of 192.168.1.4 :
                    // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
                    // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                    // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],

                    language: "en",
                    timeFormat: 12,
                    units: "metric",
                    
                    modules: [
                    	{
                    		module: "alert",
                    	},
                    	{
                    		module: "updatenotification",
                    		position: "top_bar"
                    	},
                    	{
                    		module: "clock",
                    		position: "top_left"
                    	},
                    	{
                    		module: "calendar",
                    		header: "US Holidays",
                    		position: "top_left",
                    		config: {
                    			calendars: [
                    				{
                    					symbol: "calendar-check-o ",
                    					url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                    				}
                    			]
                    		}
                    	},
                    	{
                    		module: "compliments",
                    		position: "lower_third"
                    	},
                    	{
                    		module: "currentweather",
                    		position: "top_right",
                    		config: {
                    			location: "New York",
                    			locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
                    			appid: "YOUR_OPENWEATHER_API_KEY"
                    		}
                    	},
                    	{
                    		module: "weatherforecast",
                    		position: "top_right",
                    		header: "Weather Forecast",
                    		config: {
                    			location: "New York",
                    			locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
                    			appid: "YOUR_OPENWEATHER_API_KEY"
                    		}
                    	},
                    	{
                    		module: "newsfeed",
                    		position: "bottom_bar",
                    		config: {
                    			feeds: [
                    				{
                    					title: "New York Times",
                    					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                    				}
                    			],
                    			showSourceTitle: true,
                    			showPublishDate: true
                    		}
                    	},
                    ]
                    

                    };

                    /*************** DO NOT EDIT THE LINE BELOW ***************/
                    if (typeof module !== “undefined”) {module.exports = config;}

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by Oct 3, 2017, 4:47 PM

                      0_1507049198415_sgrab.png

                      I have tried reinstalling & I am now getting this from the terminal

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