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

Are you tired of editing config.js, or have trouble doing it, see my new module

Scheduled Pinned Locked Moved Utilities
293 Posts 28 Posters 255.2k Views 30 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.
  • C Offline
    citizendevpi
    last edited by Mar 31, 2025, 7:03 AM

    this module works very well , thanks for the hard work and time . makes this project simple and fun !!

    1 Reply Last reply Reply Quote 0
    • D Offline
      DarkV @sdetweil
      last edited by DarkV Apr 3, 2025, 2:56 PM Apr 3, 2025, 2:54 PM

      @sdetweil Still no joy, I am going to reinstall.I cannot display the QR code as I do not have any zones left and cannot load the web page1.png Screenshot 2025-04-03 155111.png

      S 1 Reply Last reply Apr 3, 2025, 3:01 PM Reply Quote 0
      • S Offline
        sdetweil @DarkV
        last edited by Apr 3, 2025, 3:01 PM

        @DarkV you dont need the qr code

        can you show the messages from npm start?
        if using pm2 then

        pm2 logs --lines=100
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 2 Replies Last reply Apr 3, 2025, 8:41 PM Reply Quote 0
        • D Offline
          DarkV @sdetweil
          last edited by DarkV Apr 3, 2025, 8:58 PM Apr 3, 2025, 8:41 PM

          @sdetweil How do I get logs? I am a noob regarding MM
          I found this

          [08.01.2025 00:49.42.199] [ERROR] Failed to retrieve repo info for MMM-Tools: Error: Command failed: cd /home/junior/MagicMirror/modules/MMM-Tools && git fetch -n --dry-run
          fatal: unable to access ‘https://github.com/bugsounet/MMM-Tools/’: Could not resolve host: github.com

          S 1 Reply Last reply Apr 3, 2025, 9:02 PM Reply Quote 0
          • D Offline
            DarkV @sdetweil
            last edited by Apr 3, 2025, 8:57 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @DarkV
              last edited by sdetweil Apr 3, 2025, 9:39 PM Apr 3, 2025, 9:02 PM

              @DarkV way back further in the log, back 50 lines maybe

              as using pm2 the good and error lines are separated into two lists

              none of the bugsounet repos are online any more
              so if you dont want to see those errors, you can exclude them from the updatenotification module scans

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Apr 4, 2025, 7:21 AM Reply Quote 0
              • D Offline
                DarkV @sdetweil
                last edited by Apr 4, 2025, 7:21 AM

                @sdetweil SyntaxError: Unexpected identifier 'config’
                 at internalCompileFunction (node:internal/vm:73:18)
                 at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                 at Module._compile (node:internal/modules/cjs/loader:1227:27)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                 at Function._load (node:electron/js2c/node_init:2:13357)
                 at Module.require (node:internal/modules/cjs/loader:1150:19)
                 at require (node:internal/modules/cjs/helpers:121:18)
                 at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                 at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                 at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                 at Module._compile (node:internal/modules/cjs/loader:1271:14)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 09:44.46.126] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                Warning: vkCreateInstance: Found no drivers!
                Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                [27.03.2025 09:46.55.825] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:122
                 config: {
                 ^^^^^^

                SyntaxError: Unexpected identifier 'config’
                 at internalCompileFunction (node:internal/vm:73:18)
                 at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                 at Module._compile (node:internal/modules/cjs/loader:1227:27)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                 at Function._load (node:electron/js2c/node_init:2:13357)
                 at Module.require (node:internal/modules/cjs/loader:1150:19)
                 at require (node:internal/modules/cjs/helpers:121:18)
                 at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                 at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                 at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                 at Module._compile (node:internal/modules/cjs/loader:1271:14)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 09:47.26.134] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                Warning: vkCreateInstance: Found no drivers!
                Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 09:53.43.417] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                Warning: vkCreateInstance: Found no drivers!
                Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 09:59.04.576] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                Warning: vkCreateInstance: Found no drivers!
                Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 10:02.53.766] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                Warning: vkCreateInstance: Found no drivers!
                Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 10:15.08.770] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:130
                 {
                 ^

                SyntaxError: Unexpected token '{'
                 at internalCompileFunction (node:internal/vm:73:18)
                 at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                 at Module._compile (node:internal/modules/cjs/loader:1227:27)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                 at Function._load (node:electron/js2c/node_init:2:13357)
                 at Module.require (node:internal/modules/cjs/loader:1150:19)
                 at require (node:internal/modules/cjs/helpers:121:18)
                 at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                 at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                 at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                 at Module._compile (node:internal/modules/cjs/loader:1271:14)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 10:15.58.981] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                Warning: vkCreateInstance: Found no drivers!
                Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
                [27.03.2025 10:22.57.762] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                Warning: vkCreateInstance: Found no drivers!
                Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 10:29.29.494] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:130
                 {
                 ^

                SyntaxError: Unexpected token '{'
                 at internalCompileFunction (node:internal/vm:73:18)
                 at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                 at Module._compile (node:internal/modules/cjs/loader:1227:27)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                 at Function._load (node:electron/js2c/node_init:2:13357)
                 at Module.require (node:internal/modules/cjs/loader:1150:19)
                 at require (node:internal/modules/cjs/helpers:121:18)
                 at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                 at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                 at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                 at Module._compile (node:internal/modules/cjs/loader:1271:14)
                 at Object…js (node:internal/modules/cjs/loader:1326:10)
                 at Module.load (node:internal/modules/cjs/loader:1126:32)
                 at node:internal/modules/cjs/loader:967:12
                /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                [27.03.2025 10:30.26.627] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:130
                 {
                 ^

                S 1 Reply Last reply Apr 4, 2025, 1:01 PM Reply Quote 0
                • S Offline
                  sdetweil @DarkV
                  last edited by Apr 4, 2025, 1:01 PM

                  @DarkV mmm-config requires MagicMirror version 2.28 or higher

                  also, you have some syntax error around line 122 in config.js

                  pm2 flush to empty the logs

                  and see what hsppens after you fix that config.js error

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Apr 4, 2025, 2:26 PM Reply Quote 0
                  • D Offline
                    DarkV @sdetweil
                    last edited by sdetweil Apr 4, 2025, 2:51 PM Apr 4, 2025, 2:26 PM

                    @sdetweil, I’m sorry. Can you please highlight where I have the error? I am considering reinstalling it as I cannot even update Magic Mirror. I want to back up Config.js, but if it contains faults, then I will be back to square one.

                    /*
                    * MagicMirror² Config Sample
                     *
                     * By Michael Teeuw https://michaelteeuw.nl
                     * MIT Licensed.
                     *
                     * For more information on how you can configure this file
                     * see https://docs.magicmirror.builders/configuration/introduction.html
                     * and https://docs.magicmirror.builders/modules/configuration.html
                     */
                    let config = {
                    	address: "localhost", 	// Address to listen on, can be:
                    							// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                    							// - another specific IPv4/6 to listen on a specific interface
                    							// - "0.0.0.0", "::" to listen on any interface
                    							// Default, when address config is left out or empty, is "localhost"
                    	port: 8080,
                    	basePath: "/", 	// The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
                    					// you must set the sub path here. basePath must end with a /
                    	ipWhitelist: [], 	// Set [] to allow all IP addresses
                    															// or add a specific IPv4 of 192.168.2.49 :
                    															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                    															// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                    															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                    
                    	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
                    	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
                    	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
                    
                    	language: "en",
                    	locale: "en-US",
                    	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
                    	timeFormat: 24,
                    	units: "metric",
                    	// serverOnly:  true/false/"local" ,
                    	// local for armv6l processors, default
                    	//   starts serveronly and then starts chrome browser
                    	// false, default for all NON-armv6l devices
                    	// true, force serveronly mode, because you want to.. no UI on this device
                    
                    	modules: [
                    	{
                    	module: 'MMM-MovieListings',
                                                    position: 'bottom_center',   // This can be any of the regions. Best results in left or$
                                                    config: {
                    					apiKey: '',
                    					region: 'GB',
                    					language: 'en-UK',
                    					interface: 'poster', //'list', 'poster', 'detailed'
                    					includeMoviePlot: false,
                    					maxPlotLength: 198,
                    					header: 'Kinofilme',
                    					moviesPerPage: 0,
                    					refreshInterval: 1000 * 60 * 60 * 24, //Once a day
                    					baseUrl: 'https://api.themoviedb.org/3/movie/now_playing',
                    					animationSpeed: 2.5 * 1000,
                    					pageChangeInterval: 35 * 1000
                    	}
                    },
                    	
                    {
                            module: 'MMM-Globe',
                    	position: 'bottom_left',
                    	config: {
                    		style: 'geoColor',
                    		imageSize: 300,
                    		ownImagePath:'',
                    		updateInterval: 10*60*1000
                            }
                        },
                    
                    {
                      module: 'MMM-Tools',
                      position: 'bottom_right',
                      config: {
                        refresh: 1000 * 5,
                        containerSize: null,
                        itemSize: null
                      }
                    },
                    
                    
                             {
                        module: "MMM-EyeCandy",
                        position: "top_center",
                        config: {
                            maxWidth: "75%",       // Sizes the images. Retains aspect ratio.
                            style: '1',            // Style number or use ownImagePath to override style
                            ownImagePath: '',      // 'modules/MMM-EyeCandy/pix/name-graphics-lisa-596441.jpg'
                            }
                            },
                    
                    
                    
                    
                    		{
                    			module: "alert",
                    		},
                    		{
                    			module: "updatenotification",
                    			position: "top_bar"
                    		},
                    		{
                    			module: "clock",
                    			position: "top_right"
                    		},
                    		{
                    			module: "calendar",
                    			header: "UK Holidays",
                    			position: "top_right",
                    			config: {
                    				calendars: [
                    					{
                    						symbol: "calendar-check-o ",
                                            url: "https://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics"
                    					}
                    				]
                    			}
                    		},
                    		{
                    			module: "compliments",
                    			position: "top_bar"
                    		},
                    		{
                    			module: "MMM-OpenmapWeather",
                    		position: "top_left",	// This can be any of the regions. Best results in left or right regions.
                    		header: "Current Weather", //Location is the default value if header is empty or not defined.
                    		config: {
                    			// See 'Configuration options' for more information.
                    			location: "CROYDON,LONDON",
                    			locationID: "2651817", //Location ID from http://openweathermap.org/help/city_list.txt
                    			appid: "",  //openweathermap.org API key
                          			colorIcon: true
                    			}
                    		},
                    
                                    {
                    		module:"MMM-Config",
                    		position:"top_left", 
                    			// the QR code (if requested) will appear here
                    		config:{
                                            showQR: true
                    		}
                    	        },
                    
                    
                    		{
                    			module: "weather",
                    			position: "top_left",
                    			header: "Weather Forecast",
                    			config: {
                    				weatherProvider: "openweathermap",
                    				type: "forecast",
                    				location: "London",
                    				locationID: "2651817", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                    				apiKey: ""
                    			}
                    		},
                    		{
                    			module: "newsfeed",
                    			position: "bottom_bar",
                    			config: {
                    				feeds: [
                    					{
                    						title: "BBC UK News",
                    						url: "http://feeds.bbci.co.uk/news/uk/rss.xml"
                    					}
                    				],
                    				showSourceTitle: true,
                    				showPublishDate: true,
                    				broadcastNewsFeeds: true,
                    				broadcastNewsUpdates: true
                    			}
                    		},
                    	]
                    };
                    
                    /*************** DO NOT EDIT THE LINE BELOW ***************/
                    if (typeof module !== "undefined") {module.exports = config;}
                    
                    S 1 Reply Last reply Apr 4, 2025, 2:55 PM Reply Quote 0
                    • S Offline
                      sdetweil @DarkV
                      last edited by Apr 4, 2025, 2:55 PM

                      @DarkV i do not SEE anything, but i am away from my computer all day, driving.

                      so i cannot run it thru the

                      cd ~/MagicMirror 
                      npm run config:check
                      

                      command

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply Apr 4, 2025, 3:09 PM Reply Quote 0
                      • 1
                      • 2
                      • 25
                      • 26
                      • 27
                      • 28
                      • 29
                      • 30
                      • 27 / 30
                      27 / 30
                      • First post
                        270/293
                        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