`

Jawbone UP to DayOne

Published: 2014-12-02

Since August I wear a Jawbone UP 24. The app and the ecosystem is great, but I would also like to export a daily log to my Dayone-Journal.

Sadly there is no IFTTT-Channel for DayOne, but the guys from DayOne offer a CLI. So I created a script, which imports text-files into to my Day One Journal.

Maybe you can use it too.

Thanks to Markdown Support in Dayone, your UP Logs will loke like this.

What you need

Important Notice: In this article I use the old Day One App (now called "Day One Classic"). If you're using the newest Day One App (Version 2) you should read this short post on how to use DayOne CLI with DayOne 2.

What you have to do

  • Grab the DayOne CLI and install it.
  • Set up Dropbox and Jawbone UP IFTTT channels.
  • Install the following IFTTT recipe and choose a path to store the logs. (This tutorial follows the default path)

IFTTT Recipe: Daily UP-Log to Dropbox connects up-by-jawbone to dropbox

  • Download my script from this Github Repository. If you like the terminal, you can also git clone https://github.com/stefanzweifel/up-to-dayone.
  • Move the script into your Dropbox folder which was generated by IFTTT (For Example Dropbox/Apps/up-export/up-logs/).
  • Use your UP for a day and check back tomorrow. IFTTT puts files into your Dropbox. Your folder structure should look similar to this:
This is my personal folder structure.

Usage

If you don't use the default folder structure ( Dropbox/Apps/up-export/up-logs/) you can open the file toDayone.sh and modify the variable LOGDIR to your needs. Specify the folder where your logs are stored. Keep in mind that the path is relative to the toDayone.sh file.

If everything is setup correctly you can know execute the script from the terminal with the following command:

sh toDayOne.sh

The script will cd into the directory and extract the entry date by the filename. DayOne does the Markdown Magic™.

But what about automation?

You could automate the execution of the script, but I like it simple (and I don't know how to do it :)).
Personally, I use a simple Alfred Workflow to execute the script.

Update: I recently published a follow up post on how to automate the script with Hazel. You find the post here.

It doesn't work!

Create an issue or contact me by email and we will try to fix it.

Bugs / Contribution

Found a bug? Think the code is bad? Create an issue or pull request and help optimize it.

Questions?

Have a question about this post or anything else?