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

Can't config on Pi Zero

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 1.6k Views 2 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.
  • W Offline
    Willou
    last edited by Jun 6, 2017, 8:10 PM

    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:

    M 1 Reply Last reply Jun 6, 2017, 8:29 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Willou
      last edited by Jun 6, 2017, 8:29 PM

      @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;}
      

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • W Offline
        Willou
        last edited by Jun 6, 2017, 9:12 PM

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

        M 1 Reply Last reply Jun 6, 2017, 9:23 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @Willou
          last edited by Mykle1 Jun 6, 2017, 9:23 PM Jun 6, 2017, 9:23 PM

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

          Create a working config
          How to add modules

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