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.2k 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

      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 Reply Quote 0
      • ? Offline
        A Former User @Alienwarez123
        last edited by A Former User

        @alienwarez123

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

        and

        client_id: ,
        client_secret: ,
        

        have no value.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Alienwarez123
          last edited by

          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

            Do I need to change the ’ to "

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @Alienwarez123
              last edited by

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

              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