This is for exporting petkit pura X to external services (currently only support google sheets)
- Exporting to external services so that you can keep the log more than 24 hours
- A dedicated tracking log for each pets if you have multiple pets and their weight are different. (Right now the app only have the combined view)
-
Fork the Repo
-
Create a Google Service Account, and get the key.json
- Visit https://console.cloud.google.com/iam-admin/ create new project
- Enable Google sheets Library
- Create a service account: https://console.cloud.google.com/iam-admin/serviceaccounts
-
Create a new spreadsheet and shared with the service account you just created.
-
Configure the secrets in the repository:
AUTH_JSON
: The plain json content from downloaded key.json of your service accountSPREADSHEET_ID
: The id of the spreadsheet that you had shared with the service accountPETKIT_USERNAME
: the petkit app login user namePETKIT_PASSWORD
: the petkit app login password
-
Please also make sure you have add the pets name and weight in the petkit app. The script uses that information to identify the cat.
Once completed. The github action is schedule to run every 15 mins and will update the spreadsheet when there's newer event.