Posts

Showing posts from 2023

Some last site updates in 2023

Calendars https://garminbadges.com/calendar/ The badges calendar now supports the userId parameter (just like the challenges calendar). If you add that parameter it will only show the badges you can take. Note that the repeatable badges will always show. Example calendar URL to show my badges (my userId is 286):  https://garminbadges.com/calendar/badges?userId=286 Badge count for repeatable badges If you view a badge and click the link "[View users with badge]" you will get to page with all users that got that badge. The count for each user is now added as a new column. View list for Finish Strong Estimated finish date for Expeditions In the latest update for the Chrome Extension and Python Script the join date for the expeditions are fetched from Garmin. That makes it possible to calculate a finish date for the expeditions. It will use your current progress and time from the join date and from that extrapolate the finish date. You can also see your join date which is display

January 2024 - Challenges and Badges - New year!

Image
Join the January challenges soon in Garmin Connect. Three month challenges - Stage 1 2024 Running - Stage 1 Join this challenge and record 300 kilometers (186.42 miles) of running activities from January 1 to March 31. 2024 Walking - Stage 1 Join this challenge and record 91 miles (146.5 km) of walking activities from January 1 to March 31. 2024 Cycling - Stage 1 Join this challenge and record 675 kilometers (419.43 miles) of cycling activities from January 1 to March 31. Full month challenges January Time to Swim Join this challenge and record 4 hours of swimming activities in January. January Time to Run Join this challenge and record 10 hours of running activities in January. January Time to Ride Join this challenge and record 20 hours of cycling activities in January. January Time to Walk Join this challenge and record 15 hours of walking activities in January. January Tour Join this challenge and record 400 kilometers of cycling activities in January. January Warrior Join this cha

December 2023 - Challenges and Badges - Last month of the year!

Image
Join the December challenges in Garmin Connect. Three month challenges - Stage 4 Last month in the final stage. There is still time to complete them all. Full month challenges December Time to Swim Join this challenge and record 4 hours of swimming activities in December. December Time to Run Join this challenge and record 10 hours of running activities in December. December Time to Ride Join this challenge and record 20 hours of cycling activities in December. December Time to Walk Join this challenge and record 15 hours of walking activities in December. December Walking Join this challenge and record 30 miles of walking activities in December. December Tour Join this challenge and record 400 kilometers of cycling activities in December. December Warrior Join this challenge and record a total of four hours of yoga activities in December. Active December Join this challenge and record 20 activities of at least 20 minutes each in December. December Swim Join this challenge and record 4

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

Step-by-step guide how to install and run the Python script

Image
Step-by-step guide how to install and run the Python script This is how to do it on a Windows 11 computer. The easy way by using Microsoft Store. The Python script is open source by its nature and can be viewed here:  https://garminbadges.com/upload/garminbadges-updater.py Installation Save the python file to your computer. Click this link and then press ctrl + s to save it. Remember which folder you save it in. To make it easy you can save it on the Desktop. Install Python Open Microsoft Store and search for Python . There will be several versions available. Select the highest number that doesn't have RC in its name. I selected Python 3.11 which was my first result. Click Install . Install dependencies This is probably the hardest step for most users. Just follow the instructions and it will be alright. You can't really do anything that breaks your computer. If you get lots of errors. Then just check what you wrote and write it correct and run it again. Click the Windows bu

Step-by-step guide how to install and run the Chrome browser extension

Image
Step-by-step guide how to install and run the Chrome browser extension The Chrome browser extension is open source and you can find the source at Github:  https://github.com/e7andy/garminbadges-updater Note about the required permission for the extension: The extension requires the permission to read and change data since it must be able to inject scripts into the webpage. It will then run the scripts as any other script from Garmin on the web page and fetch all the data needed for the update. It couldn't be limited to just garmin.com and garminbadges.com since it needs to be able to see which website you are at and inform you that you must go to Garmin Connect.  Installation Browse to the Chrome Web Store page for the extension: Link Click the button Add to Chrome You will get an alert to confirm that you really want to add the extension to Chrome. Click Add extension Setup Next you want to make the extension visible at the top of your browser. Click the Extensions button in Chrom

Lots of new badges on the way - Dance Fitness, new Tacx challenge and more from the Challenge Badge Badge Challenge

Update 2023-10-02 Garmin servers seems to be up and the status page says all green: https://connect.garmin.com/status/ The badges that disappeared are now back. There are reports that data logged yesterday wasn't counted to the badges. It might help if you make an edit to the logged activities and save them again. Update 2023-10-01 Almost all badges from The Challenge Badge Badge Challenge badges have now been added. The missing ones are: Elliptical 10 and Badminton. Not sure what happened but they have been disappeared later during the day. Maybe it was caused by the server issues Garmin had. I believe the badges will come back in a day or so after the weekend. Never a good idea to do deployments on the weekends, but I guess they wanted to get new stuff out on October 1. Update 2023-09-27 Garmin has pulled back all the dance fitness badges from the descriptions file that I use as my source. My guess is that they were published accidently and shouldn't be known just yet. Dance

October 2023 - More time based challenges and lots of race badges

Image
Join the October challenges now in Garmin Connect. New this month: More challenges that use time as requirement. Now we got swim just as last month, but also walk, ride and run. A total of 49 hours if you want to do all 4 challenges. There are lots of overlap between the challenges and badges, so it will be easier than it looks. Three month challenges - Stage 4 Last stage for 2023 starts October 1. 2023 Running - Stage 4 Join this challenge and record 300 kilometers (186.5 miles) of running activities from October 1 to December 31 2023 Walking - Stage 4 Join this challenge and record 92 miles (148 km) of walking activities from October 1 to December 31. 2023 Cycling - Stage 4 Join this challenge and record 675 kilometers (419.5 miles) of cycling activities from October 1 to December 31. Full month challenges October Tour Join this challenge and record 400 kilometers of cycling activities in October. October Warrior Join this challenge and record a total of 4 hours of yoga activities i

September 2023 - Four (actually six) badges from the Challenge Badge Badge Challenge

Image
Join the September challenges very soon in Garmin Connect. New this month: The first badges from the Challenge Badge Badge Challenge and since one of them was the Ultimate badge we got an extra two. A total of six new badges. Two new challenges: 4 hours of swimming and 15 hours of walking. Three month challenges - Stage 3 Last month in stage 3 Full month challenges Marvel Avengers, Assemble! Join this Disney 100 Years of Wonder challenge and record 100 minutes of walking activities in September. Country: Austria, Australia, Belgium, Canada, Czech Republic, Germany, Denmark, Spain, Finland, France, United Kingdom, Italy, Netherlands, Norway, New Zealand, Poland, Sweden, Slovenia, Thailand, United States September Time to Swim Join this challenge and record 4 hours of swimming activities in September. September Time to Walk Join this challenge and record 15 hours of walking activities in September. September 15K Join this challenge and record a 15-kilometer running activity in September.

The Tournament of badges - New badges will come soon!

Image
Update 2023-08-10 The winner is "30 for 30" and it will go live September 1. Description "Record an activity of at least 30 minutes every day for 30 consecutive days." ---- Update 2023-08-02 There has come some more info now. Check out Garmin's Instagram:  https://www.instagram.com/garmin/ There is a story where you cast your vote for which badge that will win.. Link to the Story Exactly what that means is a bit unclear. Will only one of the listed badges go live? Maybe some of the other badges will come later on... Only time will tell. ---- We will very soon see a bunch of new badges that I just found out about. No idea when they will go public. Note that these badges got no time limit. Some of them will be really really hard. Swim streak will probably be the toughest for me. In general I think that the streak badges are the hardest since you can't miss a single day and life often makes you do that. Sleep Savant Receive sleep data for 30 consecutive days. S