maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting) (https://talk.maemo.org/showthread.php?t=46594)

lemmyslender 2010-03-16 22:37

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Guys, could you take the argument elsewhere please? It's up to shapeshifter to do what he wants with his app. If you disagree, grab the code and change it.

Now please, lets keep this thread about alarmed any any issues, etc, not personal arguements.

Thanks in advance.

qwerty12 2010-03-16 22:57

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Installed; a very useful app; thanks!

Some suggestions for built-ins:
(sorry if these have already been suggested and I do recognise that these could be just as easily typed in...):

Set brightness like how the Display applet does it:
gconftool -s /system/osso/dsm/display/display_brightness -t int %d

Set the network mode:
http://talk.maemo.org/showpost.php?p=510860&postcount=2

And toggle the phone's radio:
dbus-send --print-reply --system --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:false ["true" to enable]

JohnLF 2010-03-17 00:21

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Also a feature request: is it possible for a little tickbox on the command execution entry that says "Run as root" ?

lemmyslender 2010-03-17 01:11

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Heck, as long as we're throwing out requests

How about an enable/disable feature? That way you could "turn off" an alarm without removing it and having to set it up again later.

x-lette 2010-03-17 08:45

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by lemmyslender (Post 569780)
Guys, could you take the argument elsewhere please? It's up to shapeshifter to do what he wants with his app. If you disagree, grab the code and change it.

Now please, lets keep this thread about alarmed any any issues, etc, not personal arguements.

You're right. Just some concluding words from my side. I see, my text was mistakable and the intention didn't get as clear as I thought. I will try to revise my statements and open a brainstorm about an approach to enable such an universal structure.

Quote:

Originally Posted by jcompagner (Post 569689)
But to come back to the tweakr stuff. So if you have already a "tweakerprofileswitcher.sh" bash file, so why the integration? Just call that file from an external command...

Maybe it's just the way it already works? Don't know as I didn't take a look at sourcecode yet.

Quote:

Originally Posted by lemmyslender (Post 569874)
How about an enable/disable feature? That way you could "turn off" an alarm without removing it and having to set it up again later.

Very good point! Thought about it last night but of course already forgotten it this morning :rolleyes:

skalogre 2010-03-17 18:22

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Ok, am I missing something? I haven't been able to successfully setup an automatic profile switch. I have three profiles (using Tweakr, of course) and have one event to change to a "Work" profile at 0830 and one to change back to "General" at 1730. As far as I can tell, no switching occurs.

lemmyslender 2010-03-17 18:43

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by skalogre (Post 570842)
Ok, am I missing something? I haven't been able to successfully setup an automatic profile switch. I have three profiles (using Tweakr, of course) and have one event to change to a "Work" profile at 0830 and one to change back to "General" at 1730. As far as I can tell, no switching occurs.

It's working for me, I think I must have had shapeshifter pulling his hair out. :)

A good first step is to post the output of:
cat /var/cache/alarmd/alarm_queue.ini

This should give us some idea of whether or not the alarms are being created properly. Also check to make sure you have the latest version.

skalogre 2010-03-17 19:46

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Hmm...I have to be honest, I cannot really make out what this means. I wonder if it has to do with the capitalisation on 'general' and 'Office'?



[#000000ed]
cookie: 237
trigger: 1268872200
flags: 131072
alarm_appid: Switch_back_to_general
alarm_time: 1268785800
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/alarmed/profileswitcher.sh general'
recurrence_tab0.mask_min: 1073741824
recurrence_tab0.mask_hour: 131072
recurrence_tab0.mask_wday: 62

[#000000ee]
cookie: 238
trigger: 1268926200
flags: 131072
alarm_appid: Starting_work
alarm_time: 1268753400
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 Office
recurrence_tab0.mask_min: 1073741824
recurrence_tab0.mask_hour: 256
recurrence_tab0.mask_wday: 62

x-lette 2010-03-17 19:56

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
At first glance I see a difference in the name of the called script. First it is called profileswitcher.sh, next time it's called tweakrprofileswitcher.sh. Maybe there is the problem? You could try deleting and newly adding the entries. Also check you have installed the latesr version of alarmed.

lemmyslender 2010-03-17 19:59

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
My alarms have /bin/ash /opt/alarmed/tweakrswitchprofile.sh profilename

From what shapeshifter has said, "general" should have the lowercase g.

Check your version, should be 0.1.7-3 and maybe remove and redo your alarms.

Also, tweakr replaces the general profile settings with your settings. So, your settings for Office overwrite the General settings. With the latest version of Tweakr, I no longer have a General setting, when switching profiles, I have Normal (daytime), Night (night, duh), and Silent.

I use alarmd to switch from Normal to Night and back. If your profile is set to Office, it is the General Setting, so switching to General shouldn't change anything. Maybe try setting up Office and Home profiles and switch between those?


All times are GMT. The time now is 04:15.

vBulletin® Version 3.8.8