Skip to content

dal3m/tlc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tlc

tiny librus (synergia) client.

what?

Librus Synergia is a Polish electronic gradebook. This is a client for it written in C99 using an unofficial and undocumented API.

the only compile-time dependencies are:

  • libcurl
  • jansson
  • uthash (included)

how?

tlc was made with being scriptable in mind, it's hacking friendly in a way that you can use all your favorite shell tools to do certain actions (I personally recommend using less, if used as a client), at it's own it does only one thing - fetch and parse data to a human readable (and script friendly) format from Librus API

You need to change LOGIN and PASS in config.h to your login and password.

I also imagine it would be quite easy to embed into other C/C++ programs with some minimal tweaking.

you have to compile a binary yourself, to compile and install it on unix systems run:

make install

so you can get only 6 newest grades by doing:

tlc -g | tail -6

or get only your maths grades by doing:

tlc -g | grep Matematyka

etc.

usage

  • g: grades
  • a: attendance
  • l: lucky number
  • n: announcements
  • w: warnings/notes.
  • t: tests, homework and exams
  • c: calendar with an optional parameter of YY-MM-DD as a start of the week (has to be monday)
  • h: help

see: man tlc

The flags can not be chained together (how would that even work).

contributing

If you find it even sort of useful feedback would be nice.

todo

  • Reduce boilerplate.
  • Write a client for Plan 9.
  • Implement a more secure way to store passwords.

license

ISC, thid-party code (libraries) differs in licensing, please consult the source files.