Skip to content

blopa/google-fit-telegram

Repository files navigation

Google Fit Telegram Integration

This script will get data from your Google Fit and calculate your average calories intake and TDEE from the past 30 days.

It also gives you the average calories and protein intake in the past 30 days.

This will only work if you have macro data every day and weight data at least in the first day and the last day of the 30 days period, otherwise it can't calculate the TDEE.

Env keys

Mandatory

  • TOKEN_TYPE: Token type from Google Cloud
  • CLIENT_ID: Client ID from Google Cloud
  • CLIENT_SECRET: Client secret from Google Cloud
  • REFRESH_TOKEN: Refresh token from Google Cloud
  • TELEGRAM_BOT_ID: Telegram BOT API key
  • TELEGRAM_GROUP_ID: Telegram Group Chat ID

Optional

  • START_DATE: Start day of the period to calculate the average (it will calculate from START_DATE will today)
  • NUMBER_OF_DAYS: Number of days to calculate the average (it will calculate from today until NUMBER_OF_DAYS ago)

You can add these keys on the GitHub settings for your project, for example: https://github.com/blopa/google-fit-telegram/settings/secrets/actions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published