Notices


Reply
Thread Tools
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#21
OK, per request, cat of alarm_queue.ini before running alarmed
Code:
~ $ cat /var/cache/alarmd/alarm_queue.ini
[config]
snooze: 600

[#00000001]
cookie: 1
trigger: 1268564485
flags: 132288
alarm_appid: ham_updates_status_menu_item
alarm_time: 1230894085
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_secs: 86400
recur_count: -1
action_cnt: 1
action0.flags: 4130
action0.dbus_interface: com.nokia.hildon_update_notifier
action0.dbus_service: com.nokia.hildon_update_notifier
action0.dbus_path: /com/nokia/hildon_update_notifier
action0.dbus_name: check_for_updates

[#0000006b]
cookie: 107
trigger: 1265684340
title: Alarm
message: Tb
icon: qgn_list_hclk_alarm
flags: 7216
alarm_appid: worldclock_alarmd_id
alarm_time: -1
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: 21
alarm_tm.tm_min: 59
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
action_cnt: 2
attr_cnt: 1
action0.flags: 65
action0.label: cloc_bd_alarm_notification_snooze
action1.flags: 1088
action1.label: cloc_bd_stop
attr0.attr_name: textdomain
attr0.attr_type: 3
attr0.attr_data.sval: osso-clock

[#00000128]
cookie: 296
trigger: 1269061200
flags: 131072
alarm_appid: data_reset
alarm_time: 1269061200
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/gprsdataresetter.py
recurrence_tab0.mask_min: 1
recurrence_tab0.mask_hour: 1
recurrence_tab0.mask_mday: 1048576
recurrence_tab0.mask_mon: 4095

[#00000179]
cookie: 377
trigger: 1268527500
flags: 131264
alarm_appid: modest
alarm_time: 900
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_secs: 900
recur_count: -1
action_cnt: 1
action0.flags: 4130
action0.dbus_interface: com.nokia.modest
action0.dbus_service: com.nokia.modest
action0.dbus_path: /com/nokia/modest
action0.dbus_name: SendReceive
and alarmed.py - set a profile switch to "night" profile
Code:
~ $ /opt/alarmed/alarmed.py
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
and alarm_queue.ini after
Code:
~ $ cat /var/cache/alarmd/alarm_queue.ini
[config]
snooze: 600

[#00000001]
cookie: 1
trigger: 1268564485
flags: 132288
alarm_appid: ham_updates_status_menu_item
alarm_time: 1230894085
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_secs: 86400
recur_count: -1
action_cnt: 1
action0.flags: 4130
action0.dbus_interface: com.nokia.hildon_update_notifier
action0.dbus_service: com.nokia.hildon_update_notifier
action0.dbus_path: /com/nokia/hildon_update_notifier
action0.dbus_name: check_for_updates

[#0000006b]
cookie: 107
trigger: 1265684340
title: Alarm
message: Tb
icon: qgn_list_hclk_alarm
flags: 7216
alarm_appid: worldclock_alarmd_id
alarm_time: -1
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: 21
alarm_tm.tm_min: 59
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
action_cnt: 2
attr_cnt: 1
action0.flags: 65
action0.label: cloc_bd_alarm_notification_snooze
action1.flags: 1088
action1.label: cloc_bd_stop
attr0.attr_name: textdomain
attr0.attr_type: 3
attr0.attr_data.sval: osso-clock

[#00000128]
cookie: 296
trigger: 1269061200
flags: 131072
alarm_appid: data_reset
alarm_time: 1269061200
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/gprsdataresetter.py
recurrence_tab0.mask_min: 1
recurrence_tab0.mask_hour: 1
recurrence_tab0.mask_mday: 1048576
recurrence_tab0.mask_mon: 4095

[#00000179]
cookie: 377
trigger: 1268527500
flags: 131264
alarm_appid: modest
alarm_time: 900
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_secs: 900
recur_count: -1
action_cnt: 1
action0.flags: 4130
action0.dbus_interface: com.nokia.modest
action0.dbus_service: com.nokia.modest
action0.dbus_path: /com/nokia/modest
action0.dbus_name: SendReceive

[#0000017a]
cookie: 378
trigger: 1268527200
flags: 131072
alarm_appid: To_Night
alarm_time: 1268527200
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
action_cnt: 1
action0.flags: 36
action0.exec_command: /bin/ash -c '/opt/alarmed/tweakrprofileswitcher.sh Night'
Failed to switch to "Night" profile. Setting a normal alarm works.
__________________
*Consumer*, not a developer! I apologize for any inconvenience.
My script to backup /home and /opt
Samsung Galaxy S Vibrant, Huawei S7, N900(retired), N800(retired)
 

The Following 2 Users Say Thank You to lemmyslender For This Useful Post:
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#22
Went into opt/alarmed and ran tweakrprofileswitcher Night
Code:
/home/opt/alarmed $ /bin/ash tweakrprofileswitcher.sh Night
/home/opt/alarmed $ method return sender=:1.1 -> dest=:1.194 reply_serial=2
   boolean true
It paused there for a couple minutes until I hit enter. Checking the profile, it said Night, but hadn't changed any of the settings.
__________________
*Consumer*, not a developer! I apologize for any inconvenience.
My script to backup /home and /opt
Samsung Galaxy S Vibrant, Huawei S7, N900(retired), N800(retired)
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#23
okay it doesnt support tweakr profiles??
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#24
okay NOW IT SUPPORTS TWEAKR PROFILES


THANKS
 
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#25
Originally Posted by lemmyslender View Post
OK, per request, cat of alarm_queue.ini before running alarmed
Thanks for all the useful info and for reporting the bug
There was a small bug in tweakrprofileswitcher.sh, which is now fixed. As you said, it only changed the name, but didn't set anything.
It's fixed in 0.1.6-3
 

The Following User Says Thank You to shapeshifter For This Useful Post:
Posts: 104 | Thanked: 60 times | Joined on Dec 2009 @ London
#26
How about supporting IM status changes, is that possible in the future?
 

The Following User Says Thank You to qw3rty For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#27
Originally Posted by shapeshifter View Post
Thanks for all the useful info and for reporting the bug
There was a small bug in tweakrprofileswitcher.sh, which is now fixed. As you said, it only changed the name, but didn't set anything.
It's fixed in 0.1.6-3
tested, but does NOT work for me.........

I really want this
 
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#28
shapeshifter: take a look at this, also compare your existing scripts, because there are 100% right ones here:

http://wiki.maemo.org/Phone_control
 
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#29
Originally Posted by f2thak View Post
tested, but does NOT work for me.........
What exactly does not work? Are you sure you have 0.1.6-3 (and not 0.1.6-2)? Please post the output of
Code:
cat /var/cache/alarmd/alarm_queue.ini
and describe step by step what you're doing and what the outcome is (i.e. does the tweakr profile name change or does nothing happen at all etc.)

Originally Posted by rooted View Post
shapeshifter: take a look at this, also compare your existing scripts, because there are 100% right ones here:
http://wiki.maemo.org/Phone_control
Sorry, what's with that? I know about that page. But of course there's nothing on tweakr profiles in there. Normal profile switching works. Tweakr profile switching requires more work to be done, but it seems to work for me (triplechecked if it really adjusted the profile settings etc.)
 
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#30
Getting warmer. Still doesn't switch either regular or tweakr profiles for me. Ran tweakrprofileswitcher.sh from command line. Changes the settings and name, but doesn't exit back to command line.

However, if I use "Command Execution" with the line "/bin/ash /home/opt/alarmed/tweakrprofileswitcher.sh Night" (no quotes) it works!

If you want other info, ask

Thanks
__________________
*Consumer*, not a developer! I apologize for any inconvenience.
My script to backup /home and /opt
Samsung Galaxy S Vibrant, Huawei S7, N900(retired), N800(retired)
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 12:50.