I like Habitica a lot. I find that it’s good at directing my attention and motivating me to do things that are aligned with my goals1. I also use Rescue Time, it’s job is to tell me what I really do with my life. It stops me lying to myself about what my days look like.
I’ve tried manually inputting habits in the past. If I worked well for an hour I’d give myself a point. But if I was really working I’d forget to put in the point, and if I was actually just barely working I’d remember. Generally reinforcing the wrong habit.
Enough intro, onto the nerd stuff!
IFTTT and Zapier both have a connection to Rescue Time. They both have a way of emitting cURL commands too. IFTTT through the Maker channel and Zapier through webhooks.
That means that if I do something in real life then I can be rewarded or punished in Habitica land.
How do I unlock this sorcery?
I’ll do this for Zapier because it’s easier to test, but the same holds for IFTTT3. You can also swap out Rescue Time for any other trigger too. So if you want to get a reward when you go into the gym’s geofence then you can.
Obvious stuff: get a Zapier/IFTTT and Habitica account.
You are going to need to get your Habitica API details; they live here. (The User ID and API Token.)
Once you’ve got your ingredients all ready then you can get going!
You’re all done in Rescue Time now.
Go to Zapier and make a new Zap.
Set it to be triggered by your goal.
Now for the voodoo part. There is a good page on the Habitica wiki that explains everything I’m about to say. I was having a severe stupid when I was reading it, so in case my words are useful, then here they are.
The call to the API is a POST like this:
The bit in red is the name of the habit. (Multiple triggers can aim at the same habit.) The green bit is either
down depending on where you want your score to go.
That goes into the URL field.
This is the part that I spent all the time on. Your authentication details go in the header, not the body. That’s right at the end of section 5. Make 2 new key, value pairs with your details.
That’s it! don’t change anything else and you’ll be just fine.
Test it in step 6, name it in step 7 and away you go!
When you test it you should see a new Habitica habit show up. Then if you test it again it’ll go green. (Unless you’re a punisher and you picked
And that is that.
If you have any clever ideas for other things to join up then let me know. I’m a total sucker for this stuff.
i.e. it gets me to do things that the good version of myself thinks are useful. The things that–given some time to think about it and plan–I would want to be doing. ↩
Rescue Time for Linux is a process that you need to start manually. I’m sure that’s the Linux way, but it’s super annoying. “Just make a startup script” sure, one day. ↩
Now that I’ve got it working, I’d actually make it in IFTTT, Zapier is pretty crippled unless you pay real money for it. ↩
You can put other activities into that category if you want them measured on the same timer if you like. ↩