Skip to content

Instantly share code, notes, and snippets.

@henrik242
henrik242 / display-gpx-track.html
Last active May 15, 2024 05:22
Displays a GPX track as a HTML page using Leaflet, leaflet.hotline and GPXParser
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>GPX track</title>
<script src="//polyfill.io/v3/polyfill.min.js?features=document.querySelector%2CArray.prototype.at"></script>
<script src="//cdn.jsdelivr.net/gh/Luuka/GPXParser.js/dist/GPXParser.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.0/leaflet.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/iosphere/Leaflet.hotline/dist/leaflet.hotline.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.0/leaflet.css" />
@henrik242
henrik242 / airtag-to-gpx-sync.sh
Last active November 2, 2024 23:52
Read AirTag data from the FindMy.app cache and convert to GPX
#!/usr/bin/env bash
#
# Reads AirTag data from the FindMy.app cache and converts it to a daily GPX file
#
# Rsyncs the data to a web accessible folder that can be displayed with e.g.
# https://gist.github.com/henrik242/84ad80dd2170385fe819df1d40224cc4
#
# This should typically be run as a cron job
#