Sign inSign up

yuribecker/cc-logger

By yuribecker

•Updated about 2 months ago

⏱️ Time Tracking automation for some education centre

Image
Internet of things
0

2.4K

yuribecker/cc-logger repository overview

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 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
NameDescriptionDefault
COMCAVE_USERNAMEYour usernamerequired
COMCAVE_PASSWORDYour passwordrequired
COMCAVE_RANDOM_SLEEP_RANGEMaximum amount of sleep time in minutes before running the automation0, so no sleep
COMCAVE_CHROMEDRIVERChromedriver executablechromedriver
COMCAVE_URLBase URL of the Comcave portalhttps://portal.cc-student.com/index.php
COMCAVE_NO_SANDBOXSets the --no-sandbox flag of Chromiumfalse, true in Docker
COMCAVE_HEADLESSSets the --headless flag of Chromiumtrue
RUST_LOGLogging Level, can be trace, debug, info, warn and error. info is recommended for production.debug, info in Docker

Tag summary

Content type

Image

Digest

sha256:04346da95…

Size

850.3 MB

Last updated

about 2 months ago

docker pull yuribecker/cc-logger