{"id":19001454,"url":"https://github.com/bumi/travels","last_synced_at":"2026-02-25T22:33:15.618Z","repository":{"id":66382372,"uuid":"52224150","full_name":"bumi/travels","owner":"bumi","description":"my travel log as git commits","archived":false,"fork":false,"pushed_at":"2017-11-20T16:44:08.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"gh-pages","last_synced_at":"2025-03-21T22:03:12.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://michaelbumann.com/post/139921224122/travel-location-tracker-using-gitgithub-as-a-time","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bumi.png","metadata":{"files":{"readme":"README.mdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-21T19:38:43.000Z","updated_at":"2016-03-02T19:55:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"98e7ad2d-70a9-40f6-969a-26f385c3c0f5","html_url":"https://github.com/bumi/travels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bumi/travels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Ftravels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Ftravels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Ftravels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Ftravels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumi","download_url":"https://codeload.github.com/bumi/travels/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Ftravels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29843463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T21:18:31.832Z","status":"ssl_error","status_checked_at":"2026-02-25T21:18:29.265Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T18:11:18.013Z","updated_at":"2026-02-25T22:33:15.602Z","avatar_url":"https://github.com/bumi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [where.is.michaelbumann.com](http://where.is.michaelbumann.com)\n\nmy location log stored in [git commits](https://github.com/bumi/travels/commits/locations) (in the locations branch). Have a look at [where.is.michaelbumann.com](http://where.is.michaelbumann.com) for a nice map and list of recent places.\n\nGot a recommendation for a place I should visit? Please create an [issue](https://github.com/bumi/travels/issues/new).\n\n## Development\n\n### All in one: \nadds location entries to an `ul.location-list`, fills `.current-location` and `.next-locaton`\n\n```javascript\n\n$.get('https://api.github.com/repos/bumi/travels/commits?sha=locations', function(commits) {\n  var max = commits.length;// \u003e 11 ? 11 : commits.length;\n  var future = [];\n  var past = [];\n  commits = commits.sort(function(c1, c2) { \n    var d1 = new Date(c1.commit.author.date);\n    var d2 = new Date(c2.commit.author.date); \n    if(d1 \u003c d2) { return 1; }\n    if(d1 \u003e d2) { return -1; }\n    return 0;\n  });\n  for(var i=0; i \u003c max; i++) {\n    try {\n      var c = commits[i].commit;\n      var commitMessage = c.message.split(\"\\n\");\n      var data = JSON.parse(commitMessage[commitMessage.length-1]);\n      var arrival = new Date(c.author.date);\n      var area = data.city || data.state || 'somewhere';\n          \n      var message = area + ', ' + data.country;\n      if(arrival \u003e new Date()) {\n        $('.next-location').html('Planned: ' + message + ' (' + arrival.toDateString() + ')'); // assumin the last commit in the future is the next stop. which is wrong, needs to get smarter and calculate the nearest in the future\n        $('.location-list').append('\u003cli class=\"future\"\u003e' + message + ' (' + arrival.toDateString() + ')\u003c/li\u003e');\n        future.push(c);\n      } else {\n        if(past.length === 0) { \n            $('.current-location').html(message); // assuming the first in the past is the current location\n        }\n        $('.location-list').append('\u003cli class=\"past\"\u003e' + message + '\u003c/li\u003e');\n        past.push(c);\n      }\n      \n      $('.location').show();\n      \n    } catch(e) {\n      // ignore\n    } \n  };\n});\n\n```\n\n### Get latest location:\n\n```javascript\n$.get('https://api.github.com/repos/bumi/travels/commits?sha=locations', function(commits) {\n  for(var i=0; i \u003c commits.length; i++) {\n    try {\n      var c = commits[i].commit;\n      var commitMessage = c.message.split(\"\\n\");\n      var data = JSON.parse(commitMessage[commitMessage.length-1]);\n      var area = data.city || data.state || 'somewhere';\n      $('.current-location').html(area + ' in ' + data.country);\n      $('.location').show();\n      return true;\n    } catch(e) {\n    } \n  };\n});\n```\n\n### Get list of locations:\n\n```javascript\n$.get('https://api.github.com/repos/bumi/travels/commits?sha=locations', function(commits) {\n  commits.forEach(function(commit) {\n    try {\n      var c = commit.commit;\n      var commitMessage = c.message.split(\"\\n\");\n      var data = JSON.parse(commitMessage[commitMessage.length-1]);\n      var area = data.city || data.state || 'somewhere';\n      $('.location-list').append('\u003cli\u003e' + area + ' in ' + data.country + '\u003c/li\u003e');\n      $('.location').show();\n      return true;\n    } catch(e) {\n    } \n  });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Ftravels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumi%2Ftravels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Ftravels/lists"}