The goal in this project is to calcurate scores with daily workout logs, which has weight and count in each workout. This repository is mainly built by howdy39/gas-clasp-starter template.
$ git clone --depth=1 https://github.com/uuta/gas-workout-logs <project_name>
$ cd <project_name>
$ rm -Rf .git
$ yarn install
What is scriptId ? https://github.com/google/clasp#scriptid-required
{
"scriptId": <your_script_id>,
"rootDir": "dist"
}
{
"timeZone": "Asia/Tokyo", ## Change timeZone
"dependencies": {
},
"exceptionLogging": "STACKDRIVER"
}
$ yarn run build
$ yarn run push
Copy the script ID from the URL of the script editor which is like the below.
https://script.google.com/home/projects/<scriptId>/edit
Run the following command in the project directory.
$ yarn run push
Set the trigger to run the main function every 5 minutes. The main function can calculate the scores with the workout logs based on each weight and count.
The calculated scores can be integrated with BI tools like Google Looker Studio. Check the maximum weights and daily scores