Commit Graph

14 Commits

Author SHA1 Message Date
Hannes Braun 8e3af696e0
Limit sending timetable requests in parallel to 3
Otherwise, the requests may fail (from my experience). Also we don't want to look suspicious (flooding their server with tons of requests at the same time).
2021-10-24 14:34:00 +02:00
Hannes Braun 993b8f6a71
Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-24 14:34:00 +02:00
Hannes Braun 22f17d10e0
Timetable fixes
- Only one request is made to get the timetable HTML document for parsing the timetable and the weekNumberYear
- On timeouts or other errors, the cached data won't be overwritten with emptiness anymore
- The scheduled updates will now also update the weekNumberYear
2021-10-24 14:33:59 +02:00
Jannik 46c9a61124
remove the workaround introduced in 36acf1a00a and update the Dockerfile
continuous-integration/drone/push Build is passing Details
2020-06-08 17:49:38 +02:00
Jannik 36acf1a00a
add workaround for ssl errors
continuous-integration/drone/push Build is passing Details
2020-06-08 11:57:20 +02:00
Jannik a13203c477
use the current directory to store the config.xml and cached timetables
continuous-integration/drone/push Build is passing Details
2020-01-15 13:42:40 +01:00
Jannik 3be98f6129
added junit test for TimetableParser
continuous-integration/drone/push Build is passing Details
* this also is release 1.1.4 (api version 1.1.2)
* closes issue #5
2019-09-14 00:43:59 +02:00
Jannik 5e220225f6
parse the week number of the year too 2019-09-06 23:10:35 +02:00
Jannik 754c8cb17b
clean up APICOntroller & new CacheController
* added a CacheController to hold all cache variables and clean up the APIController
* more consistent naming of variables
* update mensaMenu and courseList only if the request was successful
2019-05-28 12:49:25 +02:00
Jannik e804774970
cover some timeouts 2019-05-25 19:37:04 +02:00
Jannik aa48668af1 fixed wrong lessonID 2019-04-06 11:33:21 +02:00
Jannik cf0327bc88 added initial delay for scheduled updates 2019-03-18 16:13:13 +01:00
Jannik f2c1f2bc58 update all existing courses every 3 hours & some clean up 2019-03-13 19:12:05 +01:00
Jannik 6f2bed65ab added spring and a API specific stuff
this commit adds a fully working API wit /courses, /timetable?courseName=[course] and /mensamenu
2019-03-12 22:06:04 +01:00