Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.7 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.7 KB

Journal Sync

A brief script to sync a journal from Monica to plain-text (e.g., Zim wiki or Obsidian.md)

Currently functional

  • Connect to Monica API
  • Download journal (at least, one page worth)
  • Reformat journal JSON into usable Python
  • Checking if folder structure is already present

Next steps

  • Add Obsidian capability
    • Definitely need a way to represent Obsidian's structure so files are not overwritten (maybe there's a module?)
    • Add push ability
    • Allow custom heads/tags
    • Store relevant information in front-matter in files
  • Create an actual flow for syncing rather than working at it haphazardly
  • Create skeleton config.yml file (and maybe load if populated)
  • Make folder structure if it doesn't exist (per entry)
  • Create (touch) Zim file for entry
  • Add journal entries to each text file
    • Have a way of creating entries/files in a reproducible way (to check if they need to be added to or rewritten/created)

The current dilemma is that Zim (specifically Zim) will only have one file per day, while Monica may have an unlimited number. This presents a problem in determining if a file in Zim has all the entries for a particular day in Monica. Ideas:

  • Overwrite the Zim file with the concatenated data from Monica (simple)
  • Have Monica entries in a Zim file appear after a certain "tag" (little more complicated)
    • This is likely the way it'll go

Ideal flow

This is how the program is supposed to work, ideally:

But for right now, after getting the Monica data, it creates a Zim page and just writes to the file, regardless of existing contents.