Hello there !
Here's my first personal project which is a program that may be interesting to 42 GEN scholarship students:
It calculates the total logtime a person has done from the 27th to the 26th of the current month or the month you chose, counting bonus time from the previous month if there is any !
Git clone my repo
git clone https://github.com/Nonino42/scholarship_logtime.git
As the program needs to access the 42 API, you will have to create an application v2 in your intra
For that, go on your intra, click on your profile, settings, API, register a new app at the top right on your screen
-
Name = scholarship_logtime
-
Redirect URI = https://profile.intra.42.fr/
You can skip the other cases
Now you should have your UID and your SECRET
Now go back to your terminal and set your application's UID and SECRET in sslog.sh file
UID_42="your_application_UID"
SECRET_42="your_application_SECRET"
Execute the program by doing like so:
./sslog.sh your_42_login chosen_month -s
#If you don't put anything for the chosen_month, it will automatically choose the current month
#If you put the "-s" flag it will show you the dates
- If you have chosen the current month, the program also tells you:
- how much time is left before the 27th
- how many days are left before the 27th (counting days off if you have set any)
- how much time you should do each day (counting days off if you have set any)
FAQ | ANSWER |
---|---|
BONUS LOG | Note that you can cumulate up to 70 hours of bonus logtime and it's only applicable for the next month |
LOGS NOT DISPLAYED YET | you have to wait until midnight ! |
CAN WE CHOOSE ANY MONTH | You can't choose a month that is older than 4 months |
PUBLIC HOLIDAYS | Automatically add 7 hours; if you come that day, the logtime you will do will be appended to it |
My bonus logtime is not the same as the real bonus logtime
If you have a doubt about your logtime, please ask your staff
Feel free to contact me if you have anything to say about the program / bugs !