pjf / WebService-HabitRPG

Access the HabitRPG API from Perl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow viewing habit history

wizonesolutions opened this issue · comments

Maybe hrpg history or hrpg [TYPE] history.

The web GUI has no analogue to this, but I saw in the WebService::HabitRPG doc that the API does return this data.

Maybe the output could be something like:

Take the stairs:

+1 on 2013-03-23
-1 on 2013-03-23
+1 on 2013-03-20
+1 on 2013-03-19
-1 on 2013-03-18

Something like that? Because my main question is, "When did I last touch this task, and did I mark it up or down?" Occasionally it's also, "How many times have I done something to this task today?"

The history is weird, since it doesn't actually show +1/-1, but it shows the new level of the task at the given time. As you level up a task, additional +'s provide reduced rewards (and reduced levelling). I don't know what happens with negative levelling, I hope it punishes you more each time.

But yes, some sort of history display would be nice. There are (seconds from the epoch) timestamps in there, so you can also see when you adjusted something up or down.

I would love the API to allow freeform text in the history log, but alas it doesn't yet. I think there's a feature request for that somewhere.

Oh, timestamps matter most for me. The change in stats can be expressed
however as long as it's clear whether it was pos or neg.
On Mar 23, 2013 3:14 PM, "Paul Fenwick" notifications@github.com wrote:

The history is weird, since it doesn't actually show +1/-1, but it shows
the new level of the task at the given time. As you level up a task,
additional +'s provide reduced rewards (and reduced levelling). I don't
know what happens with negative levelling, I hope it punishes you more each
time.

But yes, some sort of history display would be nice. There are (seconds
from the epoch) timestamps in there, so you can also see when you
adjusted something up or down.

I would love the API to allow freeform text in the history log, but
alas it doesn't yet. I think there's a feature request for that somewhere.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-15337679
.

Just a short note that right now timestamps are weird.

See HabitRPG/habitica#716

Done in b595aca.

Released in v0.09.

Make that v0.10 with a slight bugfix. :)

Example output:

pjf@qapla:~$ hrpg history floss

 = Floss Teeth =

[2013-03-20 01:42]    1.00
[2013-03-23 01:23]    1.12
[2013-03-27 03:58]    1.07

It's also worth noting here that history doesn't always let you see which way things have moved. Habits will decay back towards level zero with inactivity, so a movement towards zero does not necessarily mean data has been entered for that.

Right now upstream doesn't support recording actual history, only levels over time.

Still better than the charts. Thank you!
On Mar 27, 2013 7:00 AM, "Paul Fenwick" notifications@github.com wrote:

It's also worth noting here that history doesn't always let you see which
way things have moved. Habits will decay back towards level zero with
inactivity, so a movement towards zero does not necessarily mean data has
been entered for that.

Right now upstream doesn't support recording actual history, only
levels over time.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-15505684
.