This is an updated version of this app. I rewrote the user interface and introduced new features (see changelog). This is the only update in my repository; upcoming releases will again be in AlphaX2's repo.
Captain's Log is a simple diary application for keeping track of your thoughts.
Features:
Note: Captain's Log can hide your entries behind a protection code but it's nothing special. Your data is neither encrypted nor otherwise protected against a bad guy with physical access to your device.
Captain's Log is written in pure Python and QML. It is free software released under the GNU GPL v3+. The source code of this version is available here: https://github.com/ichthyosaurus/Captains-Log-Sailfish The original sources are available here: https://github.com/AlphaX2/Captains-Log-Sailfish
(All texts used in the screenshots are random quotes from "Walden" by H. D. Thoreau.)
Attachment | Size | Date |
---|---|---|
![]() | 136.46 KB | 18/06/2020 - 15:02 |
![]() | 136.59 KB | 18/06/2020 - 16:02 |
![]() | 133.03 KB | 12/11/2020 - 14:39 |
Changes in version 2 (and up) by ichthyosaurus. Upcoming releases will be in the upstream repository again.
* version 2.0.1-1 (2020-11-12):
- fixed a serious bug where entries could not be opened or edited
* version 2.0.0-2 (2020-06-18):
- hotfix: fixed a typo in the German translation
* version 2.0.0-1 (2020-06-18):
- completely overhauled the user interface
- added the GPL where necessary
- added support for automated database schema upgrades
- changed the database layout (database updates itself)
> added support for time zones
> added field for possible future feature: audio notes
> changed internal date format from "dd.MM.yyyy | hh:mm" to (standard) "yyyy-MM-dd hh:mm:ss"
> save seconds
> renamed 'favorites' to 'bookmarks' (an important entry is not necessarily my favorite)
- added a new cover page
- simplified reloading, improving performance (changes no longer require a full reload)
- added new mood "not okay": "okay" is slightly positive, "not okay" is slightly negative; there is no "neutral" mood (database updates itself)
- refactored export features
> made exports translatable
> added new export options: plain markdown and markdown for pandoc
- updated the German translation to use polite "Sie"
- replaced app icon by new, more "sailfishy" variant
- implemented quickly changing the mood of an entry in the overview list
- implemented searching for entries between two dates
Comments
ichthyosaurus
Thu, 2020/11/12 - 14:43
Permalink
@everyone who could not edit entries: please install the update to 2.0.1!
DrYak
Thu, 2020/11/12 - 01:31
Permalink
Hello,
Also a Captain's Log v2.0.0-2 on an up to date OS 3.4.0.24.
And I, too, am getting nothing when I select the "edit" in the long press menu. The only message I get each time I attempt is:
Any idea?
(The few couple of entries I have in the SQlite3 database, all have `modify_tz` set to `NULL`)
ichthyosaurus
Thu, 2020/11/12 - 14:42
Permalink
The few couple of entries I have in the SQlite3 database, all have `modify_tz` set to `NULL`
Thank you for this hint! This was exactly the problem. The new update should no longer choke on cases like this.
I couldn't reproduce the problem up until now, so I didn't know you could not even open an entry! With the new update you can (again) click on an entry to read it in full and see more details.
DrYak
Fri, 2020/11/13 - 01:12
Permalink
Thanks!
Confirmed to work, now.
Brummkreisel
Mon, 2020/10/19 - 18:32
Permalink
Also unable to edit created entries.
It's simply not possible...
ichthyosaurus
Mon, 2020/10/19 - 18:47
Permalink
Did you update to SFOS 3.4? Then please see my comment below: https://openrepos.net/comment/35003#comment-35003
If not: can you elaborate? You can edit entries by long-pressing and selecting "edit", or by by tapping an entry and selecting "edit" from the top pulley menu. Does one of the options work? (Do you swipe right to save?)
Please run "sailfish-qml harbour-captains-log" in terminal, try to edit and save an entry, and check the output. If everything is fine, it should look like this:
[...]
[D] loadModel:126 - loading entries...
database schema is up-to-date (version: 5)
[D] :206 - diary.py loaded
[D] :103 - Updated entry in database
Please post here if it looks differently.
Brummkreisel
Mon, 2020/10/26 - 20:17
Permalink
Hi,
I've installed 3.4.0.24. As you said I run
devel-su pkcon install python3-sqlite
but received:
Adding entries works fine. After long press the options edit/delete are appearing.
Delete works, but when I choose edit, the options are disappearing and that's it.
Running sailfish-qml harbour-captains-log opens a white blank screen and gives me:
Please advise how this can be solved.
ichthyosaurus
Mon, 2020/10/26 - 21:46
Permalink
So we can rule out sqlite, at least...
Looks like you accidentally added a whitespace between "harbour" and "captains-log". There has to be a dash.
Please run this again. It is the same command that's executed when you tap the icon - so if it does not start, there's almost certainly a problem on the command line. Then try to edit an entry. Then check the output.
I also checked the package and all files are fine, so that's not the problem either.
Another thing you can try:
- make a backup copy of the database (folder /home/nemo/.local/share/harbour-captains-log)
- uninstall the app
- make sure no files are left behind: check if /usr/share/harbour-captains-log is gone, or delete it (you can use File Browser's root mode for this, but be careful)
- install the app again
- check if it works now
This is more effort, so you might want to try running it from the terminal before.
Brummkreisel
Sun, 2020/11/01 - 20:31
Permalink
You're right, I had a typo... :-(
The correct command gives me:
I also tried the second way as described. The only file what was left in the folder sailfish-qml harbour-captains-log was instance.lock (with 0 Bytes) in
After a new intallation I was able to edit an entry one time.
EDIT 20/11/01: After the last reboot, everything works as expected... and I have no idea, how this can be. I didn't change anything. Thank you anyway for looking into my matter.
ichthyosaurus
Fri, 2020/11/06 - 14:41
Permalink
Well, I'm really happy the problem fixed itself :)!
(The error message hints at a problem with the database backend, which in turn might have been a problem with Python. We'll never know...)
lumen
Thu, 2020/10/01 - 09:28
Permalink
Hello, thanks for nice app! The update 3.4.0.22 made my old notes disappear. Any ideas how to locate them back?
ichthyosaurus
Thu, 2020/10/01 - 20:38
Permalink
I just saw the latest update to gPodder and there's the solution to our problem: https://openrepos.net/comment/34995#comment-34995
Quote:
It seems Jolla made a booboo and forgot to install python3-sqlite in the update which not only breaks our stuff but also theirs, the fix is simple - devel-su pkcon install python3-sqlite
To try and prevent this from happening we'll also put out a release with python3-sqlite added as an explicit dependency soon.
Annoyingly, the Sailfish SDK is currently broken on my system due to complicated stuff with Virtualbox, so I won't be able to release an update soon. Running "devel-su pkcon install python3-sqlite" should fix it, though!
ichthyosaurus
Thu, 2020/10/01 - 20:39
Permalink
Oh no!They are (were) saved at /home/nemo/.local/share/harbour-captains-log/logbuch.db (plus the version file). Is it possible that there's a new home directory and not all files are moved?Also, it uses Python to access the database. Can you check if this prints the correct home path in Python:import osprint(os.getenv("HOME"))achilles07
Mon, 2020/07/06 - 18:34
Permalink
unable to edit created items. can you please check?
ichthyosaurus
Fri, 2020/07/10 - 22:25
Permalink
Sorry for the delay.
I'm using this version almost daily without any problems. Editing works fine. Can you explain how and when the error appears?