Skip to content

A bot that fills out your Unanet timesheet when you're too busy to do it yourself

Notifications You must be signed in to change notification settings

dpford/timesheet-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timesheet-bot

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.

Required software

Required environment variables

  • UNANET_URL - the main Unanet login URL, e.g. https://www7.unanet.biz/company-name/action/home
  • UNANET_USERNAME
  • UNANET_PASSWORD
  • UNANET_PROJECT - the exact text inside the Project dropdown in your timesheet
  • UNANET_TASK - the exact text inside the Task dropdown in your timesheet
  • UNANET_HOURS - the number of hours you want entered

Setup

  1. Clone the repo on your server
  2. Install PhantomJS
  3. Setup a virtual environment and install requirements.txt
  4. Add the environment variables to a sourceable file (the sample uses /your-venv/bin/postactivate)
  5. Copy job.sh.sample to job.sh and customize as needed
  6. 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.

About

A bot that fills out your Unanet timesheet when you're too busy to do it yourself

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages