<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dai #610 on Medium]]></title>
        <description><![CDATA[Stories by Dai #610 on Medium]]></description>
        <link>https://medium.com/@dai610?source=rss-a0b7bb8cd1e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1r8W61jl8Hsrw4Zb.jpg</url>
            <title>Stories by Dai #610 on Medium</title>
            <link>https://medium.com/@dai610?source=rss-a0b7bb8cd1e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 17:41:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dai610/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Whereabouts — Own Your Location Data: A Self-Hosted GPS Life-Log]]></title>
            <link>https://medium.com/@dai610/whereabouts-own-your-location-data-a-self-hosted-gps-life-log-ccec522922a9?source=rss-a0b7bb8cd1e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccec522922a9</guid>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[leafletjs]]></category>
            <category><![CDATA[overland]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-flask]]></category>
            <dc:creator><![CDATA[Dai #610]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 05:18:49 GMT</pubDate>
            <atom:updated>2026-06-28T05:18:49.038Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>“Where was I that day?” — I wanted to answer this question without asking Google.</em></blockquote><p>Following <a href="https://github.com/moneyrebirth/moneyrebirth">MoneyRebirth</a>, my personal finance tracker, this is the second entry in my “ore-log” series — a Japanese concept of self-tracking your own life data. “Ore” (俺) means “I/me” in Japanese, so “ore-log” literally means “my log.”</p><h3>The Problem</h3><p>Google Timeline is convenient. But the idea of my entire location history sitting on Google’s servers bothered me. I wanted to own my own data.</p><p>It started with a single question to Claude:</p><blockquote><em>“I want to log my location. Any way to do it without Google Maps?”</em></blockquote><p>Two weeks and a few hours of work later, Whereabouts was born.</p><h3>What It Does</h3><h4>Real-time Map</h4><p><a href="https://github.com/aaronpk/Overland-iOS">Overland</a> (free, OSS iOS/Android app) sends GPS tracks to my own server every 60 seconds. The map updates in real-time with a beautiful color gradient:</p><ul><li><strong>Time mode</strong>: midnight=blue → noon=green → night=red<br><strong>Speed mode</strong>: stopped=blue → walking=green → train=red</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/0*OypoOj0uPyUFam7y.png" /></figure><h4>Daily Summaries</h4><p>Every night at 00:30, a cron job automatically:</p><ol><li>Detects stay clusters (visited places)</li><li>Reverse geocodes coordinates to place names (Nominatim)</li><li>Generates keywords and comments via Claude API</li></ol><pre>Keywords: Shinjuku, outing, commute, evening<br>Comment: A well-balanced day with an afternoon trip to Ikebukuro and evening return.</pre><h4>Monthly Aggregation</h4><p>One month of tracks on a single map, with colors changing by date.</p><h4>Keyword Search</h4><p>Search “Matsumoto” and find all days I visited in 2018. Search “2021–05” and find my hiking trip records.</p><h4>GPX Import</h4><p>Import tracks from Geographica, YAMAP and other apps — with duplicate detection. My 2018 hike up Mt. Sulfur (Iōdake) came back to life.</p><p>The trail rises from the trailhead (1,718m) to the summit (2,654m), painted in a rainbow gradient that follows the altitude — and the memory of that climb comes rushing back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*MDfKHphG31rNwUUn.png" /></figure><h3>The Stack</h3><p>ComponentTechGPS CollectionOverland (iOS/Android, OSS)ServerFlaskDataJSONL (no database!)QueryDuckDBMapLeaflet.jsAIClaude APIInfrastructureVPS / fly.io</p><p><strong>No database required.</strong> Data accumulates in a single JSONL file. DuckDB queries it directly with SQL — fast enough for years of data.</p><h3>Deploy in 5 Minutes (fly.io)</h3><pre>git clone https://github.com/moneyrebirth/whereabouts<br>cd whereabouts<br>fly auth login<br>fly apps create your-whereabouts<br>fly volumes create whereabouts_data --app your-whereabouts --region nrt --size 1<br>fly secrets set WHEREABOUTS_TOKEN=your-secret-token<br>fly deploy</pre><p>Set Overland’s Server URL to https://your-whereabouts.fly.dev/api/locations and you’re done.</p><h3>Phone Setup in 5 Minutes Too</h3><p>Just two fields in Overland:</p><ul><li><strong>Server URL</strong>: your server endpoint</li><li><strong>Access Token</strong>: your secret token</li></ul><p>That’s it. Overland handles the rest in the background.</p><h3>Lessons Learned</h3><h4>cron and % character</h4><pre># This breaks in cron<br>DATE=$(date +%Y-%m-%d)</pre><pre># Escape % in crontab<br>DATE=$(date +\%Y-\%m-\%d)</pre><h4>Noise filtering threshold</h4><p>Train journeys jump 15km+ between GPS readings. Increasing the noise threshold from 5km to 50km fixed disappearing tracks.</p><h4>DuckDB migration</h4><p>As the JSONL grew, reading all lines in Python became slow. Switching to DuckDB SQL filtering made /api/today respond in under 1 second regardless of file size.</p><pre>sql = f&quot;&quot;&quot;<br>SELECT locations.geometry.coordinates[2] as lat, ...<br>FROM (SELECT unnest(locations) as locations FROM read_ndjson(&#39;{LOG_FILE}&#39;))<br>WHERE locations.properties.timestamp &gt;= &#39;{utc_start}&#39;<br>&quot;&quot;&quot;</pre><h3>Why Simple Wins</h3><p>The core is just “receive location data and display it on a map.” That simplicity makes it incredibly versatile:</p><ul><li>📍 Personal life-log</li><li>🚴 Cycling route visualization</li><li>🏔️ Hiking track logging (altitude gradient!)</li><li>👨‍👩‍👧 Family location sharing</li><li>🚗 Vehicle tracking</li></ul><p>Same system, endless applications.</p><h3>Your Data, Your Rules</h3><ul><li>Location data never leaves your own server</li><li>Fully open source — see exactly what runs</li><li>JSONL format — readable by any tool</li></ul><p>The past came alive when I imported old GPX files. Mountains climbed in 2018, cities visited in 2021 — all searchable, all mine.</p><p><strong>GitHub</strong>: <a href="https://github.com/moneyrebirth/whereabouts">https://github.com/moneyrebirth/whereabouts</a><br><strong>Japanese article</strong>: <a href="https://zenn.dev/dai610/articles/1f3e7add7dc08b">https://zenn.dev/dai610/articles/1f3e7add7dc08b</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccec522922a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>