Open Includes21 opened 1 year ago
I've this setup to run once a day and haven't had any issues. What you can check:
npm install
in case there are some leftovers lurkingIf you still have problems signing in just let me know and we'll try to figure it out.
Same error, I have tried with 2 different servers.
""Garmin Connect | Sign In""
I also can't sign in using the example README instructions. I get error:
$ node example.js myproject\node_modules\garmin-connect\dist\garmin\GarminConnect.js:58 throw new Error('Missing credentials'); ^
I looked at the code in GarminConnect.js and its because its expecting an object to be passed.
A temporary fix is this: add an object - new GarminConnect({});
const GCClient = new GarminConnect({});
await GCClient.login(email, pass);
const userInfo = await GCClient.getActivities();
console.log(userInfo);
@inspiraller if you don't have a garmin.config.json
file defined in the root, you have to include the emial & pass in that as you stated.
class GarminConnect {
constructor(
credentials: GCCredentials | undefined = config,
domain: GarminDomain = 'garmin.com'
) {
Hello, can you check if everything is okay? Since 3 days I can not login, im getting html/css error with:
"