Skip to content

Commit

Permalink
Fix 3 for interval
Browse files Browse the repository at this point in the history
  • Loading branch information
SVendittelli committed Sep 9, 2016
1 parent fe16a32 commit 63d65f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions MMM-fitbit.js
Expand Up @@ -44,7 +44,7 @@ Module.register('MMM-fitbit',{
'sleep',
'heart'
],
update_interval: 60*60*1000
update_interval: 60
},

// Define required scripts.
Expand Down Expand Up @@ -79,9 +79,8 @@ Module.register('MMM-fitbit',{
// Schedule update interval.
var self = this;
setInterval(function() {
//self.updateData();
Log.log('Updated!');
}, this.update_interval);
self.updateData();
}, this.config.update_interval*60*1000);
},

// Updates the data from fitbit
Expand Down

0 comments on commit 63d65f9

Please sign in to comment.