View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#689
Originally Posted by chemist View Post
My girlfriend asked me about alarm-clock setup as she was interessted what I do with my mobile running around in her flat^^ don't know how easy it would be to alter "on-off" states of alarms depending on where I am?!
To disable ALL alarms you could put in custom command:

Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.time /com/nokia/time com.nokia.time.enable_alarms boolean:"false"
WARNING: this will disable ALL alarms and the fact that they are disabled will NOT show in the UI. Your alarms just won't go off.

To enable them:

Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.time /com/nokia/time com.nokia.time.enable_alarms boolean:"true"
To test in terminal if alarms are enabled or not:

Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.time /com/nokia/time com.nokia.time.alarms_enabled
Ajalkane, FYI:

The events (alarms, calendar etc.) are stored as cookies for the timed daemon and they can be queried and changed via dbus. More information here for example.

I tried doing something in python to enable/disable specific alarms but didn't need it enough to spend too much time on it.
 

The Following User Says Thank You to slarti For This Useful Post: