Skip to content

Utilities for the Zermelo api. Zermelo is a school schedule program used by a lot of Dutch schools.

Notifications You must be signed in to change notification settings

DaniNotFound702/ZermeloUtils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OUTDATED

IK PAS HET LATER AAN MAAR VOOR NU IS DEZE README OUTDATED

Zermelo Utils

Zermelo Utils is a project of mine with utils for the zermelo api.
You are able to get a database of all students at your school, if your school uses zermelo and your permissions are set the same as mine. This is because I am enrolled in only 1 school and don't know how permissions are managed at other schools.
The configured fields are all field I have permissions for to get at my school. I will add a way later to customise it.
This tool may be seen as a stalker tool, this is not my intention, it's intention is for me to learn python and just expiriment.

How use

Install the needed packages using pip install -r requirements.txt.
First make a Dotenv file as specified below, after that run python ZermeloImport.py, this will get the required data from zermelo, check the downloaded data in message.json and leerlingen.json, if the data is correct, proceed, if it is incorrect you either did something wrong or your Zermelo is set up differently.
Now we have made sure the data is correct, run python SaveToDatabase.py to make a database file with all student data.
You can now view the data using SQLiteStudio, pycharm, a vscode extension or something else.
You can make some cool graphs with the Graph.py(expiriment yourself).

Dotenv

Place a .env file in the root directory of the project containing this:

SCHOOL=YourSchoolName
SCHOOLYEAR=schoolInSchoolYear
AUTHORIZATION=Bearer YourApiToken
  • SCHOOL, the school name, you can find this by going to your zportal and look at the domain:
    edited
    (I edited the image, so this is not actually how long my url is)
    Copy the text under the black (Without the slashes at the left) and replace YourSchoolName with it
  • SCHOOLYEAR, a value internally used by zermelo, this will later be replaced, but in the mean time go to zportal and look in devtools at some requests, look for one that contains the following:
    censored
    Copy the integer under the red spot and replace schoolInSchoolYear with it.
  • AUTHORIZATION, your api token (this will become invalid in less than 1 day) find it the same way as the last one, but instead look at the request headers for Authorization

File structure

After using the program in the right way your file structure should look something like this:

.
├── .git/
│   └── .
├── Images/
│   └── .
├── .env
├── .gitignore
├── Graph.py
├── leerlingen.db
├── leerlingen.json
├── message.json
├── README.md
├── requirements.txt
├── SaveToDatabase.py
└── ZermeloImport.py

About

Utilities for the Zermelo api. Zermelo is a school schedule program used by a lot of Dutch schools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%