Skip to content

Instantly share code, notes, and snippets.

@jackrobotics
Last active December 26, 2019 16:32
Show Gist options
  • Save jackrobotics/7ed3df30396765d3044b092979a5a5e6 to your computer and use it in GitHub Desktop.
Save jackrobotics/7ed3df30396765d3044b092979a5a5e6 to your computer and use it in GitHub Desktop.
var google_sheet_key = "1cKJitUdOQtGzUkurXhgsxY3_MON7wV9cguLGs5JC3hE";
var google_sheet_name = "แผ่น1";
function doGet(e){
var sheet = SpreadsheetApp.openById(google_sheet_key).getSheetByName(google_sheet_name);
var temp = Number(e.parameter.temp);
var humi = Number(e.parameter.humi);
sheet.appendRow([new Date(),temp,humi]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment