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

My config does not work when i add it

Scheduled Pinned Locked Moved Unsolved Troubleshooting
5 Posts 2 Posters 1.1k 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.
  • A Offline
    Alienwarez123
    last edited by Aug 17, 2018, 2:53 PM

    I am trying to add MMM_fitbit module and I have done the steps but when i add the example config like this

    {
    	module: 'MMM-fitbit',
    	position: 'top_center',
    	config: [
    		credentials: {
    			client_id: <client_id>,
    			client_secret: <client_secret>,
    		},
    		resources: [
    			'steps',
    			'floors',
    			'caloriesOut',
    			'distance',
    			'activeMinutes',
    			'sleep',
    			'heart'
    		],
    		update_interval: 60
    	]
    },
    

    I open magic mirror and it says your config is wrong so can someone tell me where to put this please I am a noob

    ? 1 Reply Last reply Aug 17, 2018, 3:10 PM Reply Quote 0
    • ? Offline
      A Former User @Alienwarez123
      last edited by A Former User Aug 17, 2018, 3:23 PM Aug 17, 2018, 3:10 PM

      @alienwarez123

      config:[...] => config: {...}
      

      and

      client_id: ,
      client_secret: ,
      

      have no value.

      1 Reply Last reply Reply Quote 0
      • A Offline
        Alienwarez123
        last edited by Aug 17, 2018, 6:58 PM

        i took out the value so i could post it on here

        1 Reply Last reply Reply Quote 0
        • A Offline
          Alienwarez123
          last edited by Aug 17, 2018, 7:01 PM

          Do I need to change the ’ to "

          ? 1 Reply Last reply Aug 17, 2018, 7:38 PM Reply Quote 0
          • ? Offline
            A Former User @Alienwarez123
            last edited by Aug 17, 2018, 7:38 PM

            @alienwarez123
            No. Config is not array([]) but object ({}).

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