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

Changed a few compliments, hosed it up - not fixed, still hosed

Scheduled Pinned Locked Moved Unsolved Troubleshooting
13 Posts 5 Posters 3.6k Views 5 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.
  • L Offline
    lavolp3 Module Developer @motdog
    last edited by Feb 26, 2019, 11:42 AM

    @motdog Your brackets don’t look good, apart from the missing indentation:

    Module.register("compliments", {
    
    	// Module config defaults.
           config:  {
    		compliments: {
    			anytime: [
    			"Hey there sexy!"
    		         ],
    		morning: [
    			"Good morning, handsome!",
    			"Enjoy your day!",
    			"How was your sleep?"
    		        ],
    		afternoon: [
    			"Hello, beauty!",
    			"You look sexy!",
    			"Looking good today!"
    		        ],
    		evening: [
    			"Wow, you look hot!",
    			"You look nice!",
    			"Hi, sexy!"
    		       ]
    	
                    },                 < COMMA HERE
    }            <   THIS NEEDS TO GO AWAY!
    
    		
    		updateInterval: 30000,
    		remoteFile: null,
    		fadeSpeed: 4000,
    		morningStartTime: 3,
    		morningEndTime: 12,
    		afternoonStartTime: 12,
    		afternoonEndTime: 17
    	},
    
    

    How to troubleshoot modules
    MMM-soccer v2, MMM-AVStock

    1 Reply Last reply Reply Quote 0
    • M Offline
      motdog
      last edited by Feb 26, 2019, 2:16 PM

      Still hosed…

      
      				]
      			}
      		},
      
      		{
          module: 'MMM-Remote-Control',
          // uncomment the following line to show the URL of the remote control on the mirror
            position: 'bottom_right',
          // you can hide this module afterwards from the remote control itself
          config: {
              customCommand: {},  // Optional, See "Using Custom Commands" below
              customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
              showModuleApiMenu: true, // Optional, Enable the Module Controls menu
              apiKey: "",         // Optional, See API/README.md for details
          }
      },
      
      
      		{
      			module: "compliments",
      			position: "lower_third"
      
      			
      		},
      		
      		
      
      {
      
      S L 2 Replies Last reply Feb 26, 2019, 2:17 PM Reply Quote 0
      • S Away
        sdetweil @motdog
        last edited by Feb 26, 2019, 2:17 PM

        @motdog please run (from the MM folder)

        npm config:check
        

        start at the top and fix any errors
        repeat til no errros

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        L 1 Reply Last reply Feb 26, 2019, 2:19 PM Reply Quote 0
        • L Offline
          lavolp3 Module Developer @motdog
          last edited by Feb 26, 2019, 2:18 PM

          @motdog
          go to jshint.com and paste your module file there.
          It may help you with missing commata or brackets.

          Beyond that, consider copying your changed comments to another file and doing a

          git reset --hard
          

          to get back to a working state. And then read through the readme of the module about including compliments.

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          S 1 Reply Last reply Feb 26, 2019, 2:24 PM Reply Quote 0
          • L Offline
            lavolp3 Module Developer @sdetweil
            last edited by Feb 26, 2019, 2:19 PM

            @sdetweil its

            npm run config:check
            

            isnt it?

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @lavolp3
              last edited by Feb 26, 2019, 2:24 PM

              @lavolp3 the config is not a clean json file… better to use the config:check, lint sends you chasing problems u don’t have (comments, un quoted strings, …)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              Y 1 Reply Last reply Feb 26, 2019, 2:37 PM Reply Quote 0
              • Y Offline
                yawns Moderator @sdetweil
                last edited by Feb 26, 2019, 2:37 PM

                @sdetweil said in Changed a few compliments, hosed it up - not fixed, still hosed:

                @lavolp3 the config is not a clean json file… better to use the config:check, lint sends you chasing problems u don’t have (comments, un quoted strings, …)

                true for jslint.com, not true for jshint.com

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