How can I easily change the name of the application reported to rescuetime?

Asked by frankgilroy on 2008-08-28

I love this new uploader now that I've got it running under linux. I have one final problem to overcome before I can get my management off my back with regard to the level of granularity they one for time reporting. I spend the majority of my time in a gnome-terminal or xterm. I need to be able to report the time I'm actually spending on specific servers that we bill to different customer for. I tried to simply create copies of the binaries, naming them with each of our customers names and that didn't work.

Any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
RescueTime Linux Uploader Edit question
Assignee:
No assignee Edit question
Last query:
2008-08-28
Last reply:
2008-09-13
Elliot Murphy (statik) said : #1

I'm sorry I don't have time to write about this in greater detail.
There is a very flexible system that allows you to write scripts to
control the name that is reported to rescuetime. Probably a good
example is the script for skype reporting. Please do write back if you
have trouble getting the custom script working. When you do get it
working, I'll be happy to add this to the main release! Good luck.

--
Elliot Murphy

On Aug 28, 2008, at 14:18, frankgilroy <<email address hidden>
 > wrote:

> New question #43479 on RescueTime Linux Uploader:
> https://answers.launchpad.net/rescuetime-linux-uploader/+question/
> 43479
>
> I love this new uploader now that I've got it running under linux.
> I have one final problem to overcome before I can get my management
> off my back with regard to the level of granularity they one for
> time reporting. I spend the majority of my time in a gnome-terminal
> or xterm. I need to be able to report the time I'm actually
> spending on specific servers that we bill to different customer
> for. I tried to simply create copies of the binaries, naming them
> with each of our customers names and that didn't work.
>
> Any ideas?
>
> --
> You received this question notification because you are a member of
> Rescuetime-developers, which is an answer contact for RescueTime Linux
> Uploader.

frankgilroy (fjgilroy) said : #2

Did you intend to attach something or give a pointer to the script?

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Elliot Murphy (statik) said : #4

Don't expire this question.

Elliot Murphy (statik) said : #5

RescueTime is installed as a python egg file, in /usr/lib/python2.5/site-packages.
If you get the source from bzr or by downloading the tarball (I did a new release last night), you can find these plugins at RescueTimeUploader/extensions. The Skype extension is at RescueTimeUploader/extensions/Skype/app_name. I'm pasting the source to it below:

#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

import sys
import os
app_name = raw_input("")
window_title = raw_input("")

# Here are some example window titles from Skype
# main window, logged in as emurphy77:
# 'emurphy77 - Skype™'
# chat window to Skype Test Call
# 'Skype Test Call - Skype™ Chat'
# call to Skype Test Call goes through several phases, status before the |
# 1) Conference Call - 1 participants
# 2) 00:01 | Call with echo123
# 3) Call Finished | Call with echo123
call_to = ''
if '|' in window_title:
    call_to = window_title.split("|")[1].strip()
if call_to.startswith('Call with'):
    print 'Skype %s' % call_to
else:
    print app_name
~

Can you help with this problem?

Provide an answer of your own, or ask frankgilroy for more information if necessary.

To post a message you must log in.