Skip to content

yuri-becker/cc-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AGPL-3.0 License Docker Latest Commit


CC Logger

Automates starting and stopping time tracking.


About

This is a browser automation script to start and stop time tracking at Comcave College.

Obviously, this script is only meant to save you a few clicks and not to be run via a cronjob or similar.

Running

Docker (recommended)

docker run --env COMCAVE_USERNAME=username --env COMCAVE_PASSWORD=password yuribecker/cc-logger:latest cc-logger [come|leave|info]

From Source

COMCAVE_USERNAME=username COMCAVE_PASSWORD=password cargo run [come|leave|info]

You can also set environment variables by creating a .env.local file when running from source.

Environment Variables

Name Description Default
COMCAVE_USERNAME Your username required
COMCAVE_PASSWORD Your password required
COMCAVE_RANDOM_SLEEP_RANGE Maximum amount of sleep time in minutes before running the automation 0, so no sleep
COMCAVE_CHROMEDRIVER Chromedriver executable chromedriver
COMCAVE_URL Base URL of the Comcave portal https://portal.cc-student.com/index.php
COMCAVE_NO_SANDBOX Sets the --no-sandbox flag of Chromium false, true in Docker
COMCAVE_HEADLESS Sets the --headless flag of Chromium true
RUST_LOG Logging Level, can be trace, debug, info, warn and error. info is recommended for production. debug, info in Docker

About

⏱️ Time Tracking automation for some education centre

Topics

Resources

License

Stars

Watchers

Forks