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

Fitbit

Scheduled Pinned Locked Moved Troubleshooting
129 Posts 42 Posters 166.4k Views 37 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.
  • O Offline
    olliewarren411
    last edited by Aug 23, 2016, 7:49 AM

    Hi Guys,

    Firstly thank you for creating this module it’s exactly what I wanted!

    I’m having an issue with the module running for extended periods of time where it loses connection to fitbit and I need to run “sudo python setupAccess.py” on the python directory again to get it to pull my latest stats from Fitbit.

    Do you have any way it can check in with Fitbit every 30 mins or every hour to reconnect and pull the latest stats?

    Many thanks
    Ollie

    1 Reply Last reply Reply Quote 0
    • H Offline
      Hellangel1987
      last edited by paviro Sep 11, 2016, 11:21 AM Aug 23, 2016, 1:51 PM

      Hi Guys,

      this Module is freaking me out… (123456789 are just examples for my API ID)
      I just entered this Code in my config.js

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

      if i try to start magicmirror it doesnt load because he says there is no valid config.
      I opened an issue in github for that and Venditteli says there are some issues with the file ownership of any ini file. Any hint or any workaround is very pleased wellcome.

      Thank you guys.

      Regards

      Hellangel


      Note from admin: Please use Markdown on code snippets for easier reading!

      1 Reply Last reply Reply Quote 0
      • O Offline
        olliewarren411
        last edited by paviro Sep 11, 2016, 11:21 AM Aug 23, 2016, 1:59 PM

        Hi Hellangle1978,

        Try the below I saw a few errors in the example code;

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

        Note from admin: Please use Markdown on code snippets for easier reading!

        1 Reply Last reply Reply Quote 0
        • H Offline
          Hellangel1987
          last edited by Aug 23, 2016, 2:37 PM

          Hi @olliewarren411

          i used your code - not working.

          I created as followed in instructions an token.ini worked all out no problem.
          Just wen pasting the code in my config.js then after that the mirror will not start. Even if i use sudo npm start on desktop.
          Mirror is aways asking for an config or an error in my config after pasting that in config :(

          O 1 Reply Last reply Aug 23, 2016, 2:46 PM Reply Quote 0
          • O Offline
            olliewarren411 @Hellangel1987
            last edited by Aug 23, 2016, 2:46 PM

            @Hellangel1987 Can you post the config code you’re using please?

            1 Reply Last reply Reply Quote 0
            • H Offline
              Hellangel1987
              last edited by Aug 23, 2016, 4:13 PM

              Im using your code as provided

              O 1 Reply Last reply Aug 23, 2016, 4:45 PM Reply Quote 0
              • O Offline
                olliewarren411 @Hellangel1987
                last edited by Aug 23, 2016, 4:45 PM

                @Hellangel1987
                Yes If possible please paste your entire config file as the error might be elsewhere

                H 1 Reply Last reply Aug 23, 2016, 5:21 PM Reply Quote 0
                • H Offline
                  Hellangel1987 @olliewarren411
                  last edited by paviro Sep 11, 2016, 11:21 AM Aug 23, 2016, 5:21 PM

                  @olliewarren411

                  here we go

                  /* Magic Mirror Config Sample
                   *
                   * By Michael Teeuw http://michaelteeuw.nl
                   * MIT Licensed.
                   */
                  
                  var config = {
                  	port: 8080,
                  
                  	language: 'de',
                  	timeFormat: 24,
                  	units: 'metric',
                  
                  	modules: [
                      		{
                          		module: 'MMM-FRITZ-Box-Callmonitor',
                          		position: 'top_right',  // This can be any of the regions. Best results in left or right regions.
                          		header: "Letzte Anrufe", // This is optional
                          		config: {
                              		// See 'Configuration options' for more information.
                          	}
                      		},
                  			{
                  				module: ‘MMM-fitbit’,
                  				position: ‘top_center’,
                  				config: {
                  				credentials: {
                  				client_id: ‘123456789’,
                  				client_secret: ‘123456789’,
                  			},
                  				resources: [
                  				‘steps’,
                  				‘floors’,
                  				‘caloriesOut’,
                  				‘distance’,
                  				‘activeMinutes’,
                  				‘sleep’,
                  				‘heart’
                  			]
                  			}
                  			},			
                  		{
                  			module: 'alert',
                  		},
                  		{
                  			module: 'clock',
                  			position: 'top_left'
                  		},
                  		{
                  			module: 'calendar',
                  			header: 'Feiertage',
                  			position: 'top_left',
                  			config: {
                  				calendars: [
                  		{
                  						symbol: 'calendar-check-o ',
                  						url: 'webcal://www.schulferien.org/media/ical/deutschland/ferien_bayern_2016.ics'
                  		}
                  				]
                  		}
                  		},
                  		{
                  			module: 'calendar',
                  			header: 'Termine NetApp',
                  			position: 'top_left',
                  			config: {
                  				calendars: [
                  		{
                  						symbol: 'calendar-check-o ',
                  						url: '################################'
                  		}
                  					   ]
                  		}
                  		},
                  		{
                    			module: 'localtransport',
                  			header: 'Verbindungen NBG HBF',
                    			position: 'top_left',
                    			config: {
                      			api_key: '###########',
                      			origin: 'Nuremberg Dunantstr',
                      			destination: 'Nuremberg HBF'
                    		}
                  		},
                  		{
                      			module: 'MMM-Traffic',
                      			header: 'Verkehr',
                  			position: 'top_left',
                      			classes: 'dimmed medium', //optional, default is 'bright medium', only applies to commute info not route_name
                      			config: {
                          		api_key: '#############',
                          		mode: 'driving',
                          		origin: 'Nuernberg',
                          		destination: 'Muenchen',
                               		route_name: 'Route nach NetApp Muc',
                  			show_summary: true,
                          		changeColor: true,
                          		showGreen: true,
                          		limitYellow: 5, //Greater than 5% of journey time due to traffic
                          		limitRed: 20, //Greater than 20% of journey time due to traffic
                          		traffic_model: 'best_guess',
                          		interval: 120000 //2 minutes
                      		}
                  		},
                  		{
                  			module: 'compliments',
                  			position: 'lower_third'
                  		},
                  		{
                  			module: 'currentweather',
                  			position: 'top_right',
                  			config: {
                  				location: 'Nuremberg',
                  				locationID: '',  //ID from http://www.openweathermap.org
                  				appid: '#################'
                  		}
                  		},
                  		{
                  			module: 'weatherforecast',
                  			position: 'top_right',
                  			header: 'Wettervorhersage',
                  			config: {
                  	            		location: 'Nuremberg',
                  				locationID: '2861650',  //ID from http://www.openweathermap.org
                  	            		appid: '##############'
                  		}
                  		},
                  		{
                      			module: 'MMM-MovieInfo',
                      			position: 'top_right',
                      			config: {
                          		api_key: '#############'
                      		}
                  		},
                      		{
                          		module: 'email',
                              		position: 'bottom_bar',
                              		header: 'Emails',
                              		config:{
                                  	user: '##############',
                                  	password: '#############',
                                  	host: 'imap.mail.me.com',
                                  	port: 993,
                                  	tls: true,
                                  	authTimeout: 10000,
                                  	numberOfEmails: 5,
                                  	fade: true
                          	}
                      		},
                  		{
                  			module: 'newsfeed',
                  			position: 'bottom_bar',
                  			config: {
                  				feeds: [
                  		{
                  						title: "Focus Eilmeldungen",
                  						url: "http://rss.focus.de/fol/XML/rss_folnews_eilmeldungen.xml"
                  		}
                  				],
                  				showSourceTitle: true,
                  				showPublishDate: true
                  		}
                  		},
                  	]
                  
                  };
                  
                  /*************** DO NOT EDIT THE LINE BELOW ***************/
                  if (typeof module !== 'undefined') {module.exports = config;}
                  

                  Note from admin: Please use Markdown on code snippets for easier reading!

                  O 1 Reply Last reply Aug 23, 2016, 6:17 PM Reply Quote 0
                  • O Offline
                    olliewarren411 @Hellangel1987
                    last edited by olliewarren411 Aug 23, 2016, 6:26 PM Aug 23, 2016, 6:17 PM

                    @Hellangel1987

                    Looks like you’re using the wrong quote marks around elements, you’re using ‘ try using ’

                    There is a difference.

                    or use the code below; I’ve tested it working.

                    @Hellangel1987

                    Looks like you’re using the wrong quote marks around elements, you’re using ‘ try using ’

                    There is a difference.

                    or use the code attached; I’ve tested it working.

                    0_1471976763018_config.txt

                    H 1 Reply Last reply Aug 23, 2016, 7:08 PM Reply Quote 0
                    • P Offline
                      plumcraft
                      last edited by paviro Sep 11, 2016, 11:22 AM Aug 23, 2016, 6:39 PM

                      Thanks for publishing this module but i got some issues with it.

                      When i’m running sudo python setupAccess.py and put my client and secret it, the script looks frozen. (Same behaviour after multiple retries)

                      Anyone having the same issue ?

                      I don’t know why, i’ve followed instructions here :
                      https://github.com/SVendittelli/MMM-fitbit

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 12
                      • 13
                      • 3 / 13
                      3 / 13
                      • First post
                        27/129
                        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