jk.nipponalba.scot website https://jk.nipponalba.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

28 lines
1.3 KiB

  1. ---
  2. date: '2021-02-26 21:57:39'
  3. draft: false
  4. pleromaurl: 'https://social.nipponalba.scot/notice/A4g9hHnMASuB73CUWO'
  5. posttype: note
  6. sensitive: 'false'
  7. slug: 60396ed3
  8. visibility: public
  9. title: note
  10. ---
  11. Thinking about how I pull all of the calculations from a multi-marker GPX file that I might want to display on a webpage..
  12. The file contains start time then multiple track segments with latitude, longitude, elevation, speed and time elements in each.
  13. For total distance I'd need to figure out how to measure between the coordinates and elevations of each consecutive segment (?) and then total each of these.
  14. Duration should be easy, it's just the difference between the first and last timestamp - though modifications are probably required for pauses.. however those are measured..
  15. Pace, I gather would be duration divided by distance.. my quick calculations on this aren't exactly the same as the apps, but presumably this is down to number of decimal places being used in the calculations..
  16. Which leaves calories burned.. this will require a constant for my weight but other than that I've no idea..
  17. Then output all of that into a yaml file for Hugo to render..
  18. Seems like a big job.. I wonder if there is a Linux command line tool that can do all of this already?
  19. These are the steps I may need to take to avoid google and JavaScript..