You are not logged in.

#1 2009-05-25 20:34:02

musicmastamike
Member
Registered: 2009-01-28
Posts: 12

Conky Remember the Milk perl script

I first saw TheAxeR's python script here and was playing around with that for awhile. I am not a great python programmer, so I wrote up a perl script to interact with RTM, and I include lots of options. If you are more comfortable with python, by all means use TheAxeR's script. This is just an alternative.

Run the script with no arguments to see options.

NAME
        conkyRTM.pl

SYNOPSIS
        conkyRTM.pl -u USER -p PASSWORD

DESCRIPTION
        Perl script to output a user's RTM tasks to Conky

        To use this in Conky, put something like this in your .conkyrc:
            ${execpi 3600 perl /path/to/conkyRTM.pl -u USER -p PASS [options]}

ARGUMENTS
        -u USER, --user=USER           Specifies the username to be used for RTM
        -p PASSWORD, --pass=PASSWORD   Specifies the password to be used for RTM

OPTIONS
        -d N, --days=N          Specifies how many days (N) to grab tasks for
        -t, --time              Show time task is due in output
        -e, --estimate          Show task's time estimate in output.
        -y, --priority          Show task's priority in output.
        -l, --location          Show task's location in output.
        --tcolor=COLOR          Specify color for tasks. COLOR can be given as a word,
                                i.e. blue, as hex, i.e. 0000ff, or as colorN as in Conky
        --hcolor=COLOR          Specify color for day headers. COLOR can be given as a word,
                                i.e. blue, as hex, i.e. 0000ff, or as colorN as in Conky
        --tindent=N             Specify number of spaces to indent tasks.
        --hindent=N             Specify number of spaces to indent day headers.
        --eindent=N             Specify number of spaces to indent extra task information,
                                i.e. location, estimate, or priority.
        -r, --alignr            Right-align output in Conky
        -c, --alignc            Center-align output in Conky
        -f FONT, --font=FONT    Specify font to be used for output. FONT should be in one of the
                                following formats:
                                   --> font_name
                                   --> font_name:size=SIZE
                                   --> :size=SIZE
                                NOTE: SIZE is an integer
        -n, --not-due           Include tasks without a due date in output
        -o, --overdue           Include overdue tasks
        --include-tags=TAGS     Include only tasks matching specified tags in output. TAGS is a
                                comma separated list, i.e. tag1,tag2,tag3.
        --ignore-tags=TAGS      Exclude all tasks matching specified tags from output. TAGS is a
                                comma separated list, i.e. tag1,tag2,tag3.
        --white-lists=LISTS     Include only tasks in specified lists in output. LISTS is a comma
                                separated list, i.e. list1,list2,list3.
        --black-lists=LISTS     Exclude all tasks in specified lists from output. LISTS is a comma
                                separated list, i.e. list1,list2,list3.
        --priorities=PRIORITIES Include only tasks matching specified priorities in output.
                                PRIORITIES is a comma separated list. Valid priorities are
                                pri1, pri2, pri3, none
        --no-headers            Don't show day headers.
        -l, --location          Show location of tasks in output
        --24-hour               Show due times in 24 hour format
        -h, --help              Print this text and exit
        -m, --man               Print full documentation

AUTHOR
        Michael Stegeman

LICENSE
        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program.  If not, see <http://www.gnu.org/licenses/>.

You can always find the newest version of this script here:
http://github.com/mrstegeman/conkyRTM

Last edited by musicmastamike (2010-10-28 04:18:44)

Offline

#2 2009-05-26 07:35:37

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: Conky Remember the Milk perl script

wtf when i search for "pas*" on
http://ubuntuforums.org/showthread.php?p=6615155
firefox (vimperator?) exits

strange...



imho you can omit the whole user/password thing.
linux already knows how to handle different user accounts

and passing the RTM-pw on the command line makes it useless, since anybody using your 'real' account can read ~/.${SHELL}_history and ~/.conkyrc

(yeah, i know its just a port from someone else's script, but why not improve things?)


☃ Snowman ☃

Offline

#3 2009-05-26 20:57:05

musicmastamike
Member
Registered: 2009-01-28
Posts: 12

Re: Conky Remember the Milk perl script

robmaloy wrote:

wtf when i search for "pas*" on
http://ubuntuforums.org/showthread.php?p=6615155
firefox (vimperator?) exits

strange...



imho you can omit the whole user/password thing.
linux already knows how to handle different user accounts

and passing the RTM-pw on the command line makes it useless, since anybody using your 'real' account can read ~/.${SHELL}_history and ~/.conkyrc

(yeah, i know its just a port from someone else's script, but why not improve things?)

I understand your point here... What would be some other ways of getting the username and password, though?

Offline

#4 2009-05-29 10:27:06

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: Conky Remember the Milk perl script

musicmastamike wrote:
robmaloy wrote:

wtf when i search for "pas*" on
http://ubuntuforums.org/showthread.php?p=6615155
firefox (vimperator?) exits

strange...



imho you can omit the whole user/password thing.
linux already knows how to handle different user accounts

and passing the RTM-pw on the command line makes it useless, since anybody using your 'real' account can read ~/.${SHELL}_history and ~/.conkyrc

(yeah, i know its just a port from someone else's script, but why not improve things?)

I understand your point here... What would be some other ways of getting the username and password, though?

well my first post is incredibly stupid as i didnt know what rememberthemilk is (i thought it was just a local thing)

you can leave the pw stuff as it is or store it in $XDG_CONFIG_HOME/rtm
(or something)

Last edited by robmaloy (2009-05-29 10:30:09)


☃ Snowman ☃

Offline

Board footer

Powered by FluxBB