Fill hours in Woffu automatically
Download this project and unzip it.
You need to install:
- brew.
- Node.
brew install node
- Playwright.
npx playwright install
👀 Execute the following command to install the pre requirements:
make install
📝 Note: To execute the commands you need to open the terminal application:
Duplicate the .env.sample
file and change the name to .env
.
Check the file and make sure to update the values with your personal information:
- EMAIL: that you use to login in Woffu
- PASSWORD: that you use to login in Woffu
- HAS_GOOGLE_LOGIN:
true
if you use Google to login if it is notfalse
- TOTAL_MONTH: number of total month you need to fill
- INI_HOUR: The hour you want fill as the initial hour in your day
- END_HOUR: The hour you want fill as the end hour in your day
- WOFFU_URL: The url you use to login in Woffu
🙋♀ ️Remember: The total hours between the initial and end hour can't be greater than 8h
File example:
[email protected]
PASSWORD=yourpassword
HAS_GOOGLE_LOGIN=true
TOTAL_MONTH=3
INI_HOUR=09:30
END_HOUR=17:30
WOFFU_URL=https://your_company.woffu.com
Execute the following command to install it:
npm run i
To fill your hours in Woffu execute the following command:
make fill-hours
To fill your hours and show the process execute:
make fill-hours-headed
📝 Note: Always you can fill your hours check before the configuration in .env
file.