Daily Mood Tracking / Reminders with IFTTT and the Nomie API

I was recently asked if Nomie could automatically prompt a user to track - as he wanted to track his mood throughout the day. While Nomie currently doesn't support push notifications, that got me wondering. Could IFTTT just email me at some point in the day with an email that lets me click how I'm feeling? Sure enough, you can!

Once setup, each time your applet is "triggered" you'll receive the following email:

Here's what you'll need:

  1. Nomie 2 for iOS or Nomie 2 for Android
  2. An IFTTT Account https://ifttt.com
  3. Nomie API Subscription (currently $4.99 a year) https://connect.nomie.io
  4. A Mood Tracker created in Nomie, with a type of Slider and a scale of 1 to 10

Step 1 - Create an Apple. Start with the Date and Time trigger

The select Every Day at...

Select the time you want to be prompted

Step 2 - Select Email for the THAT

Then select Send me an Email

Step 3 - Format your HTML

Using the HTML below you will need to replace each occurrence of {APIKEY} with your actual Nomie API key purchase a subscription here

<!DOCTYPE html>  
<html lang="en">  
<head>  
    <meta charset="UTF-8">
    <title>How you feeling?</title>
</head>  
<body>  
    <div style="text-align:center; padding:20px; font-size:45px; font-family:-apple-system, Roboto, Helvetica, Arial">
        <p>Nomie want's to know...</p>
        <h1 style="margin-top:0px;">How's your mood?</h1>
        <div class="stars">
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=1" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=2" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=3" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=4" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=5" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=5" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=6" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=7" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=8" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=9" style="text-decoration:none">⭐</a>
            <a href="https://api.nomie.io/v2/push/{APIKEY}/action=track/label=Mood/value=10" style="text-decoration:none">⭐</a>
        </div>
    </div>

</body>  
</html>

Once you've added your own API key, copy and paste the HTML into the BODY field of the IFTTT Send me an Email widget.

Save your Applet and wait!

This is a great way to help form the habit of tracking - and is a huge opportunity for a new cloud app. I'll either build it, or some enterprising hacker should.