Update README and exampleENV

This commit is contained in:
Jannover5000r 2026-08-25 23:50:58 +02:00
parent 218916e831
commit 8ed61f8b97
2 changed files with 6 additions and 5 deletions

View file

@ -8,12 +8,13 @@
- DISCORD_BOT_TOKEN - DISCORD_BOT_TOKEN
- ENC_KEY (generated via head -c 32 /dev/urandom | base64) - ENC_KEY (generated via head -c 32 /dev/urandom | base64)
- URL - URL
- TIMEZONE (will default to UTC if empty)
### URL can be found by following this structure: "<https://[SchoolName].webuntis.com/WebUntis/jsonrpc.do?school=[SchholName]" while SchoolName can be found by visiting the official website, going to the login for your school and it will be: "<https://[SchoolName].webuntis.com/WebUntis/?school=[SchoolName]#/basic/login>" ### URL can be found by following this structure
# This is a project for me, issues will be resolved as i find the motivation to do so, improvements may follow in the future "<https://[SchoolName].webuntis.com/WebUntis/jsonrpc.do?school=[SchholName]"
while SchoolName can be found by visiting the official website, going to the login for your school and it will be:
## I will try to maintain this project as best as possible. Maybe add a better security to it than to trust the host but for now it is working and that was my goal. Please report any errors you find while using this bot "<https://[SchoolName].webuntis.com/WebUntis/?school=[SchoolName]#/basic/login>"
# Installation # Installation

View file

@ -4,4 +4,4 @@ UNTIS_USER=[Default user username]
DISCORD_BOT_TOKEN=[Paste Bot token] DISCORD_BOT_TOKEN=[Paste Bot token]
ENC_KEY=[Generate enc key and paste] ENC_KEY=[Generate enc key and paste]
URL=[Untis url, create from tutorial in readme] URL=[Untis url, create from tutorial in readme]
LOCATION_ENV=Europe/Berlin [change to your timezone, needs to be usable by go's time package via time.LoadLocation()] LOCATION_ENV=Europe/Berlin [change to your timezone, needs to be usable by go's time package via time.LoadLocation(LOCATION_ENV)]