-
-
Save electricbaka/2a148fb822192c0ed5cc73e2ebe14a0f to your computer and use it in GitHub Desktop.
モーション起動スイッチで超低消費電力IoT:クラウドアプリ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet(e) { | |
//現状Activeになっているsheetを取得 | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
//1列目に日時、2列目に1を追記 | |
sheet.appendRow([new Date(), 1]); | |
//メールアドレス宛先、件名、メール本文 | |
MailApp.sendEmail('myaddress@example.com', '振動通知', '振動を検知しました'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
‘myaddress@example.com’ は実際の送信先メールアドレスに変更すること