https://github.com/plsr/fitbit-cli-water
https://github.com/plsr/fitbit-cli-water
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/plsr/fitbit-cli-water
- Owner: Plsr
- Created: 2022-07-08T14:41:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-10T17:39:45.000Z (almost 4 years ago)
- Last Synced: 2025-04-23T04:18:08.979Z (about 1 year ago)
- Language: TypeScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# fitbit-cli-water
## Authenticating
Fitbit requires the callback server to run on https (and rightfully so). In order to do so, we need two files in the
root folder of the project:
- `cert.pem`
- `key.pem`
In order to generate those, run:
```shell
openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365
```
and then
```shell
openssl rsa -in keytmp.pem -out key.pem
```
After giving permissions to the app, the redirect will tell you that the certificates are not trusted (since you just
generated them youself). Go to advenced and accept the security-risk.