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.

    Possible Error in My Code?

    Scheduled Pinned Locked Moved Troubleshooting
    18 Posts 4 Posters 6.3k Views 3 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @Wiltify
      last edited by

      @Wiltify

      I’m not familiar with this module. Try it as shown in the README. Try it without the brackets shown. Try it with quotes and without.

      There are also some differences between your entry and this entry from the module site, as you call it. Can you see them? Correct them and try again. :-)

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

      Create a working config
      How to add modules

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

        config: [] ???
        Usually config field is not array. So I think {} is right.

        Mykle1M 1 Reply Last reply Reply Quote 2
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @Guest
          last edited by

          @Sean

          Haha Sean, I was testing @Wiltify to see if he could notice the difference between his post and the entry from the README. I didn’t even notice the []. Good catch!

          Create a working config
          How to add modules

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            Wiltify @Mykle1
            last edited by

            @Mykle1 @Sean Ha, I got so sucked up into adding modules I forgot to reply. Thanks Sean for pointing that out, I ran a command, which I can’t remember but it ended with "Config:check: and looks for errors, and it pointed out out the brackets so I changed those as well as something else. Mykle, thanks for pushing me to learn :) Already a huge fan of this community.

            Mykle1M 1 Reply Last reply Reply Quote 1
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @Wiltify
              last edited by

              @Wiltify said in Possible Error in My Code?:

              Mykle, thanks for pushing me to learn :) Already a huge fan of this community.

              Ahh, you’re welcome, mate.

              Create a working config
              How to add modules

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