View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#1622
Sorry, I'm not here too often these days. Leave me a private message if you need to get in touch. I get an email from those.

If I understand you correctly you're trying to modify an existing alarm with a script?

You can't. At least not directly. IIRC, you have to get the attributes of the alarm you want to change with its cookie from the timed daemon, change those attributes to your liking, set a new alarm with them and delete the original.

Or are you trying to trigger something when an alarm goes off? If that's the case have a look at this.

I think I have the list of meanings for the actions_struct indices stored somewhere, but couldn't find them on this computer. I'll look for them if you still need them.

Edit: Found the list in my N9 (which came alive after spending 4 hours on the charger)

Edit2: ...aaannnd I just realised it isn't valid anymore because it's for an older version of ProfileMatic

0=Profile 'general' 'meeting' 'silent'
2=ringing percentage
3=Flightmode 0=off 1=on
5=PSM 0=off 1=on
7=Bluetooth 0=off 1=on 2=on and visible
9=Gsm mode 0=dual 1=GSM 2=3G
11=Standbyscreen 0=off 1=on
15='command line on activate'
16='command line on deactivate'
17=Array(list(im_provider))*X
18='Status message'
21=[{[path/to/.desktop]}]
22=[alarm title,seconds,snooze,sound]

Last edited by slarti; 2015-02-22 at 15:41.
 

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