This program use json file to generate picture schedule.
pip install -r requirements.txt
python main.py in.json out.jpg
Json file should be an array with the following structure:
{
"date": "00.00.0000", // date
"lessons": [
{
"subject": "yueueu", // subject name
"type": "L", // subject type: 'L' - lecture, 'S' - seminar etc. Should be as short as possible
"teacher": "aaaaa", // teacher's name
"audience": "235a", // audience number
"time_start": "09:20", // lesson start time
"time_end": "13:55", // lesson end time
"subgroup": "1" // subgroup number, 0 if there are no subgroups for this lesson
},
...
]
}
Python script use imgkit for rendering html. Additional info in readme for imgkit.