|
@ -29,7 +29,12 @@ async function main() { |
|
|
if (blackList[id]) { |
|
|
if (blackList[id]) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!["walking", "cycling"].includes(act.activityType?.typeKey)) { |
|
|
|
|
|
console.error("Skipping", act.activityId, `(${act.activityType?.typeKey} activity not supported)`); |
|
|
|
|
|
blackList[id] = true; |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
if (!act.startTimeLocal.startsWith(todayDate)) { |
|
|
if (!act.startTimeLocal.startsWith(todayDate)) { |
|
|
console.error("Skipping", act.activityId, "(not today)"); |
|
|
console.error("Skipping", act.activityId, "(not today)"); |
|
|
blackList[id] = true; |
|
|
blackList[id] = true; |
|
@ -45,6 +50,8 @@ async function main() { |
|
|
blackList[id] = true; |
|
|
blackList[id] = true; |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log("Going ahead with", act.activityId, act.activityType.typeKey) |
|
|
|
|
|
|
|
|
await garmin.downloadOriginalActivityData(act, "/tmp/", "tcx") |
|
|
await garmin.downloadOriginalActivityData(act, "/tmp/", "tcx") |
|
|
const input = await generateTrimlogInput(`/tmp/${act.activityId}.tcx`, act.activityName) |
|
|
const input = await generateTrimlogInput(`/tmp/${act.activityId}.tcx`, act.activityName) |
|
|