From 4549abb852f6b91f4d02506ae6ba6a1fdf447ff3 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Fri, 30 Apr 2021 14:06:29 +0200 Subject: [PATCH] Auto: misc. --- promnesia-example-config.md | 8 ++++++++ promnesia-howto.md | 8 +++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 promnesia-example-config.md diff --git a/promnesia-example-config.md b/promnesia-example-config.md new file mode 100644 index 000000000..f75d5b7a4 --- /dev/null +++ b/promnesia-example-config.md @@ -0,0 +1,8 @@ +# promnesia example config + +- an [[example]] + - [[barebones]] https://github.com/karlicoss/promnesia/blob/master/src/promnesia/misc/config_example.py + - [[annotated]] https://github.com/karlicoss/promnesia/blob/master/doc/config.py + - [[flancian]] pending + - [[go]] [[annotated]] + diff --git a/promnesia-howto.md b/promnesia-howto.md index 50f7f2dc4..ea2feb487 100644 --- a/promnesia-howto.md +++ b/promnesia-howto.md @@ -18,16 +18,18 @@ I would myself qualify this a bit and say that Promnesia is a tool with several - On Windows: unsure. I have a Windows install so I might give it a try soon and report back; [[let me know]] if you are interested and I'll prioritize this. - Configure the local process. - `promnesia config` to seed a config in `.config/promnesia/config.py` - - Edit to your liking (more details and a minimum example to come). + - Edit to your liking. I started from [[promnesia example config]]. - Start the local process. - `promnesia serve` - Configure the periodic indexer. - Add a [[cronjob]] that runs `promnesia index`. I run mine every X minutes. - Enjoy! -Thoughts / asides: +## Thoughts / asides: - It might be good to just make optional dependencies default, so that `pip3 install --user promnesia` suffices? -- I got this exception when trying to run promnesia after updating my config, unsure what's wrong as of yet. +- I got this exception when trying to run promnesia after updating my config: - `AssertionError: /home/flancian/.local/share/promnesia/promnesia.sqlite` + - It was because I had forgotten to run the indexer :) +- Merging auto and guess in the config does sound like a good idea (as per the comment in the [[promnesia example config]]h.