M5Stackに人感センサーを取り付け、動きを検知した際、kintoneにデータ登録を行う。
A motion sensor is attached to M5Stack, and when motion is detected, data is registered in kintone.
GASにて定期的にkintoneに登録されたデータを確認し、直近5分以内に検知データがあった場合は
「利用中」を、検知データが存在しない場合は「空き」でスプレッドシートの更新を行います。
Periodically check the data registered in kintone with GAS, and update the spreadsheet with "in use" if there is detection data within the last 5 minutes, and "free" if there is no detection data. I will do it.
スプレッドシートには臨時でGASをコールするボタンを用意。
The spreadsheet has a button to call GAS on a temporary basis.