This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Create a photo book easily: my sport events in year e.g. 2021

Hello,

I like to create a my sport years 2021 foto book including all my events from my sport year 2021.

During that year I did comments on all my events so I like to have them with:

map,puls,speed, elevation, my comments, pictures. All the funny things connect show us.

But!

I had saved around 400 events in 2021, means I do not like to go each by each and copy all of them into the photo book, don't want to get mad.
Means is there a easy tool, hint, etc...to get it very smooth done somehow?

The newsfeed wouldn't be bad but its not showing all I like to have and it is 90days back only. 

Thanks a lot and best Regards,

Daniel

  • csv export shows very less data, I need more

  • Well, you can download raw data as JSON files (at F12 -> Network tab you can find which files contain needed data) or full activities as GPX - you can easily script to loop through all activities. But this would require later to set up some software to convert that data to printable.

     

    Other way can be just do screenshots, if quality is good enough.

    I tried with build-in command into web-browsers, in Firefox there is :screenshot which allows to select which part of a page to save by element ID --selector '#pageContainer' or --fullpage.

    But it appears to be quite rubbish currently... for more complicated pages it doesn't save full page, only top visible part or full size but with missing images in lower parts. Maybe it depends on system or something, but at least in some cases it doesn't work.

    A workaround is having a big screen and rotate it to portrait - or - use the button (small paper page icon): 'Toggle print media simulation for the page' at F12 -> Inspector. In that simplified view :screenshot manages to save full page.

    Then it would need to set up a macro to open each activity and enter :screenshot --selector '#pageContainer'. Probably it needs to be external script like AHK, as it appears that :screenshot command can't be in a loop in a web-browser's console.

     

    But maybe better would be to check some automation drivers for web-browsers, those should do both: open pages and do screenshots.

     

    Also some way is to embed activities, less info, but few can be easily stacked on a page.

    <head>
     <style>iframe{width:470px; height:502px; border:none;}</style>
    </head>
    
    <body>   
     <iframe src="https://connect.garmin.com/modern/activity/embed/ID-1"></iframe>
     <iframe src="https://connect.garmin.com/modern/activity/embed/ID-2"></iframe>
     ...
    </body>

  • Thank you BunBun!
    I used to be a programmer, but it will take me so much time to jump on this train again.
    For fun I tried it it with the portrait screenprints on a portraits screen - manually -, but this will take lot of hours.

    Therefore I believe as long as garmin will not add a gimmick like that, I will not be able to make this book. Disappointed
    Anyhow, better running in the woods as reading pohotbooks Slight smile

  • If you have portrait mode and everything is visible at once, then :screenshot command should work in Firefox. At first check it manually.

    So you can run simple clicking AHK script which:

    1. Pastes to clipboard :screenshot --selector '#pageContainer' command.
    2. Checks if there is the browser's window and activates it.
    3. Searches area of a screen for the arrow icon.
    4. If found: opens console and pastes the command to save screenshot.
    5. Clicks on the arrow to load previous activity.
    6. Moves mouse from the arrow, as hovered has different color and can't be recognized.

    To compile, add also arrow.bmp - the arrow for previous activity as seen on opened activity.
    It should be a very small image like 4x10 px (you can cut non sharp grey pixels around).
    The script will be searching for that arrow.

    When it's ready, then open latest activity, minimize the browser and run the script.

    Be aware that some systems can show some alert about scripts which move mouse and press keys. It makes sense as it's always good to read whole script to be sure it's good.

    clipboard = :screenshot --selector '#pageContainer'
    
    While True
    {
      IfWinExist, Garmin Connect
      {
        WinActivate
        Sleep, 500
    
        ImageSearch, ImgX, ImgY, 300, 100, 2000, 300, *20 arrow.bmp
        if ErrorLevel = 0
        {
          Send, {Ctrl down}{Shift down}{K}{Shift up}{Ctrl up}
          Sleep, 500
    
          Send, {Ctrl down}v{Ctrl up}{ENTER}
          Sleep, 1000
    
          MouseClick, left, ImgX, ImgY
          Sleep, 8000
        }
    
        MouseMove, 20, 20,, R
        Sleep, 500
      }
    }

    To exit the loop, click Exit from the tray icon.

  • @BunBun! thanx, I need some spport to understood how to do this. Hopefully a friend of my can lead me