View Single Post
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#100
Installed alarmed 0.1.8-2 yesterday with great excitement to finally have tweakr profiles automatically switched, but unfortunately it doesn't seem to work, similarly to user skalogre couple of pages back in this thread. Here's my alarm_queue.ini:

Code:
[#00000b54]
cookie: 2900
trigger: 1269844500
flags: 131072
alarm_appid: Rano
alarm_time: 1269562202
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: -1
alarm_tm.tm_min: -1
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
recur_count: -1
action_cnt: 1
recurrence_cnt: 1
action0.flags: 36
action0.exec_command: /opt/alarmed/tweakrprofileswitcher.sh Dyskretny
recurrence_tab0.mask_min: 34359738368
recurrence_tab0.mask_hour: 128
recurrence_tab0.mask_wday: 62
recurrence_tab0.mask_mon: 4095
However, when I manually execute tweakrprofileswitcher.sh via terminal, I get profile changed:

Code:
user@n900:/var/cache/alarmd$ sh /opt/alarmed/tweakrprofileswitcher.sh Dyskretny
method return sender=:1.1 -> dest=:1.511 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.512 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.513 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.514 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.515 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.516 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.517 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.518 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.519 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.520 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.521 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.522 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.523 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.524 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.525 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.526 reply_serial=2
   boolean true
Note sh in the beginning of command - without that it won't work - perhaps that's the missing part in alarm_queue.ini?

Another thing I wanted use alarmed for is hourly synchronisation using SyncEvolution client. SyncEvolution client itself allows to set daily sync schedule, which works OK and it does create following entry in alarm_queue.ini:

Code:
[#00000ade]
cookie: 2782
trigger: 1269625800
title: Synchronization with goosync
flags: 131072
alarm_appid: syncevolution
alarm_time: 1269247710
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: -1
alarm_tm.tm_min: -1
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
recur_count: -1
action_cnt: 1
recurrence_cnt: 1
action0.flags: 2084
action0.exec_command: /opt/syncevolution/sync.py --quiet goosync
recurrence_tab0.mask_min: 1125899906842624
recurrence_tab0.mask_hour: 131072
So following that lead, I've created "custom command" entry in alarmed, typing /opt/syncevolution/sync.py --quiet goosync as that command. Again - it doesn't seem to work either at specified time. :( Here's alarm_queue.ini entry created by alarmed:

Code:
[#00000b6f]
cookie: 2927
trigger: 1269600600
flags: 131072
alarm_appid: GooSync
alarm_time: 1269597000
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: -1
alarm_tm.tm_min: -1
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
recur_count: -1
action_cnt: 1
recurrence_cnt: 1
action0.flags: 36
action0.exec_command: /bin/ash -c '/opt/syncevolution/sync.py --quiet goosync'
recurrence_tab0.mask_min: 1125899906842624
recurrence_tab0.mask_hour: 16777215
However, when I run /bin/ash -c '/opt/syncevolution/sync.py --quiet goosync' manually as user in terminal - it works OK.

All in all, alarmed has an excellent potential to become one of my favourite killer-apps, if it only worked as it should. :) All suggestions welcome, as I'm striving to get both automated profiles and sync finally set on my N900.
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________

Last edited by evad; 2010-03-26 at 10:35. Reason: Typo
 

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