Code Monkey home page Code Monkey logo

time-recorder's Introduction

Time manager

This is a project to help to keep tack of how much time you spent in one or many activities at the end of the day. It uses the Google Sheets API to save the data of the day in a Google Spreadsheet and to retrieve the data from it to calculate the activities realized in the day and how much time was spent in each one of them.

How to configure

It still don't have a friendly approach, so you have to set some informations manually.

  1. Create a new Google Spreadsheet that you will use to save the data;
  2. Open the file credentials.js and place the spreadsheet ID in the const "SPREADSHEET_ID";

See the credentials.js for more info

How to use

  1. Enter into the directory and run the web server. For example, using Python's http.sever module:
    python3 -m http.server 8000
    It will run the server on localhost:8000;
  2. Login into a Google account with access to the spreadsheet defined in the credentials.js;
  • There is a bug that after logging in you need to refresh the page in order to the app works.
  1. Type something into the log field and sendo to the spreadsheet. Type "end" to finish an activity. If you changed something directly into the spreadsheet, click the button "Calculate time of activities" to refresh the times.

How it works

It is local server that you can start and allows to start to log your activities. Every day the API creates a new sheet page to that day, and you can only log things in the current's day sheet. In the future you will be able to choose another days.

When you type a new activity, it sets the end time of the previous acitivity and the begin time of the new one. Type "end" to finish an activity without start another.

time-recorder's People

Contributors

iagotito avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.