We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-06-04 01:12:01 +0200

How to interact with calendar database

I'm working on a script/program that tries to imports calendar events into the calendar database. Since it is a sqlite-db it seems to be straight forward to add/modify/remove entries in the database as user root.

However if I add an alarm it is not fired by the phone. The alarm is shown in the official Jolla calendar app however closing the calendar app or even restarting the phone does not give me alarms for those events?

Is there some documentation how to register those alarms in the notification system? How does the calendar app cause the alarms to be registered?

Two side questions: 1. Why does the calender app ignore alarms that do not match the suggested times? I.e. a alarm 10 minutes before the event seems to be ignored, if the interval is 0, 5, or 15 minutes it is recognized.
2. There is a file db_changed in the same directory as the calendar db (/home/nemo/.local/share/priviledged/calendar/mkcal/). I see that it is an empty file that is touched when the calendar app makes some changes. What is it good for? Should I touch this file as well from my script?

I wish there were a proper documentation of the system services (e.g. dbus interfaces) and also how to interact with the data managed by the 'official' Jolla apps.

How to interact with calendar database

I'm working on a script/program that tries to imports calendar events into the calendar database. Since it is a sqlite-db it seems to be straight forward to add/modify/remove entries in the database as user root.

However if I add an alarm it is not fired by the phone. The alarm is shown in the official Jolla calendar app however closing the calendar app or even restarting the phone does not give me alarms for those events?

Is there some documentation how to register those alarms in the notification system? How does the calendar app cause the alarms to be registered?

Two side questions: 1. Why does the calender app ignore alarms that do not match the suggested times? I.e. a alarm 10 minutes before the event seems to be ignored, if the interval is 0, 5, or 15 minutes it is recognized.
2. There is a file db_changed in the same directory as the calendar db (/home/nemo/.local/share/priviledged/calendar/mkcal/). I see that it is an empty file that is touched when the calendar app makes some changes. What is it good for? Should I touch this file as well from my script?

I wish there were a proper documentation of the system services (e.g. dbus interfaces) and also how to interact with the data managed by the 'official' Jolla apps.