time-spent
Calculate time spent on events in your Google Calendar like time spent on a freelance gig once it's time to send out invoices.
Usage
Rename config/index-sample.js to config/index.js and input your credentials.
module.exports = {
development_url : 'YOUR_LOCAL_URL',
production_url : 'YOUR_PRODUCTION_URL',
consumer_key : 'YOUR_GOOGLE_CONSUMER_KEY',
consumer_secret : 'YOUR_GOOGLE_CONSUMER_SECERET'
}
Create an app and get your credentials here: https://code.google.com/apis/console.
Also remember to turn on 'Services' -> 'Calendar API'.
Notes
This project is one of my first Node.js projects and has not been tested very thoroughly. This was only meant to be a test-project to get dirty with Node and therefore might contain critical bugs.
Hope you find it useful and if so, please let me know in which cases you did use it!
To-do
- Sort output table by date / time
- Re-factor main.css
- Input fields picks current date -15d and current date
- Redirect if credentials expires
- Don't reload if date picked is the same as before
Known issues
- Google doesn't always get the latest date if events are set to repeat inside Google Calendar, but then later removed. Might have to do with the "undefined" calendar where there are events that I need to check if appear.