Tutorials

Project Setup: Daily Water Consumption Tracker

After reading the accompanying article here, follow the steps below to create your Daily Water Consumption Tracker.

Files Setup

  1. Download and install AutoTools and Material Design Tasker Plugin
  2. Download the zip file here containing pngs and a Tasker XML.
  3. Now extract into the main directory of the device.  Note: the file path for the folder shall begin the following: “/storage/emulated/0/Daily Water Consumption Tracker/...”.  If it doesn’t, make the change.
  4. Open Tasker and import the project by long pressing the bottom menu and selecting import.  Right away you will see red triangles everywhere, see figures 1, 2, and 3.
  5. Long press the project tab (currently a large red triangle at the bottom of your screen) and locate “Daily Water Consumption Tracker Icon Light Blue.png”, see figure 4.
  6. Open the “Open Daily Water Consumption Tracker” task and press on the red triangle at the bottom right corner of the screen to change the icon to the same as the one in step 4, see figure 5.  They shall resemble figure 6.
  7. Open the task associated with the “Midnight Quantity Reset” profile and run it to reset the global variables.  Slide over to the “VARS” tab to make sure the variables match figure 7.
  8. Depending on what functionality you want in the app, skip ahead to the appropriate section(s) below.

Task Shortcut




For this section, you will be able to open and add water quantities to your own Daily Water Consumption Tracker Project.

Minimum Required apps:

  1. None other than the above aforementioned.

Steps:

  1. Add a task shortcut to your homescreen. NOTE: If you are running the stock android launcher, you may see the andy the android icon instead of the one selected above.  If you have a custom launcher (I use Nova Launcher), change the icon to the appropriate file.  An alternative is to add a widget instead of a shortcut, that way the icon will show.
  2. Then tap it to open the list and add away!
  3. Additionally you could add it to one of Tasker’s Notification Action Buttons.

Reminder Notification and Tile

For this section, you will extend the functionality by having a reminder notification twice per day.  You will also gain the ability to create a notification tile, similar to this, to open your own Daily Water Consumption Tracker Project.

Minimum Required apps:

  1. AutoNotification

Steps:

  1. Turn on profile:
    1. “Open Daily Water Consumption Tracker From Tile”
    2. “Daily Water Consumption Tracker Reminder Notification”
  2. Open Task “Daily Water Consumption Tracker Tile” and enable the two action by long pressing to select and pressing the enable button.
  3. Add a quick settings tile. Note: make sure that the AutoNotification Tile number in the task matches the same tile number that you added in the quick settings menu, see figures 8 and 9.
  4. Then run the Task: “Daily Water Consumption Tracker Tile” to map the tile to the task, see figure 10.
  5. Now you have a reminder twice a day to drink water! (see figures 11 and 12)
  6. You also now have a handy quick settings tile to access the tracker.

PC Integration

For this section, you will extend the functionality by being able to add quantities of water from your PC.  Using Join commands, you can add quantities of water to you own Daily Water Consumption Tracker Project.

Minimum Required apps:

  1. Join for Android
  2. Join for Chrome

Steps:

  1. Turn on profile:
    1. “Add Quantity From PC”
  2. Open Task “Add Water Quantity” and enable all actions (if not already done so) except for action 20 and 21 (if already enabled due to other sections of this article, leave alone) by long pressing to select and pressing the enable button.
  3. Setup names for each of your devices in the android app.
  4. Go to the Join app in Chrome > Click the settings cog > Shortcuts tab
  5. Under Favorite Command, select your mobile device and “Send a Tasker Command” so that it reads: “Do this on [DEVICE NAME]: Send a Tasker command with this text [leave blank].”
  6. Select “Configure” button to configure a keyboard shortcut for: “Perform Favorite Command”, see figure 13 for final configuration example.
  7. Then on your PC execute the “perform Favorite Command” keyboard shortcut open the command dialog.
  8. Type in “add water=:=[ANY NUMBER]” and press enter, see figure 14.
  9. Join will now send a message back to your PC stating how much water you added along with the new total! (see figure 15)

Android Wear Integration




For this section, you will extend the functionality by being able to add quantities of water from your PC.  Using Join commands, you can add quantities of water to you own Daily Water Consumption Tracker Project.

Minimum Required apps:

  1. AutoWear
  2. WatchMaker

Steps:

  1. Turn on profile:
    1. “Add Quantity From Watch”
  2. Open Profile “Midnight Quantity Reset” and enable action 5 by long pressing to select and pressing the enable button.
  3. Now open Task “Add Water Quantity” and enable all actions (if not already done so) except for action 20 (if already enabled due to other sections of this article, leave alone) by long pressing to select and pressing the enable button.
  4. Enable all actions in Task “AutoWear Daily Water Consumption Tracker List Screen” by long pressing to select and pressing the enable button.
  5. Enable action number 24 in Task “Open Daily Water Consumption Tracker” by long pressing to select and pressing the enable button.
  6. Then set up a custom watchface using WatchMaker that uses the variable “{tDaily_Water_Consumption_Total}”, see figure 16.  More assistance on WatchMaker tutorials here.
  7. Now in WatchMaker, add an image layer (using one of the icons downloaded from the zip file above) and map it’s tap action to the Tasker task “AutoWear Daily Water Consumption Tracker List Screen”, see figure 17.
  8. Then tap the icon and watch AutoWear display a list screen containing typical (Imperial units) quantities of water.  You can tap as many amounts as you would like and AutoWear will add to the total each time! (see figure 18)
  9. Swipe right to hide the list and then look at your mobile device to see a custom flash with the new total!

Homescreen Integration

For this section, you will extend the functionality to be able to see the daily total on your homescreen.  Furthermore you will be able to add water using a homescreen shortcut for you own Daily Water Consumption Tracker Project.

Minimum Required apps:

  1. AutoLocation
  2. KLWP

Steps:

  1. Open Profile “Midnight Quantity Reset” and enable action 4 by long pressing to select and pressing the enable button.
  2. Enable action number 23 in Task “Open Daily Water Consumption Tracker” by long pressing to select and pressing the enable button.
  3. Now open Task “Add Water Quantity” and enable all actions (if not already done so) except for action 21 (if already enabled due to other sections of this article, leave alone) by long pressing to select and pressing the enable button.
  4. Create, name, and set a custom homescreen in KLWP.  Then set your wallpaper to KLWP.
  5. Make sure you add a text that has a value of “$br(tasker, daily_water_consumption_total)$ oz”, see figure 18.  That way your KLWP text will read the Tasker variable for the total water quantity.
  6. Then using one of the pngs provided in the above zip file, add an image item with touch action of a Tasker shortcut “Open Daily Water Consumption Tracker” task, see figure 19.
  7. Now your homescreen will reflect the total water consumed every time you add water quantities from any of the above methods! (see figure 20)
  8. Also, every time you want to add water quickly, tap the homescreen image.
  9. Then add as many water quantities as you like!
  10. Optional: Using AutoLocation, create a geofence around a particular location and an accompanying profile to trigger once inside.  The task shall use a KLWP action “Load Preset” with your custom KLWP preset created in step 4.  The logic shall be in a similar fashion to this article.

Daily Water Consumption Tracker Project Conclusion

Check out my article here about how I created and use my personal Daily Water Consumption Tracker.  Now that you are able to customize your project, do not be afraid to make this project your own.  Change the colors to what ever you want.  To do this, change the “variable set” actions that contain “%primarycolor”, “%accentcolor”, “%primarycolordark” to different hex values.  Additionally you can change the reminder times in the Reminder Notification profile.  If you need further assistance, please feel free to reach out to me on hangouts!  I would be glad to help.  Now enjoy tracking your water consumption!

What did you think???