/weeelab

Python script for garbaging paper sign sheet.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

weeelab

License Version

Python script for garbaging paper sign sheet.
The goal of this script is to move to the trash can the paper sign sheet.

INSTALL

Open a terminal and type these following commands:

git clone https://github.com/weee-open/weeelab
cd weeelab
sudo cp weeelab.py /bin/weeelab

Then create a file named .env (dot env) and add something like this:

export LDAP_SERVER="ldap.example.com"
export LDAP_BIND_DN="cn=something,dc=example,dc=com"
export LDAP_PASSWORD="foo"
export LDAP_TREE="ou=People,dc=example,dc=com"

export LOG_PATH="/home/username/.local/share/weeelab_logs/"
export LOG_FILENAME="${LOG_PATH}log.txt"

COMMAND SYNTAX

usage: weeelab.py [-h] [-d] [-i USER] [-o USER] [--interactive-login] [--interactive-logout] [-m MESSAGE]
                  [-p] [-l] [-a] [--ldap | --no-ldap]

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           enable debug mode (don't copy files to ownCloud)
  -m MESSAGE, --message MESSAGE
                        logout message
  --ldap
  --no-ldap

Actions:
  -i USER, --login USER
                        log in USER
  -o USER, --logout USER
                        log out USER
  --interactive-login   log in with questions
  --interactive-logout  log out with questions
  -p, --inlab           show who's in lab (logged in)
  -l, --log             show log file
  -a, --admin           enter admin mode

License

GNU GPL v3 except for icons: