Captain's Log (updated)

Rating: 
4.833335
Your rating: None Average: 4.8 (12 votes)

Captain's Log is a simple diary application for keeping track of your thoughts.

Features:

  • lockscreen to restrict access
  • bookmark entries
  • add hashtags
  • browse your entries by different filters
  • export your data to different file formats

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 free software released under the GNU GPL v3+. The source code of this version is available here: https://github.com/ichthyosaurus/harbour-captains-log Old sources (versions before v2.0.0) are available here: https://github.com/AlphaX2/Captains-Log-Sailfish

This is the continuation of the old Captain's Log by AlphaX2.

(All texts used in the screenshots are random quotes from "Walden" by H. D. Thoreau.)

Screenshots: 

Keywords:

Application versions: 
AttachmentSizeDate
File harbour-captains-log-2.0.0-1.noarch.rpm136.46 KB18/06/2020 - 15:02
File harbour-captains-log-2.0.0-2.noarch.rpm136.59 KB18/06/2020 - 16:02
File harbour-captains-log-2.0.1-0.noarch.rpm133.03 KB12/11/2020 - 14:39
File harbour-captains-log-2.1.0-1.aarch64.rpm132.38 KB30/03/2022 - 02:34
File harbour-captains-log-2.1.0-1.i486.rpm133 KB30/03/2022 - 02:34
File harbour-captains-log-2.1.0-1.armv7hl.rpm131.61 KB30/03/2022 - 02:34
File harbour-captains-log-3.0.0-1.aarch64.rpm237.71 KB03/06/2023 - 03:14
File harbour-captains-log-3.0.0-1.armv7hl.rpm227.94 KB03/06/2023 - 03:14
File harbour-captains-log-3.0.0-1.i486.rpm245.77 KB03/06/2023 - 03:14
File harbour-captains-log-3.1.0-1.aarch64.rpm246.32 KB12/06/2023 - 02:04
File harbour-captains-log-3.1.0-1.armv7hl.rpm236.79 KB12/06/2023 - 02:04
File harbour-captains-log-3.1.0-1.i486.rpm254.52 KB12/06/2023 - 02:04
File harbour-captains-log-4.0.0-1.aarch64.rpm284.85 KB23/06/2023 - 22:32
File harbour-captains-log-4.0.0-1.armv7hl.rpm274.2 KB23/06/2023 - 22:32
File harbour-captains-log-4.0.0-1.i486.rpm294.94 KB23/06/2023 - 22:32
Changelog: 

version 4.0.0-1: Jun 23 2023

  • updated translations: Swedish, Italian, German
  • refreshed the app icon (based on a contribution by JSEHV)
  • refreshed the cover background
  • completely refactored exporting
  • > the layout in all formats has been improved
  • > a new database backup option has been added to export a zip archive
  • > translations have been improved
  • > new formats can be added easily
  • > added descriptions for all export formats
  • > no files will be overwritten when exporting (could happen before)
  • completely refactored database handling and migrations
  • > the database is now stored in a single file
  • > backups will be automatically created every week
  • > manual backups can be created from the settings page
  • > failed database updates should never lead to data loss and old databases (before any database update) are kept as backups
  • added support for exporting only selected entries
  • > select entries from the export page
  • > export search results directly
  • improved user experience when writing entries
  • > automatically scroll the next field into view
  • > make tag suggestions more visible
  • > improve adding new tags
  • improved error feedback and notifications
  • improved database stability and error detection
  • fixed timestamps with invalid seconds fields
  • fixed a string that was causing issues with translations and had to be re-translated all the time (sorry for the hassle, translators)
  • added support for running the Python backend as a stand-alone script
  • added an in-app changelog
  • plus many small quality-of-life changes and many internal changes
  • note: this release changes the database in a non-backwards-compatible way, so that downgrading will not be possible

version 3.1.0-1: Jun 12 2023

  • new translation: Norwegian Bokmål
  • urgent: fixed initialising a new database
  • updated translations: Swedish, German, English
  • added option to view search results in full instead of only previews
  • added option to add new entries from search results page

version 3.0.0-1: Jun 03 2023

  • translations: moved to Weblate, updated German
  • added remorse timer when discarding a new / edited entry
  • added support for addenda, i.e. entries added at a later date
  • added improved scroll bar for scrolling to specific dates
  • added proper support for tags (including auto-completion)
  • added new, improved search page
  • > search using multiple criteria at once
  • > search for mood ranges and use wildcards for complex queries
  • > search for tags
  • > search for similar matches, e.g. match “ö” when searching for plain “o”
  • > improved performance
  • added Weblate for translations (cf. About page)
  • added notifications in case of errors in the Python backend (should never happen)
  • fixed swipe direction hint in German translation
  • fixed cover actions while the app is locked
  • fixed editing an entry from the search results page
  • fixed exporting to CSV
  • plus many small quality-of-life changes and many internal changes
  • note: this release changes the database in a non-backwards-compatible way, so that downgrading will not be possible

version 2.1.0-1: Mar 24 2022

  • translations: added Chinese, updated Swedish
  • added support for My Backup
  • added a Sailjail profile (only permission is "Documents" for exporting)
  • fixed some highlight colors
  • fixed data being saved outside of the new sandbox
  • fixed settings being saved in the wrong location (automatically migrated)
  • changed export output directory from "/home/" to "/home//Documents"
  • updated About page (now using Opal.About)
  • reduced overall package size

version 2.0.1-1: Nov 12 2020

  • fixed a serious bug where entries could not be opened or edited

version 2.0.0-2: Jun 18 2020

  • hotfix: fixed a typo in the German translation

version 2.0.0-1: Jun 18 2020

  • 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

version 1.0-2: Apr 19 2020

  • added Swedish translation

version 1.0-1: Apr 15 2020

  • initial release

 

Comments

Seven_of_nine's picture

Very nice app, thank you @ichtyosaurus !

ichthyosaurus's picture

Glad you like it :)! Be sure to install the latest update here from Openrepos because it seems like it doesn't appear properly in Jolla's Harbour store.

silta's picture

Hi, I can export my data (diary). Is it possible to import them in a new installation of Captain's Log?
Thanks in advance, silta.

ichthyosaurus's picture

Exporting is currently more targeted at printing.

Since version 4.0.0:

If you want to backup your diary, you can simply copy the database and put it back later: go to “Settings → Database backup” to create a copy in /home/defaultuser/.local/share/harbour-captains-log/harbour-captains-log/backups/. Or you can export a copy as zip archive: go to “Settings → Export → File type → Backup”.

Before version 4.0.0:

If you want to backup your diary, you can simply copy the database and put it back later. Copy these two files (both! - or the whole folder):

  • /home/defaultuser/.local/share/harbour-captains-log/harbour-captains-log/logbook.db
  • /home/defaultuser/.local/share/harbour-captains-log/harbour-captains-log/schema_version

You may have to replace "defaultuser" by "nemo". When using File Browser, you can tap the burger menu icon and select "edit path", then enter the path.

ichthyosaurus's picture

@everyone who could not edit entries: please install the update to 2.0.1!

DrYak's picture

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:

[W] unknown:74 - file:///usr/share/harbour-captains-log/qml/components/EntryElement.qml:74: ReferenceError: modify_tz is not defined

Any idea?

(The few couple of entries I have in the SQlite3 database, all have `modify_tz` set to `NULL`)

ichthyosaurus's picture

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's picture

Thanks!

Confirmed to work, now.

Brummkreisel's picture

Also unable to edit created entries.
It's simply not possible...

ichthyosaurus's picture

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's picture

Hi,

I've installed 3.4.0.24. As you said I run

devel-su pkcon install python3-sqlite

but received:

python3-sqlite-3.8.1+git7-1.3.1.jolla.arm7hl is already intalled.

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:

[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Specified Desktop file does not exist "/usr/share/applications/harbour.desktop"
[W] unknown:-1 file:///usr/share/harbour/qml/harbour.qml: File not found

Please advise how this can be solved.

ichthyosaurus's picture

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.

sailfish-qml harbour-captains-log

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's picture

You're right, I had a typo... :-(

The correct command gives me:

[D] unknown:0 - Using Wayland-EGL

[D] unknown:0 - Got library name:  "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"

[D] loadModel:126 - Loading entries...

database schema is up-to-date (version: 5)

[D] :206 - diary.py loaded

[W] unknown:74 - file:///usr/share/harbour-captains-log/qml/components/EntryElement.qml:74: ReferenceError: modify_tz is not defined

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

/run/user/100000/single-instance-locks/usr/bin

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's picture

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's picture

Hello, thanks for nice app! The update 3.4.0.22 made my old notes disappear. Any ideas how to locate them back?

ichthyosaurus's picture

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's picture

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 os

print(os.getenv("HOME"))

achilles07's picture

unable to edit created items. can you please check?

ichthyosaurus's picture

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?