Black screen + access Denied trough web



  • Hello ,

    Im complete new to magicmirror so maybe im seeing something not right.

    First installed everything and after npm start magicmirror Launch and its Black.screen.
    Then intro to acces it trough the web but then i get acces denied.

    I try to delete modules and to charge the config file with different ip adres. But nothing works. Does anybody have a sollotion for me.

    Thnak you !


  • Module Developer

    @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)



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



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


  • Module Developer

    @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).


  • Module Developer

    @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?


  • Module Developer

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

    could you please try this config?

    Ah, you beat me! :thumbsup:



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


  • Module Developer

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



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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.