Can't config on Pi Zero



  • Hi all,
    I try to use MM2 on my Pi Zero W.
    All is installed (node, npm, git, php5, midori, unclutter, …).
    MM2 is cloned in /var/www/html (why this folder ?)
    autostart is configured.

    So I reboot my Pi Zero.
    serveronly, fullscreen, no cursor. Well, that say “please create a config file” as expected.
    I duplicate config.js.sample to config.js in /config folder. I reboot. then … same thing, “please create a config file”.
    I tried /MagicMirror folder, /js, /serveronly. Nothing better.
    What did I miss ? :disappointed_relieved:


  • Module Developer

    @Willou

    It would seem that your config.js.sample file is corrupted or changed if you are simply copying and renaming it. It SHOULD work. Is it in your MagicMirror/config/ directory?

    I would download a new/fresh config.js.sample file and try again, just to make sure. It certainly will eliminate the possibility that it’s your config.js file, and it can’t hurt. This is where it should be
    pi@Pi3:~/MagicMirror/config/config.js

    Otherwise, you can copy and paste this, which is my config.js.sample file. Save it as config.js in the pi@Pi3:~/MagicMirror/config/ directory

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     */
    
    var config = {
    	port: 8080,
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.
    
    	language: "en",
    	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;}
    


  • I did a fresh copy, also changed config.js by your file’s data. Nothing more.
    I’ll try with chromium or kweb.


  • Module Developer

    @Willou

    I don’t think it’s the browser. MM is running and telling you that something is wrong with the config.js file. If nothing is wrong with the config.js file then I suspect it’s a path issue. MM only looks in the MagicMirror/config/ directory for the config.js file. I can’t think of anything else at the moment.


Log in to reply
 

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