Posts

Showing posts from October, 2023

November 2023 - Challenges and Badges

Image
Join the November challenges very soon in Garmin Connect. Probably in just a few hours. November is the last month in the Disney's 100 years celebration. Three month challenges - Stage 4 Last stage for 2023 continues. Full month challenges Disney Enchanted Steps Join this Disney 100 Years of Wonder challenge and record 10 days of 10,000 steps throughout November. November Cycling Climb Join this challenge and climb 10,000 feet in elevation during cycling activities in November. November Time to Swim Join this challenge and record 4 hours of swimming activities in November. November Time to Run Join this challenge and record 10 hours of running activities in November. November Time to Ride Join this challenge and record 20 hours of cycling activities in November. November Time to Walk Join this challenge and record 15 hours of walking activities in November. November Walking Join this challenge and record 30 miles of walking activities in November. November 15K Join this challenge a...

Chrome extension working again!

The Chrome extension is now fixed! You must update to version 1.4.1 to use the fixed code. It should eventually update automatically, but if you want to update it right now you can browse to this URL: chrome://extensions/ and click the Update button at the top. I also made a quick speed upgrade. The old version took over a minute to update the data, but with the new version it takes about 5 seconds! I've submitted two versions with the speed upgrade. Version 1.4.2 had a bug. Version 1.4.3 is the version that works. What caused this issue? Garmin changed the URLs to the files that the extension fetch. The part 'modern/proxy/' was removed from the URLs. Garmin also added two new required headers. One is a static header and the other is an dynamic header that can be fetched from localStorage in the browser. 'di-backend': 'connectapi.garmin.com' 'Authorization':'Bearer ' + JSON.parse(localStorage.token).access_token Garmin Badge Database Garmin C...

Chrome extension currently not working - Fixed!

Update 2023-10-23 The Chrome extension is now fixed! You must update to version 1.4.1 to use the fixed code. It should eventually update automatically, but if you want to update it right now you can browse to this URL: chrome://extensions/ and click the Update button at the top. Garmin has made some changes and it will take time to solve it. Other projects got the same issue so I can hopefully get some help from there. What I found so far, but doesn't solve the problem: Garmin changed the URLs There are a few added headers to the requests The python script still works so that project is doing something right. Garmin Badge Database Garmin Connect Change country setting

Python script speed upgrade - version 1.1

Image
With the addition of the streak badges and expeditions to the challenge page the data upload is getting really slow. For me it takes over a minute to run the script, I timed it to 68-78 seconds. The main reason is of course the number of extra request that must be sent to Garmin. The script is doing that in series which takes forever since each request must return before the next is made. The solution is called parallelism. Send all the requests at the same time (more or less). The Python script is now updated and sends up to 10 requests at the same time. I had to limit the number of requests due to the size of the thread pool and I do not want to mess to much with the thread pool settings. Keep it simple! The time for the new updated script is: 14 seconds! About 5 times faster than the old script. The time will be a little different every time and sometimes it will take longer time due to internet traffic and server load, but it will be about 4-5 times faster than the old script. Vers...

Progress for expeditions and badges added to the challenges chart

Image
No need to search for your current progress in the long list of earned and available badges or look at the expeditions in the challenge page at Garmin Connect. The challenges chart at garminbadges.com now shows the progress for the expeditions and badges. To get access to this function you must submit your badge data to garminbadges.com. Garmin seems to have stopped the old method with the web form so the only methods now are the browser extension and the python script. Read about them here . There are also blog posts about how to setup them up and use them:  Browser extension and python script . The function currently does not calculate the finish date which would be useful and fun to see for the expeditions. Updates will come. Garmin Badge Database Garmin Connect Change country setting