From edfcb974b96e064a3536841c276b2700acfd96fd Mon Sep 17 00:00:00 2001 From: BolkeDerBaer Date: Fri, 27 Feb 2026 22:01:21 +0100 Subject: [PATCH] docs: add README with setup instructions and API endpoints --- readme.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/readme.md b/readme.md index e69de29..cd163fc 100644 --- a/readme.md +++ b/readme.md @@ -0,0 +1,33 @@ + +# Moodle Timetable Server + +A Node.js server that fetches timetable data from WebUntis. + +## Setup + +1. Install dependencies: +```bash +npm install express dotenv luxon webuntis +``` + +2. Create a `.env` file with: +```env +PORT=3000 +WEBUNTIS_SCHOOL=your_school +WEBUNTIS_USER=your_username +WEBUNTIS_PASS=your_password +WEBUNTIS_URL=your_webuntis_url +``` + +## API Endpoints + +- `GET /` - Health check +- `GET /timetable` - Fetch timetable for next 4 weeks + +## Running + +```bash +node server.js +``` + +Server runs on `http://localhost:3000` by default.