I “just” wanted to add a new calendar with a different color but haven’t found an option to do so.
We have the private one and the birthdays. Isn’t it possible to have more than that on the device?
not sure that’s available via the GUI - but I remember adding calendars directly to the sqlite db with sqlite3, so i guess it should still work?
I just added one calendar (SFOS 4.2). So, [Guide] Add multiple calendars + sync using Syncevolution - maemo.org - Talk is still valid.
This should be a feature request. Maybe @vige can move it there?
Thanks for this tip. It seems kind of shocking that there’s still no official way to add new Calendars, but I suppose I should be thankful that it’s at least possible by hacking the database… Although I couldn’t find any documentation on the meaning of the “Flags” field, and especially what the value 151 does
. (Maemo appears to have had a different database layout for the calendar.)
I did it last month and then found problem with backup (the native in settings app) - only entries from the added calendar were in the backup but no entries from the default calendar.
The flags are capabilities of the calendars. They are private values used to serialise the information to the database. The calendars are supposed to be manipulated as C++ objects with mKCal, giving a “sense” to these numerical values. The values are defined in mkcal/src/notebook.cpp, see mkcal/src/notebook.cpp at f53e4ade3debb20e3273df0a6a0b3e4b492ddc29 · sailfishos/mkcal · GitHub
So, for instance, 151 means (0010010111 in binary, reading from right to left):
- can store events, todos and journals,
- is local only,
- is master (a local calendar is always master, since not shared),
- is out of sync (a local calendar is not synced by definition),
- is read / write,
- is visible,
- is stored,
- cannot be shared with a contact.
Many thanks for explaining the meaning of the Flags field.