* docs(wiki): correct the install and operations pages for 4.0.0 Quick Start passed docker an empty ENCRYPTION_KEY: an assignment prefix is not expanded on the same command line, so the server silently generated its own key instead of taking the one the page told you to set. The tag examples pinned to the 3.x line, the documented tmpfs size did not match the shipped compose file, and several .env values were described as reaching the container when compose never interpolates them. * docs(wiki): match the MCP reference to the registered surface The scope table was missing the whole Collections group and the totals said 27 scopes across 13 groups where the code registers 29 across 14. The Cloudflare link on the setup page pointed at an anchor on its own page instead of the heading on Troubleshooting. * docs(wiki): correct the plugin and admin pages Three links to Plugin-Development carried a .md suffix, which does not resolve on the wiki. The admin pages described tabs, permissions and storage behaviour that had moved on. * docs(wiki): bring the feature pages back in line with the app Costs still documented the old panel, where categories could be added, renamed, reordered and deleted; they are fixed now and the panel is a day-grouped ledger with settlements. Trip sharing, journeys, maps, packing, reservations and the account pages had all drifted in the same way. * docs(wiki): cover the pages the first pass did not reach The MCP catalog listed 168 of the 201 registered tools; the settlement tools and rate_place were missing here and the Collections family from the addon page. Several resource rows claimed a trips:* scope where the handler asks for trips:read. * docs(wiki): tighten the corrections a review picked apart The audit-log resource is the row id, not the credential id; an admin password reset does not bump password_version the way the page implied; and a few of the new paragraphs described behaviour more confidently than the code supports. * docs(wiki): fix what a last read-through caught Costs shows every figure in your display currency, not the trip's, and an expense with no payer still counts against the members it is split between. Studio's cutoff is a 1024px viewport rather than phones alone, and the Integrations tab is gated on the providers an admin has configured. * docs(wiki): the last few the review caught A passkey satisfies the MFA policy everywhere except the WebSocket handshake, which still asks for TOTP, so a passkey-only account under that policy gets no live updates. Mobile optimizes a day from two places, not three. The ctx.db row carried an unescaped pipe that split the table, and the Backups table linked with a wiki link whose pipe did the same.
7.3 KiB
Calendar Feeds
Subscribe your calendar app to a TREK trip so it stays in sync automatically, instead of importing a snapshot once.
Not the same as the ICS export. The Download .ics action described in Day-Plans-and-Notes writes a one-off
.icsfile that never changes after you import it. A calendar feed is a live URL your calendar re-fetches on its own. Use the export for a frozen copy, a feed for something that keeps up with your edits.
Where to find it
There are two feeds, reached from two places:
- Per-trip feed — in the trip planner, click the Export button in the Day Plan sidebar toolbar and pick Subscribe to calendar under Calendar. (The entry above it, Download .ics, is the one-off export.) The subscribe entry only shows up if you may manage the trip's share links — see Permissions below.
- All-trips feed — on the My Trips dashboard, click the calendar-plus button in the toolbar (Subscribe to all trips).
Both open the same dialog.
Per-trip vs. all-trips
| Per-trip feed | All-trips feed | |
|---|---|---|
| Covers | One trip | Every trip you own or are a member of |
| Calendar name | The trip title | {your username} – All Trips |
| Excludes | — | Archived trips, and trips that ended more than 90 days ago |
| URL | /api/feed/trip/{token}.ics |
/api/feed/user/{token}.ics |
| Token lives on | The trip | Your user account |
The all-trips feed merges every qualifying trip into one calendar, sorted by start date, and de-duplicates the time-zone definitions so each event still resolves to the right local time.
Turning a feed on
- Open the Subscribe to calendar (or Subscribe to all trips) dialog. Opening it only reads the current state — it never mints a link behind your back.
- Click Enable calendar subscription. TREK generates a random token and shows the feed URL.
- Hand the URL to your calendar app with one of the buttons:
- Add to Google Calendar — opens Google's add-by-URL page with the feed pre-filled.
- Add to Apple Calendar / Outlook — a
webcal://link that the OS hands to your default calendar app. - Or copy a link manually — expand this to copy the raw
https://…URL (for a From URL box) or thewebcal://variant.
The URL is built from APP_URL when it is set; otherwise TREK falls back to the host you are browsing from. Set APP_URL behind a reverse proxy so the link is the one your calendar app can actually reach — see Environment-Variables and Reverse-Proxy.
The token, and who can read the feed
The random token in the URL is the credential. The feed endpoint requires no login: anyone who has the link can read the whole trip — every event, note, address, and confirmation detail — without an account. The dialog says as much: Creates a secret link anyone with it can read without logging in. You can turn it off anytime.
Treat the URL like a password. Don't post it in a shared document or a public issue.
Rotating and revoking
Once a feed is enabled, two buttons appear beneath the subscribe links:
- Regenerate — issues a new token. The old URL stops resolving immediately, so every calendar still subscribed to it goes dead and has to be re-added.
- Turn off — clears the token entirely. The URL 404s and no feed exists until you enable one again.
Use Regenerate if a link leaked; use Turn off if you no longer want a public feed at all.
What appears in the feed
The feed carries the same events as the ICS export:
- The trip itself — an all-day event spanning the trip's start and end dates, with the trip description.
- Timed day assignments — one event per place that has a time, using the place name as the title, its address as the location, and its notes in the description. Times are anchored to the place's own time zone.
- A per-day summary event — an all-day event for each day that has untimed places or notes, titled with the day title (or Day N), listing those places and notes in the description.
- Reservations — hotels, restaurants, and transport. Flights and other transport take their start and end from the departure and arrival endpoints, each in its own time zone. Reservations with no placeable date are skipped.
- Accommodations — an all-day event covering every night of the stay, from the arrival day to the departure day, so a hotel sits above those days rather than appearing once on the day you check in. The dates come from the trip days the stay is attached to, so reordering days moves the event with them.
- Check-in and check-out — separate timed events on the arrival and departure days whenever the stay records those times. If you entered a check-in window, its end becomes the event's end time.
- Car pickup and drop-off — a reservation of type Car also gets two standalone timed events, Pickup: {title} and Drop-off: {title}, on top of the rental's own booking block, both carrying the reservation's location. Each side prefers its own endpoint — the pickup endpoint for the pickup, the return endpoint for the drop-off — and takes that endpoint's local time and time zone. Otherwise it falls back to the booking's own times (an end value stored as a bare clock is paired with the booking's start date) and to the time zone of the linked place. A side with no usable date and time from either source is skipped, so a rental imported with only one geocoded endpoint can end up with just one marker.
Feeds are served with cache headers that tell clients not to cache, plus an hourly refresh hint (REFRESH-INTERVAL / X-PUBLISHED-TTL of one hour). Most calendar apps treat that as a suggestion — Google in particular refreshes on its own schedule, often much slower — so an edit may take a while to show up.
Permissions
Managing a per-trip token requires the share_manage permission — the same right that governs invite and share links. By default it sits with the trip owner; an instance can lower it to trip members in Admin-Permissions. A member without it never sees Subscribe to calendar in the export dialog and gets a No permission from the token endpoint, while anyone with no access to the trip at all still gets a Trip not found. The all-trips feed needs no permission — it is always scoped to your own account.
Because the token grants unauthenticated read access, enabling a feed effectively shares that trip's contents with whoever holds the link, regardless of trip roles — see Public-Share-Links for the equivalent trade-off on the sharing side.