Captain's Log (updated)

Rating: 
4.857145
Your rating: None Average: 4.9 (7 votes)

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:

  • 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 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.)

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
Changelog: 

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'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?