alchemycs / spheron Goto Github PK
View Code? Open in Web Editor NEWUse your javascript powers to control the Sphero by Orbotix
License: Other
Use your javascript powers to control the Sphero by Orbotix
License: Other
I think you can talk about possible paring issues on Mac OS X ( Have to remove pairing ... Reset Sphero and Pair again ... )
I see this part of the code in lib/commands/index.js
:
// TODO : Create a data streaming mask for use with commands.api.setDataStreaming()
masks.dataStreaming = {
};
masks.dataStreaming2 = {
};
What type of objects / helper functions were you thinking of for composing data streaming masks? I'm probably going to make something simple for my project, like
masks.dataStreaming = {
ACC_X_RAW: 0x8000000,
ACC_Y_RAW: 0x4000000,
etc
};
If that's what you were thinking of doing, I'd be happy to submit that addition. I'm using the data streaming for a course project / graduate research.
This is a great little project and it's been working well for setting values: changing colors, rolling, etc. But how do I get back values? For example, can you give any example of how getRGB would be used? Is there some callback needed?
Thanks!
hello,
really a cool lib - thanks for the good work.
I had only on problem, i wanted to use REPL but no command worked.
can you give one or two examples how to use REPL with you lib
for example to change the RGB color.
thanks,
alex
Here is what happened:
https://gist.github.com/Youtubrer/fadaa443375ea044e029
First sample script modified to the bluetooth name: GWR
https://gist.github.com/Youtubrer/68612593e23a632a59b0
What, (if you know) do I need to fix?
Thank you :)
On your documentation you talk about :
'/dev/cu.Sphero-ORW' for the Spheron port
But the port depend of your real Sphero name
For example mine is Sphero-ORW and the spheroPort is :
var spheroPort = '/dev/cu.Sphero-ORW-AMP-SPP';
To find the right name you can try :
ls /dev | grep cu.Sphero
in Terminal
Thanks for your great work !
Germain L.
Hi, I'm Jacen Sherman. I'm one of the MSPs working on the sphero pilot program. I have recently been having trouble simply adding sphero.js to my project.
I am simply running the command (on windows 8):
npm install --save sphero
About a week ago this worked fine for me. But now I am getting a very long error.
Sorry for the length but here is the whole stream...
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm http GET https://registry.npmjs.org/spheron
npm http 304 https://registry.npmjs.org/spheron
[email protected] install C:\Users\Jacen\Google Drive\Work\Microsoft\Tap Of War
\Code\Tap Of War\node_modules\spheron\node_modules\serialport
node-gyp rebuild
C:\Users\Jacen\Google Drive\Work\Microsoft\Tap Of War\Code\Tap Of War\node_modul
es\spheron\node_modules\serialport>node "C:\Program Files\nodejs\node_modules\np
m\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:998:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Jacen\Google Drive\Work\Microsoft\Tap Of War\Code\Tap Of W
ar\node_modules\spheron\node_modules\serialport
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
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 serialport 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 serialport
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "spheron"
npm ERR! cwd C:\Users\Jacen\Google Drive\Work\Microsoft\Tap Of War\Code\Tap Of W
ar
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Jacen\Google Drive\Work\Microsoft\Tap Of War\Code\Tap Of W
ar\npm-debug.log
npm ERR! not ok code 0
On page 19 of the Sphero API documentation it talks about being able to retrieve Level 1 diagnostics. I would like to get these for my app so that I can gain current statistics of the sphere. I don't see anything in the sourcecode for this project that would allow me to do so.
Really what I am trying to gather is how much it has rolled, temperature, and other statistics.
Let me know if this is possible please
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.