Raistlfiren / garmin-csv-plan

A quick n' dirty way of "automating" training plans into Garmin Connect.
https://raistlfiren.github.io/garmin-csv-plan/
37 stars 6 forks source link

Command line -m & -p ignored #11

Closed f4hla closed 3 years ago

f4hla commented 3 years ago

Hi, -m and -p (also --email and --password) seem to be ignored (can be checked by adding echo ('trying to log using - '. $garminUsername.' / '.$garminPassword); in Client.php line 11 (john/doe are logged out)

I could not find quickly where the command line parameters are taken into account. Thanks

Raistlfiren commented 3 years ago

Thanks for this report. I have updated the code to use the .env first and then the -m/-p flags. If it doesn't work, then please re-open this.

f4hla commented 3 years ago

working good! tnx