ekryski / caress-server Goto Github PK
View Code? Open in Web Editor NEWNodeJS TUIO translator and event emitter
Home Page: http://caressjs.com
License: MIT License
NodeJS TUIO translator and event emitter
Home Page: http://caressjs.com
License: MIT License
I am able to run the canvas example -- and it works -- in Firefox but when I try to use the FireBug plugin (to debug my own code), after a few touches the error I get is
"ongoingTouches[idx] is undefined" in line 106.
Continuing over that error results in further errors that relate to the ongoingTouches array (lines 128, 499, etc.)
Interestingly this does not happen with FireBug closed, but it would be nice to be able to use it with Caress.
I´ve tried to use a leapmotion to control a d3js visualization, but it always gets an error because the standard port of leapmotion 6437 is blocket and I cant run the server properly. So have you an idea how this could be solved? I have to use touch events because d3js support only mouse our touch and no leapmotion or other new input methods.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Windows\system32>npm install caress-server
npm http GET https://registry.npmjs.org/caress-server
npm http 304 https://registry.npmjs.org/caress-server
npm http GET https://registry.npmjs.org/jspack/0.0.1
npm http GET https://registry.npmjs.org/buffertools
npm http 304 https://registry.npmjs.org/jspack/0.0.1
npm http 304 https://registry.npmjs.org/buffertools
> [email protected] install C:\Windows\system32\node_modules\caress-server\node_
modules\buffertools
> node-gyp rebuild
C:\Windows\system32\node_modules\caress-server\node_modules\buffertools>node "G:
\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-
gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (G:\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:101:14)
gyp ERR! stack at G:\nodejs\node_modules\npm\node_modules\node-gyp\lib\confi
gure.js:64:11
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "G:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\
bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\system32\node_modules\caress-server\node_modules\buffert
ools
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the buffertools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls buffertools
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "G:\\nodejs\\\\node.exe" "G:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install" "caress-server"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Windows\system32\npm-debug.log
npm ERR! not ok code 0
C:\Windows\system32>
I am installing a certain NodeJS script - Caress. But i am not unable to. I am using Windows 8.1, can anyone tell me what is the problem i am facing, and why is this installation not working. There seems to be a problem with the buffertools dependency, thats far as i can think. Dont know how maybe fix this?
If i download the build from github and place it in node-modules, nothing seems to work. when i try to start, using npm start, or during implementation either.
G:\nodejs\node_modules\caress-server>npm install
G:\nodejs\node_modules\caress-server>npm start
> [email protected] start G:\nodejs\node_modules\caress-server
> node examples/server.js
info - socket.io started
module.js:340
throw err;
^
Error: Cannot find module './build/Release/buffertools.node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (G:\nodejs\node_modules\caress-server\node_modules\buf
fertools\buffertools.js:16:19)
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)
at Module.require (module.js:364:17)
npm ERR! [email protected] start: `node examples/server.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the caress-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node examples/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls caress-server
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "G:\\nodejs\\\\node.exe" "G:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "start"
npm ERR! cwd G:\nodejs\node_modules\caress-server
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! G:\nodejs\node_modules\caress-server\npm-debug.log
npm ERR! not ok code 0
G:\nodejs\node_modules\caress-server>
I can get the server running, but as soon as I actually send TUIO data, I get the following error (as printed in terminal). Thanks for any help and I am sure that this will be amazing software when I get it working.
/Users/User/caress/node_modules/caress-server/lib/tuio-packet.js:284
var zeroBuffer = new Buffer(1).clear();
^
TypeError: Object � has no method 'clear'
at decodeString (/Users/User/caress/node_modules/caress-server/lib/tuio-packet.js:284:34)
at decode (/Users/User/caress/node_modules/caress-server/lib/tuio-packet.js:213:17)
at Packet.toJSON (/Users/User/caress/node_modules/caress-server/lib/tuio-packet.js:93:17)
at Socket. (/Users/User/caress/node_modules/caress-server/lib/caress-server.js:60:57)
at Socket.EventEmitter.emit (events.js:98:17)
at UDP.onMessage (dgram.js:440:8)
npm ERR! [email protected] start: node examples/server.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the caress-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node examples/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls caress-server
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/User/caress/node_modules/caress-server
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/User/caress/node_modules/caress-server/npm-debug.log
npm ERR! not ok code 0
Is it possible to swap and X and Y input? My device runs in portrait mode therefore i want to swap the x and y input.
http://www.ractiv.com/index.html looks pretty interesting. Basically it can make any surface multi touch.
Tried launching both ways, using npm start as well as calling directlynode server.js. Same error.
Error: Cannot find module './build/Debug/buffertools.node'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/foo/bin/caress-server-master/node_modules/buffertools/buffertools.js:26:20)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
I get this error at random times with the PQ Labs G4S 2-point. I can't replicate this reliably but it can happen several times an hour.
How can I help debug this error?
Socket.io Client Connected
buffer.js:82
return this.asciiSlice(start, end);
^
TypeError: Bad argument.
at SlowBuffer.toString (buffer.js:82:19)
at decodeString (/home/sidewalk/caress/node_modules/caress-server/lib/tuio-packet.js:291:19)
at decode (/home/sidewalk/caress/node_modules/caress-server/lib/tuio-packet.js:213:17)
at Packet.toJSON (/home/sidewalk/caress/node_modules/caress-server/lib/tuio-packet.js:93:17)
at Socket.<anonymous> (/home/sidewalk/caress/node_modules/caress-server/lib/caress-server.js:60:57)
at Socket.emit (events.js:70:17)
at UDP.onMessage [as onmessage] (dgram.js:345:10)
I can's start up the server.js after I installed caress-server with
Ducs-MacBook-Pro:caress-server Ian$ node examples/server.js
/Users/Ian/node_modules/caress-server/examples/server.js:16
io.enable("browser client minification");
^
TypeError: io.enable is not a function
at Object. (/Users/Ian/node_modules/caress-server/examples/server.js:16:4)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:136:18)
at node.js:963:3
is it something with caress-server, or with socket.io?
Hi, trying to start the server on Mac OS X Mavericks 10.9 it crash with those logs:
[email protected] start /Users/Francesco/caress/node_modules/caress-server
node examples/server.js
info - socket.io started
TUIO UDP Server listening on: 0.0.0.0:3333
TUIO TCP Server listening on: 0.0.0.0:3333
/Users/Francesco/caress/node_modules/caress-server/lib/tuio-packet.js:284
var zeroBuffer = new Buffer(1).clear();
^
TypeError: Object � has no method 'clear'
at decodeString (/Users/Francesco/caress/node_modules/caress-server/lib/tuio-packet.js:284:34)
at decode (/Users/Francesco/caress/node_modules/caress-server/lib/tuio-packet.js:213:17)
at Packet.toJSON (/Users/Francesco/caress/node_modules/caress-server/lib/tuio-packet.js:93:17)
at Socket. (/Users/Francesco/caress/node_modules/caress-server/lib/caress-server.js:60:57)
at Socket.EventEmitter.emit (events.js:98:17)
at UDP.onMessage (dgram.js:437:8)
npm ERR! [email protected] start: node examples/server.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the caress-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node examples/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls caress-server
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/Francesco/caress/node_modules/caress-server
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Francesco/caress/node_modules/caress-server/npm-debug.log
npm ERR! not ok code 0
On the Buffer Node's documentation i found that they have no "clear" method.
I hope you will fix this issue soon.
F.
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.