Skip to content

Commit

Permalink
increase weight pagesize
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Mar 3, 2024
1 parent 04da2e5 commit 2e74f4a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,19 @@ class Vesync extends utils.Adapter {
if (this.session.token) {
await this.getDeviceList();
await this.updateDevices();
this.updateInterval = setInterval(async () => {
await this.updateDevices();
}, this.config.interval * 60 * 1000);
this.updateInterval = setInterval(
async () => {
await this.updateDevices();
},
this.config.interval * 60 * 1000,
);
}
this.refreshTokenInterval = setInterval(() => {
this.refreshToken();
}, 12 * 60 * 60 * 1000);
this.refreshTokenInterval = setInterval(
() => {
this.refreshToken();
},
12 * 60 * 60 * 1000,
);
}
async login() {
await this.requestClient({
Expand Down Expand Up @@ -400,7 +406,7 @@ class Vesync extends utils.Adapter {
allData: true,
configModule: this.fetchHealthData,
page: 1,
pageSize: 100,
pageSize: 300,
subUserID: null,
uploadTimestamp: null,
weightUnit: 'kg',
Expand Down

0 comments on commit 2e74f4a

Please sign in to comment.