Hardware Reference
In-Depth Information
3.5
Logging Data to Google Docs
It is now time to build the software part of our project. First, we will do some configuration
in Google Docs. Create a new spreadsheet in Google Docs, and give it a name (I named
mine “Yun”). Then, enter the title of each columns in the first row, like the picture below:
Now, we are going to build the Arduino sketch. This is the complete code for this part:
#include <Bridge.h>
#include <Temboo.h>
#include <Process.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP085_U.h>
// Contains Temboo account information
#include "TembooAccount.h"
// Variables
int lightLevel;
float humidity;
float temperature;
unsigned long time;
// Process to get the measurement time
Process date;
// Your Google Docs data
const String GOOGLE_USERNAME = "yourEmailAddress" ;
const String GOOGLE_PASSWORD = "yourPassword" ;
const String SPREADSHEET_TITLE = "Yun" ;
// Include required libraries
#include "DHT.h"
// DHT11 sensor pins
 
Search WWH ::




Custom Search