• 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.6k 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.
  • 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
            • B Offline
              bhepler Module Developer
              last edited by Oct 18, 2016, 3:13 PM

              Just a suggestion: Try replacing that location id of locationID: '23' with locationID: '2173741'.

              I 1 Reply Last reply Oct 18, 2016, 5:52 PM Reply Quote 0
              • I Offline
                II12yanII @bhepler
                last edited by Oct 18, 2016, 5:52 PM

                @bhepler said in trouble with config file:

                Just a suggestion: Try replacing that location id of locationID: '23' with locationID: '2173741'.

                that fixed it for me thanks. i guess using the map to get the ID for my location wasn’t the right ID.
                Thank you everyone for your help my config file is the way i want it and it runs without any errors.

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