mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
41851429c9
The first round could not photograph a few screens because the service behind them was not there: Dawarich, AirTrail, a document store, the booking extractor. They are there now, so the guides are too. - map-dawarich-trail, dawarich-countries and dawarich-wishes: the run uploads a recording of the seeded trip, and of the year before it, into a Dawarich of its own (dawarich-track.ts) and reads it back. - airtrail-import: four flights are put into an AirTrail account, two of them connecting in Tokyo, so the picker offers the layover. - import-booking-file and import-transport-file: the confirmations carry their facts as schema.org data the way portals send them, the extractor reads them, and the guides go on to the filled-in form and the card. - files-sync and document-providers: a Nextcloud folder with two documents in it, bound to the trip, and the switches in the admin panel. - read-place: three seeded places carry their OpenStreetMap id, so the card shows the week's hours, the phone number and the Open or Closed ring. The rating stays Google's, and the texts say so now. - map-compass on the MapLibre renderer, which the guide switches to and back; files-preview opens a PDF, which needs the full browser rather than the headless shell (channel: chromium on the help-media project). Each of those takes an address and a key from e2e/help/media.env, which is not committed; media.env.example and the README say what each one needs and why the address has to be the machine's own on the network. The seed's dates are offsets from the day the pictures are taken (e2e/dates.ts): the trip ends today, so the boarding pass, What's Next and the forecast have something to show whenever the run happens, and nobody bumps a date in three files every few weeks. run.mjs fixes the day once per run so the projects and the workers agree across midnight.
31 lines
1.4 KiB
Bash
31 lines
1.4 KiB
Bash
# Copy to e2e/help/media.env (not committed). Only the guides that show
|
|
# another service need these; every other guide runs without the file.
|
|
#
|
|
# The addresses must be the machine's LAN address: TREK's SSRF guard refuses
|
|
# loopback whatever the flags say, and the two lines at the bottom let the
|
|
# media backend reach a private network and find the booking extractor.
|
|
|
|
# AirTrail (Transports: Import from AirTrail). Key from Settings > Security.
|
|
HELP_MEDIA_AIRTRAIL_URL=http://192.168.1.10:3020
|
|
HELP_MEDIA_AIRTRAIL_API_KEY=
|
|
|
|
# Dawarich (Map: recorded route; Atlas: countries and wishes). Key from Account > API key.
|
|
HELP_MEDIA_DAWARICH_URL=http://192.168.1.10:3000
|
|
HELP_MEDIA_DAWARICH_API_KEY=
|
|
|
|
# Nextcloud (Files: Document sync). An app password, not the account password.
|
|
HELP_MEDIA_NEXTCLOUD_URL=http://192.168.1.10:8803
|
|
HELP_MEDIA_NEXTCLOUD_USER=admin
|
|
HELP_MEDIA_NEXTCLOUD_PASSWORD=
|
|
|
|
# For the media backend (client/e2e/server-launch.mjs passes the environment on).
|
|
ALLOW_INTERNAL_NETWORK=true
|
|
# The booking extractor. On Linux the package's binary; on Windows a small
|
|
# program that runs it in the TREK Docker image (see README).
|
|
KITINERARY_EXTRACTOR_PATH=/usr/lib/x86_64-linux-gnu/libexec/kf6/kitinerary-extractor
|
|
|
|
# Optional: the day the seed and the pictures are relative to (YYYY-MM-DD).
|
|
# Unset, every run takes today. Pin it while a picture set is made over
|
|
# several runs, so every run shows the same calendar.
|
|
# E2E_PICTURE_DAY=
|