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

trouble with config file

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 5 Posters 11.4k Views 4 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.
  • I Offline
    II12yanII
    last edited by Oct 13, 2016, 3:37 AM

    sorry if this is a newb question im new to the pi world. i have just installed everything needed for magic mirror to work. i changed the file name of config.js.sample to just config.js and magic mirror just gives a black screen when i run it. i dont know what im doing wrong but shouldnt at least the clock show up with the default config file or no? thanks in advanced for any help

    1 Reply Last reply Reply Quote 0
    • N Offline
      nuckinfutz
      last edited by nuckinfutz Oct 13, 2016, 4:41 PM Oct 13, 2016, 4:30 PM

      Your assumption is correct.

      Did you follow this?

      https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

      If so it should work. If doesn’t let me know and I’ll see what I can do.

      P.S. Do not change the name of the config.js.sample Copy it and name the copy config.js

      I 1 Reply Last reply Oct 14, 2016, 3:40 PM Reply Quote 0
      • K Offline
        KirAsh4 Moderator
        last edited by Oct 13, 2016, 5:56 PM

        Need more information here, including what hardware are you attempting to run it on.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 0
        • I Offline
          II12yanII @nuckinfutz
          last edited by Oct 14, 2016, 3:40 PM

          @nuckinfutz said in trouble with config file:

          Your assumption is correct.

          Did you follow this?

          https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

          If so it should work. If doesn’t let me know and I’ll see what I can do.

          P.S. Do not change the name of the config.js.sample Copy it and name the copy config.js

          thanks ill give that guide a look at and see if that will work.

          @KirAsh4 said in trouble with config file:

          Need more information here, including what hardware are you attempting to run it on.

          i have the raspberry pi 3. i installed the latest raspbain jessie with pixel and i download the latest magic mirror version using the command curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash.
          i also made sure that raspbain is up to date by using the update and upgrade commands.

          1 Reply Last reply Reply Quote 0
          • I Offline
            II12yanII
            last edited by Oct 14, 2016, 4:23 PM

            0_1476462126517_2016-10-14-161534_655x390_scrot.png
            so it seems as if my config file isnt whats wrong the electron.js isnt working right. i did the command git pull to update it and it says im using the most current version. is there a command to verify all of the files or no?

            1 Reply Last reply Reply Quote 0
            • N Offline
              nuckinfutz
              last edited by Oct 15, 2016, 2:09 AM

              If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.

              I 1 Reply Last reply Oct 17, 2016, 7:55 PM Reply Quote 1
              • I Offline
                II12yanII @nuckinfutz
                last edited by Oct 17, 2016, 7:55 PM

                @nuckinfutz said in trouble with config file:

                If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.

                that would be awesome. i still havent gotten anywhere. i reinstalled node.js along with reinstalling magic mirror and so on. the only thing i havent tried reinstalling is raspbain. but i still get the same startup script failed electron.js

                C 1 Reply Last reply Oct 17, 2016, 11:12 PM Reply Quote 0
                • C Offline
                  cowboysdude Module Developer @II12yanII
                  last edited by cowboysdude Oct 17, 2016, 11:16 PM Oct 17, 2016, 11:12 PM

                  @II12yanII said in trouble with config file:

                  @nuckinfutz said in trouble with config file:

                  If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.

                  that would be awesome. i still havent gotten anywhere. i reinstalled node.js along with reinstalling magic mirror and so on. the only thing i havent tried reinstalling is raspbain. but i still get the same startup script failed electron.js

                  My suggestion would be this…

                  Format your card using this [please read the entire thing]->
                  https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/3

                  and reinstall raspbian… This one -> RASPBIAN JESSIE WITH PIXEL from: https://www.raspberrypi.org/downloads/raspbian/

                  From there open a terminal window and run:
                  [Download and install the latest Node.js version]

                  curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                  sudo apt-get install -y nodejs

                  After that is done then:

                  git clone https://github.com/MichMich/MagicMirror.git

                  go to the MagicMirror folder and run:
                  npm install

                  Once that’s completed run:
                  npm start

                  IF you get any errors post a screen shot as that helps VERY much :)

                  I 1 Reply Last reply Oct 18, 2016, 2:07 AM Reply Quote 0
                  • N Offline
                    nuckinfutz
                    last edited by nuckinfutz Oct 18, 2016, 1:52 AM Oct 18, 2016, 1:48 AM

                    Sorry about the delay. Here’s my solution.
                    If you still have a problem I’ll zip everything up and send it to you.
                    my solution and cowboys are similar but I always make sure with linux flavors everything is up to date. It’s just a habbit I also made everything so you could just copy entire commands then paste them into the terminal to save time
                    Install jessie using this Noobs link.

                    Its super easy to follow and takes care of a lot of basic steps automatically

                    https://www.raspberrypi.org/downloads/noobs/
                    Follow the directions

                    If you need to set up a wireless card go here scroll down and
                    follow the wireless instructions then come back here

                    https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/6
                    

                    Now to configure your Pi go to superkey(Windows key) - preferences - raspberry pi configuration
                    Set up location, keyboard, time zone and time. The correct time is very important.

                    open up a terminal and run this the following command to get everything up to date

                    sudo apt-get update ; sudo apt-get upgrade
                    

                    Now run the following to update the RPi firmware

                    sudo rpi-update
                    

                    When done reboot

                    Now install the MM software
                    Open a terminal and run

                    curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash

                    Rotate your screen if you want by doing this. I didnt bother for now

                    sudo nano /boot/config.txt
                    

                    Rotate display vertically

                    display_rotate=1

                    ctrl-x to save then Y for yes
                    

                    Now do this Or just use your file manager to make your copy of the config file.
                    I never modify the .sample file

                    cd /home/pi/MagicMirror/config
                    cp config.js.sample config.js
                    

                    now change to the MM folder

                    cd /home/pi/MagicMirror
                    

                    Use the following to start your mirror

                    DISPLAY=:0 npm start
                    
                    1 Reply Last reply Reply Quote 0
                    • I Offline
                      II12yanII @cowboysdude
                      last edited by II12yanII Oct 18, 2016, 2:24 AM Oct 18, 2016, 2:07 AM

                      @cowboysdude said in trouble with config file:

                      @II12yanII said in trouble with config file:

                      @nuckinfutz said in trouble with config file:

                      If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.

                      that would be awesome. i still havent gotten anywhere. i reinstalled node.js along with reinstalling magic mirror and so on. the only thing i havent tried reinstalling is raspbain. but i still get the same startup script failed electron.js

                      My suggestion would be this…

                      Format your card using this [please read the entire thing]->
                      https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/3

                      and reinstall raspbian… This one -> RASPBIAN JESSIE WITH PIXEL from: https://www.raspberrypi.org/downloads/raspbian/

                      From there open a terminal window and run:
                      [Download and install the latest Node.js version]

                      curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                      sudo apt-get install -y nodejs

                      After that is done then:

                      git clone https://github.com/MichMich/MagicMirror.git

                      go to the MagicMirror folder and run:
                      npm install

                      Once that’s completed run:
                      npm start

                      IF you get any errors post a screen shot as that helps VERY much :)

                      Thanks so much that fixed it for me. it now runs without errors. but im back to my original problem of my config file. the weather and news just stay at loading … and never update. here is a copy of my config file. i believe i put in my api key and everything correctly.
                      Edit. i got the fox news portion of my config file to work but the weather still doesn’t update at all.

                      /* Magic Mirror Config Sample
                      *

                      • By Michael Teeuw http://michaelteeuw.nl
                      • MIT Licensed.
                        */

                      var config = {
                      port: 8080,

                      language: 'en',
                      timeFormat: 12,
                      units: 'imperial',
                      
                      modules: [
                      	{
                      		module: 'alert',
                      	},
                      	{
                      		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: 'Brunswick',
                      			locationID: '23',  //ID from http://www.openweathermap.org
                      			appid: 'cea6dc928b7d5437e5883dcda250fa8e'
                      		}
                      	},
                      	{
                      		module: 'weatherforecast',
                      		position: 'top_right',
                      		header: 'Weather Forecast',
                      		config: {
                                  location: 'Brunswick',
                      			locationID: '23',  //ID from http://www.openweathermap.org
                                  appid: 'cea6dc928b7d5437e5883dcda250fa8e'
                      		}
                      	},
                      	{
                      		module: 'newsfeed',
                      		position: 'bottom_bar',
                      		config: {
                      			feeds: [
                      				{
                      					title: "Fox News",
                      					url: "http://www.foxnews.com/about/rss/"
                      				}
                      			],
                      			showSourceTitle: true,
                      			showPublishDate: true
                      		}
                      	},
                      ]
                      

                      };

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

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