Giter VIP home page Giter VIP logo

journeytodayoneimporter's Introduction

Journey to Day One Importer

NOTICE: I am not affiliated with the companies behind these applications. I created this script for my own use. Use at your own discretion.

A command-line tool to migrate your Journey entries to Day One.

Features:

  • Includes photos
  • Includes tags
  • Includes geocoordinates
  • Includes timestamp (timezone aware)
  • Imported text looks as expected (no formatting/encoding issues)

Prerequisites:

  1. Clone the repository and execute pip3 install -r requirements.txt.
  2. Make sure the dayone2 executable is on your PATH (select DayOne > Install Command Line Tools...).
  3. Export your journal from Journey as a .zip.
  4. Extract the resulting .zip file into a directory.

With these instructions complete, you should have a source_directory with all of your exported Journey entries. Given this and a target_journal_name, run the following from a Terminal window:

$ python3 j2d.py <target_journal_name> <source_directory>

Example output:

WARNING: coordinates are invalid: 1.7976931348623157e+308 1.7976931348623157e+308
[1/508] Added new: 1532920577071-bxzfmf02n8r96vb5 -> 151FDBF1CB1B4F658C261131AD7296D4: 66 words, 8 tags, 6 photos
[2/508] Added new: 1590644431033-3b8kodxeyhfwatze -> 5766077480B3478AA5744906752B7E9A: 9 words
[3/508] Added new: 1549735900606-555qqtpidpf8zjne -> 661865B88EC441599645B1FBCB3FD5C8: 12 words, 2 tags
[4/508] Added new: 1525981267299-j6iz9i1ajnkg4ofw -> 5937EA89A1794410975E8C22EEB65EFD: 10 words, 3 tags
[5/508] Added new: 1513562853667-3fc7acbe265c58d0 -> 9D743D63A097476694BA297FA4FFA80D: 12 words, 4 tags, 2 photos
[6/508] Added new: 1590649634456-q8d3kalowuq19lx7 -> A395946A089B4D3DA4D33553E09D73C5: 4 tags, 1 photos
[7/508] Added new: 1515011399977-3fdb529186e4fc32 -> 6717268DB7C24B678A7E8BFB0F2A9615: 29 words, 3 tags
[8/508] Added new: 1529389558714-1r4s6scsr96di5yq -> 913F75A728154FCBA1D8D50DC94B5E98: 25 words, 6 tags, 3 photos
[9/508] Added new: 1538105531793-846iyuspmeh91svn -> BC1F204F2749437A8E6AC82A6869A02D: 2 words, 4 tags, 3 photos
...

508 succeeded, 0 failed, 1 skipped

journeytodayoneimporter's People

Contributors

camflint avatar komarserjio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

journeytodayoneimporter's Issues

Issue when importing data

Hi @camflint,

First place I wanted to thank you for the effort put in this tool, since Journey and Day One don't put it very easy to export files to other apps.

I have followed the steps, if I recall correctly, but the result gives me consistently these errors:

''WARNING: coordinates are invalid: 1.7976931348623157e+308 1.7976931348623157e+308''

''Use help command for more information on how use use the dayone CLI.
ERROR:
Error: Invalid value(s) for option --coordinate: 40.925469299501174''.

The result: 37 succeeded, 379 failed, 1 skipped.

The zip is has been extracted from Mac Journey 4.1.21, last version.
¿Do you know what may have gone wrong?

Thanks in advance!

Not sure where I have the command wrong. assuming that

Use help command for more information on how use use the dayone CLI.
ERROR:
Error: Invalid value(s) for option -j, --journal: export

Assuming I am using the correct command: $ python3 j2d.py export /Users/name/Documents/journey-multiple-1674616157487

KeyError: 'type'

Hi there,

I'm trying to use your neat tool, but ran into an error. I'm not familiar with python, but was able to clone the repo & install required modules. Then I got the following error when running python3 j2d.py Journal ../../journey:

Traceback (most recent call last):
  File "/JourneyToDayOneImporter/j2d.py", line 270, in <module>
    i.run()
  File "/JourneyToDayOneImporter/j2d.py", line 84, in run
    self.print_result(imported_entries)
  File "/JourneyToDayOneImporter/j2d.py", line 252, in print_result
    succeeded_count = len(list(imported_entries))
  File "/JourneyToDayOneImporter/j2d.py", line 194, in import_entries
    flat_entries = list(entries)
  File "/JourneyToDayOneImporter/j2d.py", line 108, in validate_journey_entries
    for raw in raw_entries:
  File "/JourneyToDayOneImporter/j2d.py", line 88, in load_journey_entries
    yield self.load_entry(file)
  File "/JourneyToDayOneImporter/j2d.py", line 99, in load_entry
    entry = self.extract_entry_from_body(body, file)
  File "/JourneyToDayOneImporter/j2d.py", line 105, in extract_entry_from_body
    type=body['type'], timezone=body['timezone'], path=path)
KeyError: 'type'

Is there anything I can do to make it work or is it a bug?

Thanks a lot for your help!
Miro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.