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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @Guest
      last edited by

      @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

        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

          0_1507049198415_sgrab.png

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

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            After reinstalling i now have it working thankyou. I just have a few more questions:
            How do i edit it to show UK holidays etc?
            Is there a html file to edit so i can add a google calender to it? And how to i get it to autoload on boot?

            J Mykle1M 2 Replies Last reply Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @Guest
              last edited by

              @PCPAYN3 Instructions for setting up autostart here: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

              1 Reply Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @Guest
                last edited by Mykle1

                @PCPAYN3 said in GETTING STARTED : HELP !!:

                Is there a html file to edit so i can add a google calender to it?

                In your config.js file, in the calendar module entry, you can either add this OR edit the existing entry for US-Holidays. If you do not want the US Holidays calendar then simply change the end of the url to UK-Holidays.ics.

                {
                symbol: "calendar-check-o ",
                url: "webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics"
                },

                Create a working config
                How to add modules

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