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.

    MM says my config is wrong.

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 672 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.
    • D Offline
      Doogain
      last edited by Doogain

      Hey there!

      When I try to add this

      fade: false
      

      to my config.js

      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "Aalborg",
      				locationID: "2624886",  
      				appid: "a59083d2a1c9da6e99d2395fb61d8979"
      
      			}
      		},
      

      So it becomes

      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "Aalborg",
      				locationID: "2624886",  
      				appid: "a59083d2a1c9da6e99d2395fb61d8979"
                                      fade: false
      			}
      		},
      

      Then MM says that my config is wrong.

      WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:73
      fade: false
      
      SyntaxError: Unexpected identifier
          at new Script (vm.js:74:7)
          at createScript (vm.js:246:10)
          at Object.runInThisContext (vm.js:298:10)
          at Module._compile (internal/modules/cjs/loader.js:678:28)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
          at Module.load (internal/modules/cjs/loader.js:620:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
          at Function.Module._load (internal/modules/cjs/loader.js:551:3)
          at Module.require (internal/modules/cjs/loader.js:658:17)
          at require (internal/modules/cjs/helpers.js:20:18)
      
      ^^^^
      
      

      Not sure on how to fix this, since I believe I’m writing it correctly. Anyone with a quick fix?

      I’m trying to remove the fade effect on the modules, aint working too great for me.

      1 Reply Last reply Reply Quote 0
      • buzzkcB Offline
        buzzkc
        last edited by

        Add a comma after the appid line.

        Darren

        My Build: https://forum.magicmirror.builders/topic/11153/new-non-mirror

        1 Reply Last reply Reply Quote 2
        • D Offline
          Doogain
          last edited by

          Wow, that was awkward. Thanks man haha

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