p-m-p / node-fitbit Goto Github PK
View Code? Open in Web Editor NEWFitbit API client for Node.js with shared data models
Fitbit API client for Node.js with shared data models
When trying to install via npm i receive the following error.
npm install
npm ERR! install Couldn't read dependencies
npm ERR! Error: Invalid name: "VirtMatt-Fitbit/PB"
npm ERR! at ensureValidName (/usr/lib/node_modules/normalize-package-data/lib/fixer.js:281:15)
npm ERR! at Object.module.exports.fixNameField (/usr/lib/node_modules/normalize-package-data/lib/fixer.js:196:5)
npm ERR! at /usr/lib/node_modules/normalize-package-data/lib/normalize.js:29:38
npm ERR! at Array.forEach (native)
npm ERR! at normalize (/usr/lib/node_modules/normalize-package-data/lib/normalize.js:28:15)
npm ERR! at final (/usr/lib/node_modules/read-package-json/read-json.js:310:33)
npm ERR! at then (/usr/lib/node_modules/read-package-json/read-json.js:124:33)
npm ERR! at /usr/lib/node_modules/read-package-json/read-json.js:284:48
npm ERR! at fs.js:208:20
npm ERR! at OpenReq.Req.done (/usr/lib/node_modules/graceful-fs/graceful-fs.js:135:5)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 3.10.0-229.4.2.el7.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/setkeh/Dev/fitbit
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/setkeh/Dev/fitbit/npm-debug.log
npm ERR! not ok code 0
Any idea's ??
Please change the following line in the /lib/fitbit.js:
var OAuth = require('OAuth')
to
var OAuth = require('oauth')
It works fine on Windows but on Unix/Linux based systems it causes an error. I changed this line and now my app is running fine on my AWS EC2 instance.
Regards
Matloob
HI,
Anyone can give me idea to write the resource for the heart rate. Currently we dont have the resource for the heart-rate.
Thanks for the module, however I'm having problems with authentication. I'm running v0.0.6.
I have the users access token, secret and am trying to run the getActivities request as per the demo, but getting an "Invalid signature or token" error from Fitbit.
Anything you've encountered before?
Hi Support,
I am not getting the user id after hitting the callback function. I am getting only the access token and the token secret. Please let me know how can i get it and where the function has been written in the library file
});
to close up app.get
express
and connect
as devDependencies
in package.json.I'm trying to install this package and get this error
Charless-MacBook-Air% npm install fitbit
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No README data
npm http GET https://registry.npmjs.org/fitbit
npm http 304 https://registry.npmjs.org/fitbit
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/lodash
npm ERR! git clone git://github.com/p-m-p/node-oauth Cloning into bare repository '/Users/majora/.npm/_git-remotes/git-github-com-p-m-p-node-oauth-efba15d2'...
npm ERR! git clone git://github.com/p-m-p/node-oauth fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/p-m-p/node-oauth github.com[0: 192.30.252.130]: errno=Operation timed out
npm ERR! Error: Command failed: Cloning into bare repository '/Users/majora/.npm/_git-remotes/git-github-com-p-m-p-node-oauth-efba15d2'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.130]: errno=Operation timed out
npm ERR!
npm ERR!
npm ERR! at ChildProcess.exithandler (child_process.js:647:15)
npm ERR! at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:753:16)
npm ERR! at Socket.<anonymous> (child_process.js:966:11)
npm ERR! at Socket.EventEmitter.emit (events.js:95:17)
npm ERR! at Pipe.close (net.js:465:12)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.3.0
npm ERR! command "/usr/local/opt/nvm/v0.10.28/bin/node" "/usr/local/opt/nvm/v0.10.28/bin/npm" "install" "fitbit"
npm ERR! cwd /Users/majora/Code/GetSomeSleep
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/majora/Code/GetSomeSleep/npm-debug.log
npm ERR! not ok code 0
I noticed you are using a custom fork of OAuth, is this necessary?
Was going to do a PR after I got it working by changing http to https, but just noticed this repo has them as https. Not sure what has to happen to get that to reflect when installing via 'npm install fitbit'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.