Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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] [-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
  -p, --inlab           show who's in lab (logged in)
  -l, --log             show log file
  -a, --admin           enter admin mode