Used for automatically archiving data from various 3rd Party Sources to Google Drive
- Wakatime
- Rescuetime
- Trakt
- Clone the repository.
- Copy
.env-sample
to.env
and populate the contents as required for local testing. - For Github automation same values must be populated in GitHub secrets.
- Modify the CRON timings as per your requirement.
- Whenever anything is changed or as per the CRON schedule, the job will be executed.
- Only wakatime username is required for getting weekly data.
- Optionally you can fill the
Activity URL
which is got from the wakatime Share menu.
- Rescue time API key needed.
NOTE : Trakt exports entire user data, so its advisable not to add it in CRON action. You can run it manually in local machine. Since trakt doesn't delete user data after certain interval, its not much of an issue.
- Trakt API key needed.
- Trakt User name.
- Optional - By default trakt fetches the stat of the user. For getting complete data about movies/shows, fill in TRAKT_TYPE with "movies"/"shows" respectively.
Note : Follow the instructions from this page to setup connection to your google drive.
- Run the code initially in local machine to token.json for google drive API and add it to the Root directory.
- Once that is done, and .env/Github Secrets has been populated with client-id and client-secret. It's ready for CRON job.
- GDrive folder is optional. Will default to ROOT directory
- Based on the expiry_date of the token.json, might have to generate new token.json from your localmachine.