Code Monkey home page Code Monkey logo

rescuetimebar's Introduction

Was this helpfull?

Did you find any of this usefull? Consider buying me a coffe over at BuyMeACoffee

BuyMeACoffee

Rescue Time Bar Plugin

This plugin gets you current productivity pulse and translates it to a 'bar' graph like so:

Example

Circles can look like this:

● ◐ ○

Credits to for the original code and idea: https://github.com/jckyeh/bitbar-rescuetime-plugin

Installation

  1. Download the latest version of BitBar.
  2. Copy it to your Applications folder and run it.
  3. Follow the prompts to create and select a plugins folder.
  4. Download this plugin and move to your plugins directory.
  5. Create a new API key from your RescueTime account here.
  6. Store the key in ~/Library/RescueTime.com/api.key.
  7. Set your target in under const goal = 70;
  8. Hit Refresh from one of the BitBar menus.

Sidenote

The productivity date is filterd using a filter provided by Rescue time to filter on 'During working hours' (it's not well documented yet). You need a premium acount for it. Want to use the filer? Set restrict_to_working_hours = false; to true

rescuetimebar's People

Contributors

kingofspades avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rescuetimebar's Issues

Bar seems off

Hi there.. First off, thanks for building this. I've been looking for a way to get a quick glance on my Rescuetime productivity score and i've always thought it bizzare why they couldn't just make a functional menu bar icon that shows your score. Anyway, I managed to install your app but it looks as if the menu bar isn't working.. I installed it about 30 mintues ago and although my score right now is 70 (which is the const goal), only two circles are fully filled in and the last one only half filled-in. Looking at your code (see below, it should be 2 circles full.. Could it be because I just installed this and I need to wait for the tool to gather more data fully? Hope your open to helping me troubleshoot. Thanks in advance

if(score < calcTarget(goal, 15)) { bar = "○○○"} else if (score <= calcTarget(goal, 30)) { bar = "◐○○"} else if (score <= calcTarget(goal, 45)) { bar = "●○○"} else if (score <= calcTarget(goal, 60)) { bar = "●◐○"} else if (score <= calcTarget(goal, 75)) { bar = "●●○"} else if (score <= calcTarget(goal, 90)) { bar = "●●◐"} else if (score >= calcTarget(goal, 90)) { bar = "●●●"}

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.