{"id":22062491,"url":"https://github.com/pmiddend/universum-diary-tools","last_synced_at":"2026-04-29T08:08:12.992Z","repository":{"id":140077665,"uuid":"505075020","full_name":"pmiddend/universum-diary-tools","owner":"pmiddend","description":"This project contains Haskell tools to parse and output statistics for the Universum diary app","archived":false,"fork":false,"pushed_at":"2022-06-19T11:14:40.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T00:51:36.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmiddend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-19T10:17:35.000Z","updated_at":"2022-06-19T10:18:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"a91e2f8b-25e8-4f86-be65-a05f09716612","html_url":"https://github.com/pmiddend/universum-diary-tools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmiddend%2Funiversum-diary-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmiddend%2Funiversum-diary-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmiddend%2Funiversum-diary-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmiddend%2Funiversum-diary-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmiddend","download_url":"https://codeload.github.com/pmiddend/universum-diary-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245143960,"owners_count":20568046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T18:20:30.371Z","updated_at":"2026-04-29T08:08:12.987Z","avatar_url":"https://github.com/pmiddend.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Universum diary tools\n\n[![Haskell CI](https://github.com/pmiddend/universum-diary-tools/actions/workflows/haskell.yml/badge.svg)](https://github.com/pmiddend/universum-diary-tools/actions/workflows/haskell.yml)\n\nThis project contains Haskell tools to parse and output statistics for the now defunct [Universum](https://play.google.com/store/apps/details?id=ru.schustovd.diary\u0026hl=de_CH\u0026gl=CH) diary app.\n\n## Running\n\nThis project is a normal cabal project, so you can just do `cabal run universum-diary-tools` and it will fetch the dependencies and run the main application. It also uses Nix, so `nix develop` will give you a development shell.\n\n## Examples\n\n### Converting your old diary to Markdown and then PDF\n\nWe have the `convert-to-markdown` tool for this purpose. It's easy to use: Create your backup zip file, copy it somewhere, and extract it. You end up with `data.pr` and a `Photo` directory. Then create a directory `output` (via `mkdir output`) and run:\n\n```\ncabal run universum-diary-tools -- --input-file path-to/data.pr convert-to-markdown --output-dir output/\n```\n\nYou will end up with a list of files:\n\n```\noutput/2022.md\noutput/2023.md\noutput/2024.md\noutput/2025.md\n```\n\nEither store these, along with the `Photo` directory, so:\n\n```\noutput/2022.md\noutput/2023.md\noutput/2024.md\noutput/2025.md\noutput/Photo\n```\n\nwhich is just fine, since Markdown will survive as a format, and is human-readable enough anyways. *Or* convert it to a PDF, with a command-line executed inside the `output` directory such as:\n\n```\nfor i in $(seq 2022 2025); do \n  echo \"converting $i.pdf\"; \n  pandoc --pdf-engine=lualatex -i \"$i.md\" -o \"$i.pdf\"; \ndone\n```\n\nNote that you need `lualatex` for this to work, as this has emoji support.\n\n### Outputting Statistics\nSay you made a backup of your Universum notes. This will be a `.zip` file. Extract it, and you get a file called `data.pr` (which is really a json file). This will be the input for all programs contained here.\n\nTo plot your mood over time, averaging over 30 days (it will be a moving average) use this command:\n\n```\ncabal run -- --input-file data.pr plot-mood --output-file mood.svg --average-days 30\n```\n\nTo plot the number of words typed over time, use this command:\n\n```\ncabal run -- --input-file data.pr plot-word-count --output-file word-count.svg --average-days 30\n```\n\nThe output of my word count so far, for example, is:\n\n![Word count graph](./images/word-count.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmiddend%2Funiversum-diary-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmiddend%2Funiversum-diary-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmiddend%2Funiversum-diary-tools/lists"}