wundernode usage
Closed this issue · 3 comments
I am trying to use wundernode, changed the api and getting this error:
(not showing my api!)
node wundernode_example
reseting rate : 10 per minute
WunderNodeClient initialized, apikey: 12345, debug enbaled: true, rateCount: 10, rateTime: minute
Host:http://api.wunderground.com/api/12345
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: object is not a function
at Object.CALL_NON_FUNCTION (native)
at Object. (~/nodejs/wunderground/wunderground_example.js:28:11)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40
Any ideas?
here are my steps:
- express wunderground
- cd wunderground
- npm install
- npm install wundernode
- modified Example.js
- ran node wunderground_example.js
I tried recreating your issue but failed. The cleanest way to check is to:
- make a test direction
- make a test/node_modules directory
- in test, npm install wundernode
- cd to test/node_modules, then do npm install (or example dependencies)
- edit Example.js to be your API key
- Run node Example.js to make sure that the client starts, and initializes to that API key.
Finally, then just abstract the instantiation of the Example for your own wunderground_example.js in how it initializes wundernode, etc. Hope this helps, let me know this doesn't get you going!
in step 4 , i had to cd to w/node_modules/wundernode before doing npm install
step 6 still fails. :)
:~/w/node_modules/wundernode$ node Example.js
reseting rate : 10 per minute
WunderNodeClient initialized, apikey: abc, debug enbaled: false, rateCount: 10, rateTime: minute
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at Server.listen (net.js:1127:5)
at Function.app.listen (/w/node_modules/wundernode/node_modules/express/lib/application.js:532:24)/w/node_modules/wundernode/Example.js:150:5)
at Object. (
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
npm --version
1.3.5
node --version
v0.10.15
This new error is because you have another sever up.
I hope it helps.
Cheers.
On Thursday, August 8, 2013, gdaughenbaugh wrote:
in step 4 , i had to cd to w/node_modules/wundernode before doing npm
installstep 6 still fails. :)
:~/w/node_modules/wundernode$ node Example.js
reseting rate : 10 per minute
WunderNodeClient initialized, apikey: abc, debug enbaled: false,
rateCount: 10, rateTime: minuteevents.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at Server.listen (net.js:1127:5)
at Function.app.listen
(/w/node_modules/wundernode/node_modules/express/lib/application.js:532:24)/w/node_modules/wundernode/Example.js:150:5)
at Object. (
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)npm --version
1.3.5
node --version
v0.10.15—
Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-22371384
.
ING. SEBASTIÁN BROMBERG
*C.E.O.
*sebastian.bromberg@syntagma.com.ar
+54 911 3656 3300
Olleros 2411 of. 105
+54 11 6009 1211/12 int. 200
C1426CRS, C.A.B.A.
Argentina
www.syntagma.com.ar