| .vscode | ||
| scripts | ||
| src | ||
| static | ||
| .env.example | ||
| .gitignore | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| docker-compose.yml | ||
| drizzle.config.ts | ||
| eslint.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||
TräwellPlan
This is a Sveltekit app allowing you to schedule trips in Träwelling, automatically checking you in an hour before it starts.
There's a live demo available at trips.rlin.eu.
Disclaimer
Keep in mind that this was born out of laziness, so even for my standards there's some hacky stuff in there. I consider this to still be in alpha, so expect some bugs and missing features.
Developing
To start a development server run the following command after installing dependencies:
npm run dev
Background polling
Run the check-in poller in a separate terminal so it checks the database and sends check-in requests to Träwelling:
npm run checkin:poll
Set CHECKIN_POLL_INTERVAL_MS to change the interval. The default is 30000.
Running with Docker
You can also run the app with Docker. Just run the following command in the project directory: You'll probably need to change the .env file, to set the OAuth settings, and some other settings.
docker-compose up