-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get teachers for period #7
Comments
Yes, I have the same problem as well! The reason, why you see the teachers in the official Untis Mobile App is, that they do not use the public API, they use an intern. You can see it, if you debug you phone and open untis. It calls /WebUntis/jsonrpc**_intern**.do ! Try the App SchoolPlaner4Untis! This is using the public API and it is on GitHub. |
SchoolPlanner has exactly the same Problem... Maybe I'll start reversing the internal API... |
@XDjackieXD did you find a solution or workaround? I only started getting the error recently. |
As I'm not in school anymore since a few years and my university doesn't use Untis, I haven't looked into this further. |
@XDjackieXD thank you for your quick response. I'll give up, for my use-case it's too much effort to try to reverse-engineer the official API. |
you can ask your untis-admin to give you this right. or look for the non-official, undocumented and unstable(?) API e.g. BetterUntis or SchoolPlanner4Untis |
Thanks for replying. I will try to explain to the teacher who administrates the accounts what I am doing (parsing a day's schedule and display it on an epaper display), and why I would like him to change some rights for my login. I don't know the admin interface and if this is easy feasible but I'll find out. |
just pushed a new version, see https://python-webuntis.readthedocs.io/en/latest/quickstart.html for a list of needed rights. epaper sounds great, have tried this with my students. Pull request with finished code as an example welcome... |
Thanks. The responsible teacher confirmed that there were changes made by the provider but he can't grant more rights for the ID used by me. There may also be some reservations since it sounds like I want to get private teachers' data ("getTeachers()"). I tried to script my way through the web interface but it doesn't work without Javascript. My workflow is very specific so sharing wouldn't help but the adapted code to upload a generated image from a Raspberry Pi to the display can be found here. |
For posterity, here's what I did to keep some functionality. In my code I commented out all parts dealing with teachers. Regrettably, this means I have no way to become aware of teacher changes but at least subject and room changes can still be dealt with. |
When trying to request teachers for a period (period.teachers) I get an jsonrpc error telling me that I don't have permissions but the untis mobile app and webuntis are able to show teachers for a period.
It seems like the API changed a few weeks ago. the same script was working about 2 months ago
The exact error is
Edit: I tried with the latest version of python-webuntis directly from git too with exactly the same error
The text was updated successfully, but these errors were encountered: