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.

    Black screen after installation on Pi 2 model B V1.1

    Scheduled Pinned Locked Moved Troubleshooting
    13 Posts 4 Posters 7.0k 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.
    • V Offline
      vicdilou
      last edited by

      I open the file in a browser. How i have to launch it ?

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @vicdilou
        last edited by

        @vicdilou cd ~/MagicMirror then npm start

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • V Offline
          vicdilou
          last edited by vicdilou

          I tried this before but it doesn’t work and now it work !
          Thank you.

          edit : How to close it properly ?

          1 Reply Last reply Reply Quote 0
          • P Offline
            PaulB
            last edited by

            @strawberry-3-141 thanks for the great advice.

            Ive tried your advise. Nevertheless my screen is now completely black, too.

            Ive tried it several times now, sometimes it works sometimes it doesn’t.

            After Ive changed the API Key of openwjeathermaps my screen went black again.

            So @strawberry-3-141 do you have and advise maybe? :-)

            Kind Regards from Germany,

            Paul

            bheplerB 1 Reply Last reply Reply Quote 0
            • bheplerB Offline
              bhepler Module Developer @PaulB
              last edited by

              @PaulB A completely black screen usually means there is an error in the config.js file. Please post yours, (specifically the openweathermaps module entry) using the markdown features and we’ll take a look at it.

              1 Reply Last reply Reply Quote 0
              • P Offline
                PaulB
                last edited by

                @bhelper I am trying to :-D

                /* Magic Mirror Config Sample
                *

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

                var config = {
                port: 8080,

                language: 'de',
                timeFormat: 24,
                units: 'metric',
                
                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: 'Aktuelles Wetter',
                		position: 'top_right',
                		config: {
                			location: 'Bayreuth,Germany',
                			locationID: '5128581',  //ID from http://www.openweathermap.org
                			appid: '158010f0c45e255e6439eb1885b3482b'
                		}
                	},
                	{
                		module: 'Wettervorhersage',
                		position: 'top_right',
                		header: 'Wettervorhersage',
                		config: {
                            location: 'Bayreuth,Germany',
                			locationID: '5128581',  //ID from http://www.openweathermap.org
                            appid: '158010f0c45e255e6439eb1885b3482b'
                		}
                	},
                	{
                		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
                • bheplerB Offline
                  bhepler Module Developer
                  last edited by

                  At a guess, it looks like you put the header for your module in the module name specification. The module: [name] lines must match the name of the module. These names also correspond with folders in the ~/MagicMirror/modules path. The modules that are installed with the MagicMirror code (which I believe you are trying to use) will be in ~/MagicMirror/modules/default/[module name]

                  So try this instead:

                  {
                  		module: 'currentweather',
                  		position: 'top_right',
                  		config: {
                  			location: 'Bayreuth, Germany',
                  			locationID: '5128581', 
                  			appid: '158010f0c45e255e6439eb1885b3482b'
                  		}
                  	},
                  	{
                  		module: 'weatherforecast',
                  		position: 'top_right',
                  		header: 'Wettervorhersage',
                  		config: {
                                       location: 'Bayreuth, Germany',
                  		     locationID: '5128581',  
                                       appid: '158010f0c45e255e6439eb1885b3482b'
                  		}
                  	},
                  
                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    PaulB
                    last edited by

                    @bhepler You are a Genius! Thanks a lot. :-)

                    Changing the module names was not my best idea, I guess :D

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      PaulB @PaulB
                      last edited by

                      Nevertheless the index.html-file shows me just a black screen.

                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141S Offline
                        strawberry 3.141 Project Sponsor Module Developer @PaulB
                        last edited by strawberry 3.141

                        @PaulB the html file itself will show only a black screen, the modules get loaded dinamically so there is no point in open the html file in a browser, if you want to open the mirror onto another computer and type in the ip followed by the port specified in the config.js

                        Please create a github issue if you need help, so I can keep track

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