tcgoetz / GarminDB

Download and parse data from Garmin Connect or a Garmin watch, FitBit CSV, and MS Health CSV files into and analyze data in Sqlite serverless databases with Jupyter notebooks.
GNU General Public License v2.0
1.18k stars 142 forks source link

Changing credential in config file does still download data from former credentials #135

Closed Minimic-beep closed 1 year ago

Minimic-beep commented 3 years ago

Describe the bug Changing credentials in GarminConnectConfig.json file appears that it somehow caches the token / credentials elsewhere, ignores the change in config file, and keeps downloading data from the original user that was first used to download the data.

To Reproduce Steps to reproduce the behavior:

  1. set credentials of user A in config file
  2. run garmindb_cli.py to fetch data
  3. change username and password for another garmin user in config file
  4. run the script again to download data from a new user
  5. the script downloads the very same data as before therefore from the former user, instead of the new user

Expected behavior When I change user account in conf file the scripts should download data from that user and not some cached credentials/tokens

tcgoetz commented 1 year ago

Are you on MacOS? Do you have the secure password setting? Is it reading the password from the keychain?

tcgoetz commented 1 year ago

Closing as old. Reopen if it reproduces with current builds.