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

Possible Error in My Code?

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 4 Posters 5.9k 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.
  • W Offline
    Wiltify @Mykle1
    last edited by Oct 18, 2017, 1:52 AM

    @Mykle1 I have that, must not have copied when I brought it into here, whoops…

    M 1 Reply Last reply Oct 18, 2017, 1:55 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Wiltify
      last edited by Oct 18, 2017, 1:55 AM

      @Wiltify

      I assume you removed the client id and client secret for this post?

      Create a working config
      How to add modules

      W 1 Reply Last reply Oct 18, 2017, 1:57 AM Reply Quote 0
      • W Offline
        Wiltify @Mykle1
        last edited by Oct 18, 2017, 1:57 AM

        @Mykle1 Yes, but the module site has them inside of brackets instead of quatations, does that vary between developers formatting?

        M 1 Reply Last reply Oct 18, 2017, 2:04 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @Wiltify
          last edited by Oct 18, 2017, 2:04 AM

          @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 Oct 18, 2017, 6:42 AM Oct 18, 2017, 6:41 AM

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

            M 1 Reply Last reply Oct 18, 2017, 11:14 AM Reply Quote 2
            • M Offline
              Mykle1 Project Sponsor Module Developer @Guest
              last edited by Oct 18, 2017, 11:14 AM

              @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 Oct 18, 2017, 1:13 PM Reply Quote 0
              • W Offline
                Wiltify @Mykle1
                last edited by Oct 18, 2017, 1:13 PM

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

                M 1 Reply Last reply Oct 18, 2017, 11:55 PM Reply Quote 1
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Wiltify
                  last edited by Oct 18, 2017, 11:55 PM

                  @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
                  2 / 2
                  • First post
                    11/18
                    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