tessel / t2-start Goto Github PK
View Code? Open in Web Editor NEWTessel 2 start docs! Open for contributions.
Home Page: http://tessel.io/start
Tessel 2 start docs! Open for contributions.
Home Page: http://tessel.io/start
The Linux tab at the Command Line Basics page uses Mac descriptions, but Windows command line screenshots, this should get its proper, linux/unix-based instructions.
they currently don't function (see #40)
Our current instructions for working around npm permissions errors might be too specific:
It would probably be better to link to npm's official docs on the subject. (Thanks @wyze for mentioning these, didn't realize they existed.)
@rwaldron somehow this slipped by both of us :/
The all-caps section for the bonus is a note to self fill-in-the-blanks. And the formatting is kinda wonky. Whoops.
I can attack this later today.
Would be cool to showcase this new use case in the start experience. @HipsterBrown any thoughts on what this should include?
Out put from t2 init and the code paste on http://tessel.github.io/t2-start/blinky.html are different. Need to update the blinky code on http://tessel.github.io/t2-start/blinky.html to match t2 init
CLI commands vs .js lines of code aren't consistently formatted (mostly just CLI commands are all over the map)
it was solved by creating the folder and re running the command
> [email protected] install /usr/local/lib/node_modules/t2-cli/node_modules/usb
> node-pre-gyp install --fallback-to-build
gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/mariano/.node-gyp/4.2.6"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/t2-cli/node_modules/usb/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/t2-cli/node_modules/usb/build'
make: *** No rule to make target '../.node-gyp/4.2.6/include/node/common.gypi', needed by 'Makefile'. Stop.
make: Leaving directory '/usr/local/lib/node_modules/t2-cli/node_modules/usb/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-18-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/usr/local/lib/node_modules/t2-cli/node_modules/usb/src/binding"
gyp ERR! cwd /usr/local/lib/node_modules/t2-cli/node_modules/usb
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/local/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/usr/local/lib/node_modules/t2-cli/node_modules/usb/src/binding' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/t2-cli/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:821:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 4.4.0-18-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/t2-cli/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/t2-cli/node_modules/usb
node-pre-gyp ERR! node -v v4.2.6
node-pre-gyp ERR! node-pre-gyp -v v0.6.24
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/local/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/usr/local/lib/node_modules/t2-cli/node_modules/usb/src/binding' (1)
/usr/local/lib
└── (empty)
npm ERR! Linux 4.4.0-18-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "t2-cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the usb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs usb
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls usb
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/mariano/npm-debug.log
npm ERR! code 1
Should have this in the readme
I have found that if I use the instructions at
https://github.com/tessel/t2-start/blame/gh-pages/install.md#L35
I end up having permission problems when I subsequently try to npm install t2-cli
. It might be better to use
Apparently the source overrides all code
block formatting for the font-family
with "Andale Mono", which, if unavailable for the system, falls back (with no fallback) to a serif font.
via @snollygolly: "About half of the modules have forum links which are broken."
As mentioned in #16, we need to update our output GIFs. We let them slide with the out-of-date terminal for a while, but now it's pretty blatant because the hardware looks different:
Like this one from http://tessel.github.io/t2-start/modules/rfid.html:
We should document a method in the README for how to do this.
I made these original ones. Here's what I remember:
To complete this issue, PR the readme with a process as good as or better than mine. 💃
Let's start this discussion.
Page: http://tessel.github.io/t2-start/tweet.html
since we've recently transitioned to @tesselproject from @technicalhumans we need to change the example code to match.
Windows users apparently need to have:
All images are currently hosted in S3 which is a little less than ideal, especially for contribution sake.
Should we move these? Should we use an infinite image host like imgur? Should we hack Github to support our binary image habit?
When this repo is integrated into the main website, we can automatically apply the proper Tessel header/footer (we'll switch the URL to http://tessel.io/start for this case)
We want a much cleaner look, i.e. http://rustbyexample.com/
action: replace them. Needed image assets:
Jade is used extensively in the rest of Tessel's web properties. Do we want to use that as a publishing mechanism too?
This would require a publish step before uploading new changes, which is a little less magic than gh-pages automatically publishing. OTOH, it's very straightforward. And HTML is hard to manually touch.
They should no longer have a section about obtaining root and running hciconfig
running t2 list can not find the tessel connected to same wifi network that the computer is connected over. Amber light is blinking which is supposed to mean it's connected. There is only a single wifi network at my location. Running t2 wifi -n {network} -p {password} returns: WIFI enabled, WIFI connected. SSID:{network name}, password: {password}, security: psk2. But then t2 list only shows the usb connection.
http://tessel.github.io/t2-start/modules/climate.html has an image in step 3 of a si-7005, but the instructions reference a si-7020. The image should probably be updated, and the open question is whether the si-7005 should even be mentioned. I have one, which is why I noticed.
We currently encourage Linux users to run sudo apt-get install nodejs
but that will install an old version (0.10.x I believe?). We may want to update that to point to this link.
Until tessel/t2-cli#321 is fixed
Should go on page http://tessel.github.io/t2-start/
nvm
module is a good way to do this
it goes to tessel.io/start but needs to go to tessel.io/t1-start
add class "active" when that link is active
Do we want any changes to the T2 start experience based on tessel/t2-cli#595?
We have currently arranged the start experience to require people to get Tessel online before they update. In Tessel 1, updates happened on the same page as installation.
Moving update back to the first page
The purpose of the first run is to create success as quickly as possible, so:
t2 update
will be successful for people?Any thoughts on the matter (@johnnyman727 @rwaldron @tcr @HipsterBrown @flaki in particular)?
it's default now tessel/t2-cli#420 (comment)
depends on a CLI release
Once Node.js and npm
are installed to OS X, unless you are at 10.11.4 or better trying to enumerate Tessel 2 devices on USB will deadlock in the kernel.
(See here: https://forums.tessel.io/t/tessel-on-os-x-el-capitan/2298)
The node process will be stuck, and the CPU use for the kernel will spike to 100% and stay there. You will have to reboot the box to clear this up. Attempting to kill the locked node process just causes it to turn into a zombie process.
The kernel is spinning on something in the USB subsystem. I apologize for not getting the "sample" output these offending processes.
Over on the Tessel forums I was referred to this USB OS X issue which seems relevant.
Upgrading to 10.11.4 (which I was not automatically notified of, otherwise I probably would have already accepted it!) solve the problem and allowed me to enumerate and provision the Tessel device via t2.
Calling an API, e.g. Twitter, PubNub, something like that.
Because we want simplest ease of contribution as possible, gh-pages should be an explicit target (so people can fork, test, then merge). Jekyll publishing is the appropriate choice.
or perhaps tessel.io/docs should become T2 relevant.
For now probably https://github.com/tessel/t2-firmware#t2-hardware-api as the endpoint
Even with proper ~/.npm
permissions, one needs sudo
anyway, because otherwise install -g
fails due to not being able to access /usr/local/bin/t2
:
npm ERR! Error: EACCES, unlink '/usr/local/bin/t2'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, unlink '/usr/local/bin/t2'] errno: -13, code: 'EACCES', path: '/usr/local/bin/t2' }
This is a possibility, and gives us the benefit of depending on some open source (supported) code rather than our own concoction.
/cc @Frijol for thoughts
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.