This bot will check to see if you've submitted hours for the previous day in your Unanet timesheet. If not, it will add the number of hours of your choosing to your project, and save it.
UNANET_URL
- the main Unanet login URL, e.g. https://www7.unanet.biz/company-name/action/homeUNANET_USERNAME
UNANET_PASSWORD
UNANET_PROJECT
- the exact text inside the Project dropdown in your timesheetUNANET_TASK
- the exact text inside the Task dropdown in your timesheetUNANET_HOURS
- the number of hours you want entered
- Clone the repo on your server
- Install PhantomJS
- Setup a virtual environment and install requirements.txt
- Add the environment variables to a sourceable file (the sample uses /your-venv/bin/postactivate)
- Copy job.sh.sample to job.sh and customize as needed
crontab -e
and add something like:
30 9 * * 2-6 /path/to/job.sh
That will run the script at 9:30am local time Tues/Weds/Thurs/Fri/Sat.