MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Dawcio232v2
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Groups 0

    Dawcio232v2

    @Dawcio232v2

    0
    Reputation
    3
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Dawcio232v2 Unfollow Follow

    Latest posts made by Dawcio232v2

    • RE: Parsing error: Unexpected token {

      Zrzut ekranu 2024-12-07 100221.png

      posted in Troubleshooting
      D
      Dawcio232v2
    • RE: Parsing error: Unexpected token {

      @sdetweil it dosent work!
      Zrzut ekranu 2024-12-01 183551.png

      posted in Troubleshooting
      D
      Dawcio232v2
    • Parsing error: Unexpected token {

      Error when loading magic mirror.

      dawcio232@raspberrypi:~/MagicMirror $ npm run start
      
      > magicmirror@2.29.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [2024-11-30 16:32:47.262] [LOG]   Starting MagicMirror: v2.29.0 
      [2024-11-30 16:32:47.274] [LOG]   Loading config ... 
      [2024-11-30 16:32:47.275] [LOG]   config template file not exists, no envsubst 
      [2024-11-30 16:32:47.497] [INFO]  Checking config file /home/dawcio232/MagicMirror/config/config.js ... 
      [2024-11-30 16:32:47.513] [ERROR] Your configuration file contains syntax errors :(
      Line 81 column 3: Parsing error: Unexpected token { 
      
      

      Command line ^
      Config V

      /* Config Sample
       *
       * 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
       *
       * You can use environment variables using a `config.js.template` file instead of `config.js`
       * which will be converted to `config.js` while starting. For more information
       * see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables
       */
      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: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],	// Set [] to allow all IP addresses
      									// or add a specific IPv4 of 192.168.1.5 :
      									// ["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",
      
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "US Holidays",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						fetchInterval: 7 * 24 * 60 * 60 * 1000,
      						symbol: "calendar-check",
      						url: "https://www.officeholidays.com/ics-all/poland"
      					}
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third"
      		},
      		{
      			module: "weather",
      			position: "top_right",
      			config: {
      				weatherProvider: "openmeteo",
      				type: "current",
      				lat: 40.776676,
      				lon: -73.971321
      			}
      		},
                      {
                             module: 'MMM-ProfileSwitcher',
                             config: {
                                      // See 'Configuration options' for more information.
                      },
      		{
      		 	module: "weather",
      			position: "top_right",
      			header: "Codzienna",
      			config: {
      				weatherProvider: "openmeteo",
      				type: "daily",
      				lat: 40.776676,
      				lon: -73.971321
      			}
                  },
                       {
                            module: 'MMM-Advent',
                            position: 'bottom_center', // This can be any of the regions, best results in center regions
                            config: {
                                     // See 'Configuration options' for more information.
                      }
                      },
                      {
                             module: "helloworld",
                             position: "bottom_bar", // This can be any of the regions.
                             config: {
                                      // See 'Configuration options' for more information.
                                      text: "Witaj Dawid!",
                      },
      		{
                             module: "MMM-MagicMover",
                             config: {
                                      updateInterval: 10 * 60 * 1000,
                                      ignoredRegions: [],
                                      maxMove: 15,
                                      moveWholescreen: false,
                       }
      },
      		},
      
      	]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") { module.exports = config; }
      
      
      posted in Troubleshooting
      D
      Dawcio232v2
    • RE: installetion error

      @Dawcio232v2thanks it works now

      posted in Troubleshooting
      D
      Dawcio232v2
    • installetion error

      cant run

      npm run install-mm
      

      https://imgur.com/a/uq8z41R

      posted in Troubleshooting
      D
      Dawcio232v2