Skip to content
Pocket Homelab
Install

Pocket Trails

v0.3.0 · Self-hosted · MIT

Plan the way out, and be back when you said.

Pocket Trails plans hikes, walks, runs and bike rides: routes on a topographic map with the climb and the time they take, the weather and sunset on the day with what to know, a packing list with what it weighs, and a back-by time that emails someone if you are not back. Afterwards the walked track sits over the plan. One Go binary, one SQLite file.

Install Trails with Pocket Core in one command:

curl -fsSL https://pockethomelab.com/install.sh | sh -s -- --apps trails

On any Linux machine or a Mac. Already running Pocket Core? Apps → Install app → Trails. Add more apps to the line →

  • Included in Pocket Box
  • Sign in with Pocket Core
  • Works with Pocket Movement and Pocket Weather and Pocket Calendar and Pocket Contacts and Pocket Health and Pocket Mail and Pocket Inventory and Pocket Places and Pocket Travel and Pocket Notes and Pocket Tasks and Pocket Day and Pocket Map and Pocket Search and Pocket Flows and Pocket AI
Today on an iPhone: Wednesday's hike up Bjelašnica with its weather, wind and cold at the top, how much is packed and who is told if you are lateToday on an iPhone: Wednesday's hike up Bjelašnica with its weather, wind and cold at the top, how much is packed and who is told if you are late

Today

The next outing and what to know.

The next outing with the forecast, sunset and what to know for that route, how much is packed and who is told if you are late; outings still to mark; what is coming up, how the last ones went and the year so far.

Today: a hike in two days with its weather, warnings about wind and cold at the top, 10 of 19 packed, outings to mark and the year in numbersToday: a hike in two days with its weather, warnings about wind and cold at the top, 10 of 19 packed, outings to mark and the year in numbers

Routes

Every route, with the climb and the time.

Bring in a GPX, KML, TCX or GeoJSON, or tap the map and the way follows the paths. Distance, climb, the highest point and the time by the hiking clubs' rule, on OpenTopoMap with the marked trails over it.

  • Water, huts, summits and the car park, with how far along
  • A height profile with a dot following on the map
  • GPX for OsmAnd, Organic Maps, Komoot or a watch
Bjelašnica summit: 6.3 km, 794 m up, about 5 h, the route on the topographic map with its spots and the height profile belowBjelašnica summit: 6.3 km, 794 m up, about 5 h, the route on the topographic map with its spots and the height profile below

On the phone

Pack it and tick it off.

Each outing gets a packing list from your gear, with the weight in the pack split into base, worn, food and water. Tick things off as they go in; what you still need is marked to buy.

  • Start from your own packing lists, one per kind of day
  • Bring in a LighterPack CSV
  • Gear still to buy, due the day before, in Pocket Tasks
The packing list for a hike on an iPhone: 10 of 19 packed, 4.42 kg in the pack, the rain jacket still to buyThe packing list for a hike on an iPhone: 10 of 19 packed, 4.42 kg in the pack, the rain jacket still to buy

How it went

The walked track over the plan.

After an outing the track from Pocket Movement or a GPX is laid over the route: how much of it you did, how far off you went, time on the move against stopped, and how your pace compares with the usual times.

  • A rating, trail conditions for next time and the story
  • Save what you walked as a new route
  • A finished outing as a workout in Pocket Health
A finished hike to Skakavac waterfall: the walked track in orange over the plan, 3.7 km walked, 1 h 12 on the move, all of the plan doneA finished hike to Skakavac waterfall: the walked track in orange over the plan, 3.7 km walked, 1 h 12 on the move, all of the plan done

Your year

The year, month by month.

Distance, climb, time out and summits for the year, month by month and by activity, with the longest outing.

  • Hikes, walks, runs, road, gravel and mountain rides
  • Any year you were out
Your year: 250 km, 12,763 m climbed, 53 h out and two summits, distance month by month and by activityYour year: 250 km, 12,763 m climbed, 53 h out and two summits, distance month by month and by activity

And the rest of it

  • Be back by

    A time and someone to tell. If you have not tapped “I'm back” a while after it, they get an email with your plan and the start on a map, and they are told when you are back.

  • Messages before you go

    The evening before and the morning of an outing, through Apprise, ntfy or a webhook.

  • Offline on the trail

    Every route downloads as GPX for OsmAnd, Organic Maps, Komoot or a watch, and prints as a route sheet.

  • Ask Pocket AI

    Only when you press it: what else to pack from the route, the weather and your own gear, a draft of how it went, or a route described.

  • Everyone their own

    Each person has their own routes, outings and gear on one box. Admins see no one else's routes.

Install

One container, one folder.

Run the image with a data folder and open it on port 8080. Create the first account and bring in a route. The map tiles, the forecast and routing along paths come from free services that need no account, and looking things up online can be switched off per person.

Already installed on a Pocket Box, with sign-in through Pocket Core and help from Pocket AI.

Every setting in the README →

The easiest way is the one command above. To run it on its own with Docker:

docker run -d --name pocket-trails -p 8080:8080 -v ./data:/data \
  -e BASE_URL=https://trails.example.com -e SECURE_COOKIES=true \
  ghcr.io/abjelosevic88/pocket-homelab-trails:latest