Announcement

Collapse

Forum Upgrade

We’re excited to announce that the Garmin Forums will soon be moving to a new platform that should greatly improve our forum experience for everyone. We will update everyone as more information becomes available.
See more
See less

Bulk change of privacy settings for past activities

Collapse
X
  • Time
  • Show
Clear All
new posts

  • Bulk change of privacy settings for past activities

    If I change my privacy settings for activities from public to private or vice versa, and want to also change the setting for past activities, there is no easy way to do it. When I select Quick Edit on Activities, there's a Privacy column, with a tick at the top to select all activities in the column, but the only way to change the privacy setting for all activities is to click on each individual activity padlock icon in turn and change them one by one. It would be very useful to be able to change all of them with one click.

  • #2
    I have the same concern. I want to change the past 2 years of activities from private to public. There are a few threads about going to the activity page - is this on the web site or in garmin connect mobile.

    Instructions are for selecting all activities but I dodn't know how to do that. Then instructions talk about going to quick edit which I do not see anywhere.

    I am writing this in late October of 2018. Instructions I see are for 2016 or earlier. Perhaps there has just been a change in the software.

    Any help is appreciated.

    Comment


    • #3
      allan570 This isn't possible in Garmin Connect anymore, but I think it's a really great idea, so I adapted a script that will do this for you automatically.

      You need a Windows PC, Mac or Linux, and you need to install Python.

      1) Get Python 3.
      https://www.python.org/downloads/

      2) Download gcprivate.py script: https://pastebin.com/dl/j3Ae0m6w

      3) Double click on the gcprivate.py script

      You will be prompted for:
      - user name and password
      - starting activity date (optional) and end date (optional).
      - privacy level: private, my connections, my connections and groups, or public.

      Credit for the original script goes to Kyle Krafka and Michael Payne: https://github.com/kjkjava/garmin-connect-export/
      Last edited by WillNorthYork; 02-27-2019, 11:55 AM.

      Comment


      • #4
        Thanks Will - I am having trouble. After loading Python and the script, I do not get any prompts - I just get a window that looks like this (this is only part of it as it is too long to fit in a screenshot.)

        Comment


        • #5
          Sorry - one more thing - I do not want to make all private - I want to make all public.

          Comment


          • #6
            Hey allan570 I tweaked the script so you can choose the privacy level. Please redownload from the same link.

            Your photo link doesn't work, though.

            Please try using postimages.org or imgur.com.

            Comment


            • #7
              Also, I just made a change to the script so that it will stay open if there's any kind of problem.

              Comment


              • #8
                I still see the same thing - the screen shot should work now

                https://photos.smugmug.com/photos/i-...-R4PjWJ3-L.jpg

                Comment


                • #9
                  allan570 Ok I see you are using a Mac.

                  First off, please download the script again, as you don't have the absolute latest according to that screenshot. (I don't think I'll be changing it anymore unless there's issues).

                  Second, in Finder:

                  1) Right click on gcprivate.py and select Get Info.
                  2) Change Open with to Python Launcher
                  3)
                  Double-click on gcprivate.py

                  If that doesn't work for some reason, you can try this slightly more complicated procedure:
                  1) Drag the folder containing gcprivate.py onto the Terminal app icon:
                  https://scriptingosx.com/2017/02/ter...r-interaction/
                  https://scriptingosx.com/wp-content/...DragFolder.mov

                  2) Type the following command:

                  python3 gcprivate.py

                  Comment


                  • #10
                    And to be clear, you need Python 3 for the script to work. (Specifically, the download page should have offered you Python 3.7.1)

                    Comment


                    • #11
                      Thanks WillNorthYork - used the script works great, someone mentioned something today which made me think to check privacy settings and this is just the tool I needed to change them all.

                      Comment


                      • #12
                        I downloaded the script, but ran into troubles with activities that were unnamed. They would cause the script to crash out with the following error message:
                        File "gcprivate.py", line 299, in <module>

                        print('Activity: ' + a['startTimeLocal'] + ' | ' + a['activityName'])

                        TypeError: can only concatenate str (not "NoneType") to str


                        I simply changed line 299 to print('Activity: ' + a['startTimeLocal']). It would be better to add some error protection here, instead of never printing out the name. I don't know enough python to do this, however.

                        Other than this, great script. Thanks!

                        Comment


                        • #13
                          85PD dougw666 Thanks for the feedback! Honestly wasn't sure if this was of interest to anyone.

                          I've fixed the script so it doesn't crash on a blank activity name. In that case it only prints out the time, as suggested.

                          Mods, could this possibly be made into a sticky? I noticed that this topic has come up many times in the past few years.
                          Last edited by WillNorthYork; 01-21-2019, 04:14 PM.

                          Comment


                          • #14
                            Hi WillNorthYork,

                            As I understood your script works, doesnt it? And maybe just there are some very special coincidence when it goes into error.

                            I just wanted to be sure it is worth spending some energy to download and install Python etc.

                            Anyway thanks for your contribution to the world.

                            Comment


                            • #15
                              Tisztul_A_Visztula yep it works -- I tried it myself. Any errors that were reported in this thread have been fixed.

                              If you have any issues, let me know! No worries, I just modified an existing script that did the bulk of the work (authenticating with GC) and I'm happy to help .

                              Comment

                              Working...
                              X