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

Black screen + access Denied trough web

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 4 Posters 5.1k 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.
  • B Offline
    broberg Project Sponsor @reddevel75
    last edited by broberg Apr 20, 2017, 9:19 PM Apr 20, 2017, 9:19 PM

    @reddevel75 use this guide for ip whitelist to access the mirror from another computer :
    https://forum.magicmirror.builders/topic/1326/ipwhitelist-howto

    OR change the config to ipWhitelist: [ ], To allow every ip to access the mirror

    Please post you config file content so we can see if there is any issues with it (but remove any personal api-keys before you post)

    1 Reply Last reply Reply Quote 0
    • R Offline
      reddevel75
      last edited by Apr 21, 2017, 4:02 PM

      Thank you for you reaction.

      First off thanks for helping out with the connecting that problem is solved now.

      Still I have the problem that nothing seems to work because it’s still black screen…

      here is my config.js

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
              port: 8080,
              ipWhitelist: [ ],
      
              language: "nl",
              timeFormat: 24,
              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;}
      
      

      hopefully you can find the problem…

      1 Reply Last reply Reply Quote 0
      • R Offline
        reddevel75
        last edited by Apr 21, 2017, 5:41 PM

        when just programming one module i get this error: 0_1492796484347_Schermafbeelding 2017-04-21 om 19.39.56.png

        B M 2 Replies Last reply Apr 21, 2017, 7:40 PM Reply Quote 0
        • B Offline
          broberg Project Sponsor @reddevel75
          last edited by Apr 21, 2017, 7:40 PM

          @reddevel75

          could you please try this config?

          /* Magic Mirror Config Sample
           *
           * By Michael Teeuw http://michaelteeuw.nl
           * MIT Licensed.
           */
          
          var config = {
          	port: 8080,
          	ipWhitelist: [], // Set [] to allow all IP addresses.
          
          	language: "en",
          	timeFormat: 24,
          	units: "metric",
          
          	modules: [
          		{
          			module: "clock",
          			position: "top_left"
          		},
          		{
          			module: "compliments",
          			position: "lower_third"
          		}
          	]
          
          };
          
          /*************** DO NOT EDIT THE LINE BELOW ***************/
          if (typeof module !== "undefined") {module.exports = config;}
          
          

          But it seems you have other issues, it tries to load a module that doesn’t exist (alarm module).

          M 1 Reply Last reply Apr 21, 2017, 7:43 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @reddevel75
            last edited by Apr 21, 2017, 7:42 PM

            @reddevel75

            What module are your programming? Do you mean you are trying to add a module to the default config. I just loaded your config from above, adding my API key, and it works correctly. Can you explain a little better what you are trying to do, please?

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @broberg
              last edited by Apr 21, 2017, 7:43 PM

              @broberg said in Black screen + access Denied trough web:

              could you please try this config?

              Ah, you beat me! :thumbsup:

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • R Offline
                reddevel75
                last edited by Apr 22, 2017, 2:41 PM

                Just trying to get it running for the first time nothing custom stuff.

                when i upload you code i get this problem.

                0_1492872083094_Schermafbeelding 2017-04-22 om 16.40.08.png

                Maybe a fresh install will do the trick ?

                B 1 Reply Last reply Apr 22, 2017, 2:56 PM Reply Quote 0
                • B Offline
                  broberg Project Sponsor @reddevel75
                  last edited by Apr 22, 2017, 2:56 PM

                  @reddevel75 did you do the npm install in the magicmirror folder after you cloned the magicmirror?

                  1 Reply Last reply Reply Quote 1
                  • R Offline
                    reddevel75
                    last edited by Apr 22, 2017, 3:10 PM

                    just did a fresh install, now everything seems to work :)

                    1 Reply Last reply Reply Quote 1
                    • N Offline
                      n8ms
                      last edited by May 2, 2017, 2:03 AM

                      I am getting the same issue with the black screen. When I access via localhost:8080, I get the default screen that tells you to create a config file. I was using a config.js file from an old build I did that worked, but I replaced it with the config file posted above and I get the same issue.

                      pi@n8MM:~/MagicMirror $ npm start
                      
                      > magicmirror@2.1.1 start /home/pi/MagicMirror
                      > sh run-start.sh
                      
                      Starting MagicMirror: v2.1.1
                      Loading config ...
                      Loading module helpers ...
                      No helper found for module: clock.
                      No helper found for module: compliments.
                      All module helpers loaded.
                      Starting server on port 8080 ... 
                      Starting server op port 8080 ... 
                      You're using a full whitelist configuration to allow for all IPs
                      Server started ...
                      Sockets connected & modules started ...
                      Launching application.
                      ^C
                      pi@n8MM:~/MagicMirror $ node -v
                      v7.9.0
                      pi@n8MM:~/MagicMirror $ electron -v
                      v1.3.15
                      pi@n8MM:~/MagicMirror $ 
                      
                      
                      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