Giter Site home page Giter Site logo

screentime's Introduction

ScreenTime

I'm ready for my close-up, Mr. DeMille.

What is this?

I'm absolutely terrible at tracking my time. I always forget to start the timer. And then I always forget to stop the timer when I switch tasks. However, I think knowing how long I spend on things would be useful. To that end, I'm using the free version of toggl for tracking time, but supplementing it with an automated screencapture system so I can easily review what I was doing on my computer when.

There are several apps available that integrate screenshots with timing software, but I find the creep factor too strong to want to use them. Instead, I wrote a simple shell script to capture screenshots, along with a simple web app for viewing them.

Pull requests & contributions are encouraged.

How to use it?

There are three components, all of which are in this repository:

  • capture.sh -- a bash script for capturing screenshots on a periodic basis
  • local server -- any simple static server will do
  • capture viewer -- a single-page web app for viewing the captured screenshots

Check out the project, create screens, screens/full & screens/thumbs folders inside the project, and run capture.sh in a shell. I just leave it running pretty much all the time. For the capture viewer, any static server will do. The easiest is probably the python one built-in to OSX. More suggestions below.

capture.sh

shell script for caturing screenshots periodically

  • just a basic sleep loop that runs every five minutes (configurable)
  • takes a screenshot using OSX's screencapture program
  • copies it into screens/full
  • creates a thumbnail-sized version and copies that to screens/thumbs
  • after each capture, updates a static list of all the files that can be served to the web app (screens/screens-list.txt)
  • enhancement ideas:

local server

simple static server to support the capture viewer (below)

capture viewer

single-page web gallery for viewing images

  • pretty basic at the moment
  • enhancement ideas:
    • UI
      • sort with most recent group on top
      • open/close groups
      • group by day
      • add control panel
        • time range slider / pagination (currently only shows most recent 150 images)
        • open/close all
        • sorting options
        • grouping options(?)
      • zoomed view
        • make max size larger
        • prev/next buttons over whole image
        • keyboard navigation
      • badges are hard to notice & not that useful
      • auto refresh with latest screenshots
    • Technical
      • proper build process w/ linting & tests
      • sass
      • clean up architecture a bit

time tracking integration

Not implemented

License

MIT

screentime's People

Contributors

sprugman avatar

Watchers

James Cloos avatar  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.