TUM-Dev / campus_flutter

Development of the cross-platform TUM Campus App with Flutter - for and from students at Technical University of Munich.
https://tum.app/
GNU General Public License v3.0
44 stars 6 forks source link

[Enhancement] Display Study Room Utilization Percentages using IRIS #288

Closed AntonMC-Github closed 1 week ago

AntonMC-Github commented 1 month ago

Is your feature request related to a problem? Please describe. Currently the Lernräume are already shown. The problem is, that rooms, where occupancy is determined via WIFI and thus provided as percentages, the APP can't handle that. Thus the room status is currently shown in App as unknown.

Describe the solution you'd like The used IRIS API also sends out the utilization percentages as "percent". Using this datapoint, we can simply show this Percentage and color the percentage based on whether the percentage is above x percent (e.g. 0-50%: green, 51-75%: yellow, 76-100%: red)

Describe alternatives you've considered

jakobkoerber commented 1 month ago

Hey @AntonMC-Github, thanks for your suggestion! 😄 We can happily integrate that. One question: which API/Endpoint are you refering to? I'm not able to read out percentages using https://www.devapp.it.tum.de/iris/ris_api.php?format=json 🤔