MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Possible Error in My Code?

    Troubleshooting
    4
    18
    3864
    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
      Wiltify @Mykle1 last edited by

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

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

        @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 Reply Quote 0
        • W
          Wiltify @Mykle1 last edited by

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

          Mykle1 1 Reply Last reply Reply Quote 0
          • Mykle1
            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
            • ?
              A Former User last edited by A Former User

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

              Mykle1 1 Reply Last reply Reply Quote 2
              • Mykle1
                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
                  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.

                  Mykle1 1 Reply Last reply Reply Quote 1
                  • Mykle1
                    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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy