Logging Data to Google Sheets with the Tessel 2
Preflight Check
If this is your first time using your Tessel 2 you will need to do a little setup first. Have no fear; it is relatively painless and shouldn't take more than 20 minutes or so to install software and get you up and running! Check out the Getting Started with the Tessel 2 Guide to walk you through the process of:
- Installing the required software to develop for the Tessel 2
- Installing the T2-CLI tool
- Setting up the Tessel 2
- Creating a project directory (folder)
- Running a blink script to make sure it is working
Getting Started with the Tessel 2
October 12, 2016
Node.js Native Modules and NPM
If you have had experience with the Tessel 2, then you know that it is programmed with JavaScript and the Johnny-Five framework to be able to control the Input/Output (I/O) on the board. If you have never programmed with JavaScript before or the Tessel 2, we highly recommend that you check out the Johnny-Five Inventor's Kit Experiment Guide for a more in-depth explanation and exploration.
To get you started with this specific project, let's create a project directory as covered in the preflight check and install all of the needed node modules that we will use. We can do this through our console by using these commands:
language:console
mkdir loggerProject;
cd loggerProject;
npm init -y;
npm install johnny-five tessel-io node-ifttt-maker;
These commands do the following in order:
- Create a directory (folder) called
loggerProject
- Change directory, or move into
loggerProject
- Initiate an npm project within
loggerProject
that creates apackage.json
file. - Install the needed libraries, which in this case are
johnny-five
,tessel-io
andnode-ifttt-maker
using npm install. These will be placed in a directory callednode_modules
With your setup complete, you are ready to set out on your new adventures of logging data!