Commit Graph

40 Commits

Author SHA1 Message Date
Jannik 678a97f140
fix MensaParser & update spring boot, kotlin
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
* fixed the MensaParser(), it should now work more reliable
* updated spring boot 2.2.4 -> 2.2.5
* updated kotlin 1.3.61 -> 1.3.70
* clean up MensaParserTest
2020-03-03 19:31:12 +01:00
Jannik c22f752788
ci test 2
continuous-integration/drone/push Build is passing Details
2020-03-02 22:34:10 +01:00
Jannik 1798054580
ci test
continuous-integration/drone/push Build is passing Details
2020-03-02 18:28:02 +01:00
Jannik 9a48b1a859
minor fixes
continuous-integration/drone/push Build is passing Details
2020-03-02 18:21:36 +01:00
Jannik 2f1f65eba0
count courseList requests seperat 2020-02-27 17:42:19 +01:00
Jannik be95af43c2
made CacheCOntroller() static
continuous-integration/drone/push Build is passing Details
2020-02-16 17:17:39 +01:00
Jannik f20279a4b4
updated jsoup 1.12.1 -> 1.12.2
continuous-integration/drone/push Build is passing Details
2020-02-16 15:18:52 +01:00
Jannik 3aa27dff4a
don't use lateinit in CacheController()
continuous-integration/drone/push Build is passing Details
2020-02-10 17:42:44 +01: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 d0d5e4b6d1
removed Java legacy code
continuous-integration/drone/push Build is passing Details
the minimum is now Java 11
2019-12-30 01:36:21 +01:00
Jannik 4ca79e6540
removed invalid TODOs
continuous-integration/drone/push Build is passing Details
2019-11-21 14:58:34 +01:00
Jannik 9dd875fcb3
update softwareVersion/version to 1.2.0
continuous-integration/drone/push Build is passing Details
2019-11-21 14:49:22 +01:00
Jannik 697f5e3167
added on disk cache for the timetables
continuous-integration/drone/push Build is passing Details
* update spring-boot 2.1.9 -> 2.1.10
2019-11-14 18:43:00 +01:00
Jannik dd064d63af
added a configuration via config.xml file
continuous-integration/drone/push Build is passing Details
* the config file contains the Mensa name and URL, the Cachet Base-URL and API-Key
2019-10-28 18:39:44 +01:00
Jannik 3177be1bf0
use a FixedThreadPool to execute the timetable updates
continuous-integration/drone/push Build is passing Details
closes #9
2019-10-27 13:51:08 +01:00
Jannik db57059727
version 1.1.6
continuous-integration/drone/push Build is passing Details
* API version 1.1.4
* added /health, returns 200 (OK, for status checks)
* moved status code to a separate class
* added status.mosad.xyz reporting
2019-10-21 18:46:21 +02:00
Jannik 132cf2df0e
reworked the CacheController Class
continuous-integration/drone/push Build is passing Details
2019-10-20 11:52:44 +02:00
Jannik 238947a894
added java 8 support again
* added drone testing for java 8
2019-10-06 12:11:02 +02:00
Jannik 6a687eb297
added more status metrics, api version 1.1.3 (/lesson -> /lessons)
continuous-integration/drone/push Build is failing Details
* updated spring boot 2.1.8 -> 2.1.9
* closes #7
2019-10-05 17:17:26 +02: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 a0fceccc2f
added junit test for MensaParser
* updated kotlin 1.3.31 -> 1.3.41
* updated spring boot 2.1.5 -> 2.1.7
* updated coroutines 1.2.1 -> 1.2.2
* reworked MensaParser to make it testable
2019-08-16 13:59:44 +02:00
Jannik e89201c951
added more metrics to the status request 2019-06-03 12:20:01 +02:00
Jannik a6bb0a7afe
an hour needs to bee an hour 2019-06-02 19:04:20 +02:00
Jannik 13a55508d0
run the mensamenu update task every hour 2019-06-02 16:55:36 +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 9efc7fe4b7
cacth all exceptions in MensaParser
there are many things that can go wrong
2019-05-25 20:23:31 +02:00
Jannik e804774970
cover some timeouts 2019-05-25 19:37:04 +02:00
Jannik 62ad7a3b36
courses is now CourseList, added lessonSubjectList & lesson request
closes #1, #2
2019-05-23 14:56:16 +02:00
Jannik aa48668af1 fixed wrong lessonID 2019-04-06 11:33:21 +02:00
Jannik 8dd385e52a removed requestCount from /status 2019-03-18 19:28:27 +01:00
Jannik cef6e84e37 added request counter 2019-03-18 19:11:20 +01:00
Jannik cf0327bc88 added initial delay for scheduled updates 2019-03-18 16:13:13 +01:00
Jannik 08b6b2603f update to 1.0.1
* added some config lines
2019-03-17 00:33:18 +01:00
Jannik f9f0564a91 time is now updateTime 2019-03-16 00:00:34 +01:00
Jannik ecfc1356ee the /timetable request needs a week now 2019-03-15 23:57:31 +01:00
Jannik f2c1f2bc58 update all existing courses every 3 hours & some clean up 2019-03-13 19:12:05 +01:00
Jannik 6de94be329 update coursesList and mensa every 24/6 hours & added status page
* the status page shows the latest updates and the http staus of the hso and swfr sites
2019-03-13 15:13:53 +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
Jannik ace2cb1e39 updated all parser & updated build.gradle
this is the first work to get tcor fully workin
2019-03-11 20:12:49 +01:00