This project aims to transfer data from Google Fit to Google Sheets automatically using TypeScript. It uses the Google Fit API to retrieve user data and the Google Sheets API to write the data to a specific Google Sheet. This project can be useful for individuals or organizations who want to keep track of their fitness progress in a more convenient and organized way.
- Automatically retrieves fitness data from Google Fit.
- Writes data to a specific Google Sheet.
- Can be scheduled to run at specific intervals.
- Clone the repository:
git clone https://github.com/shalev007/google-fit-to-google-sheets.git
- Navigate to the project directory:
cd google-fit-to-google-sheets
- Install the required packages:
npm install
- Follow the instructions in the Configuration section to set up your credentials and authorize the application.
- Run the application:
npm start
- Go to the Google Cloud Console and create a new project.
- Enable the Google Fit API and Google Sheets API for your project.
- Create credentials for a Web App.
- Download the credentials file and save it in the project directory as
.env
. - Follow the on-screen instructions to grant permission to the application.
- Open the
.env
file and enter the ID of the Google Sheet you want to write to. - Save the
.env
file.
- To run the application manually:
npm start
- To schedule the application to run at specific intervals, use a task scheduler like cron (Linux) or Task Scheduler (Windows).
If you have any questions or issues, please create an issue in the GitHub repository.
Contributions are welcome! If you want to contribute to this project, please create a pull request with your changes.
This project is licensed under the MIT License.