Notices


Reply
Thread Tools
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#31
Originally Posted by lemmyslender View Post
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
That is totally weird. The strange fact is, that if it A) does work when you specify it manually, and B) does change the name of the profile when you use the built-in menu but C) does not change any settings in that case, it would mean that 1.) the script gets run in both cases but 2.) in the second case, something is different in the surroundings. For me, if I define an action using the builtin-menu, the event looks like this:

Code:
[#00000508]
cookie: 1288
trigger: 1268587260
flags: 131072
alarm_appid: Enter_name
alarm_time: 1268587260
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'
And it works! It changes the name and all the settings.

Could you please post the relevant event from /var/cache/alarmd/alarm_queue.ini from both cases? One, where you defined the event manually from command execution, and one where you did it from the built-in function?

Thanks for the help
 
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#32
I just modded alarm.py line 589 to remove the -c and ' from the line. That gives me the same output as the command execution in alarm_queue.ini, and it works. Give me 10 and I'll revert the code and set 2 profile changes, one each way and paste alarm_queue.ini and the results'

*edit* before changing both commands were the same.
__________________
*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)

Last edited by lemmyslender; 2010-03-14 at 18:08.
 

The Following User Says Thank You to lemmyslender For This Useful Post:
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#33
I think I found the problem. there's a superfluos "read" in tweakrprofileswitcher.sh which only gets active (and blocks the script) when running it with ash -c. Let me fix it. (This also explains why it works on my phone, I had a manually copied over version of that script...)

edit: can't update the package at the moment because the maemo autobuilder queue is broken. It's been a couple of hours already. Don't know when it's gonna be fixed.

Last edited by shapeshifter; 2010-03-14 at 17:56.
 

The Following 2 Users Say Thank You to shapeshifter For This Useful Post:
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#34
Could we get relative alarms please?

I've always wanted relative alarms. For example, I want to sleep for an hour. Right now, I have to eyeball the watch (or task switch), compute stuff like an hour 45 minutes, set an alarm, all with red eyes.

I'd like a quick way to set an alarm in relative terms. On NT, I use AT to schedule alarms because it takes relative timing, e.g. one can AT +1:00:00 Alarm.exe (the plus makes it relative). I'm thinking CLI alarms are a bit odd (though I'd love them) but a GUI like Alarmed could be useful, perhaps as a type of alarm?

I would also love presets for that unambiguous date thing. If i want to wake up tomorrow at 7 or Monday at seven I have to do math date with no calendar in sight. For example, date should have a pre-selection popup or a special popup that includes presets like "Tomorrow". It's organic to set an alarm "Tomorrow at 7" not 15th of 3rd month, 2010.

And finally, it would be nice if (assuming this is within the scope of this app) to define alarms, custom-wise. For example, have a command line as an alarm preset. I could get a beep.mp3 and "mplayer /beep.mp3" (whatever) and name it "beep" if I want it to beep every hour, a wakeup alarm isn't always best. (ETA: I know it has command lines, I was suggesting presets)

Well I have a few more but that's basically what's been grinding me about alarms. I wish I had a quick popping app on desktop that does "new alarm" and I'd have three scrollbars, one for day (Today, Tomorrow, Wednesday, Thursday - since today is Monday, tomorrow is Tuesday - and after a few days (2-3), it goes on as 15, 16, 17, etc), the second would be hour and the third minute, ideally with 00, 15, 30 and 45 at the top, followed by 01, 02, 03).

Then it would be easy to add an alarm for tomorrow at 7.
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 

The Following 2 Users Say Thank You to ndi For This Useful Post:
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#35
Originally Posted by shapeshifter View Post
I think I found the problem. there's a superfluos "read" in tweakrprofileswitcher.sh which only gets active (and blocks the script) when running it with ash -c. Let me fix it. (This also explains why it works on my phone, I had a manually copied over version of that script...)

edit: can't update the package at the moment because the maemo autobuilder queue is broken. It's been a couple of hours already. Don't know when it's gonna be fixed.
OK I lied in my previous post. Editing the code lead to different commands in alam_queue.ini, I had made several changes and was mistaken.

But you found the error anyway. Cool

It took forever this today to get app manager to see the update and download the current version. I guess it'll get fixed when it gets fixed.

Looking forward to the new version. In the meantime, I have a workaround anyway.

Thanks for the great program. I'll probably end up using it with ermining to sync multiple calendar with google. The next version of ermining should support command line syncing again. That'll get me away from the buggy MfE and only being able to sync one calendar and eliminate a bug with email related to MfE.
__________________
*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:
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#36
Originally Posted by shapeshifter View Post
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.)
I know there's not anything about tweakr profiles, I was talking about a possibility that you add many predefined functions and also check whether you have right commands (dbus calls without -reply options are a bit faster).
 

The Following User Says Thank You to rooted For This Useful Post:
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#37
New version! See first post for details!

Originally Posted by ndi View Post
Could we get relative alarms please?
Done! Alarmed now supports:
  • In... X seconds/minutes/hours/days
  • Tommorow at xx:xx
  • Next... Monday..Friday at xx:xx
Hope it's working fine! (And I hope I didn't introduce any breakage to old features...)
Also, I'm not all too happy with the spinbox for the number of s/min/h/d. Requires an awful lot of tapping or using the keyboard. And I didn't find a way to make they keyboard automatically switch to "fn" mode for typing in numbers. I'll see if I can improve this.


Originally Posted by ndi View Post
And finally, it would be nice if (assuming this is within the scope of this app) to define alarms, custom-wise. For example, have a command line as an alarm preset. I could get a beep.mp3 and "mplayer /beep.mp3" (whatever) and name it "beep" if I want it to beep every hour, a wakeup alarm isn't always best. (ETA: I know it has command lines, I was suggesting presets)
I'll look into it.

Originally Posted by lemmyslender View Post
Thanks for the great program. I'll probably end up using it with ermining to sync multiple calendar with google. The next version of ermining should support command line syncing again. That'll get me away from the buggy MfE and only being able to sync one calendar and eliminate a bug with email related to MfE.
Cool idea. Glad you like it

Originally Posted by rooted View Post
dbus calls without -reply options are a bit faster.
Ah, thanks for the hint! I didn't know that. I'll adjust them for the next release.
 

The Following 2 Users Say Thank You to shapeshifter For This Useful Post:
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#38
Way cool.

Nothing broken thus far.
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#39
Built-in profile switching still not working for me.

Command line switching via tweakrprofileswitch.sh script still works fine though.
__________________
*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:
Posts: 61 | Thanked: 14 times | Joined on Nov 2009 @ GERMANY
#40
i installed it and time scheduled switching between tweakr-profiles does not work. any recommendations? i allready rebooted the device in case some changes are only applied after rebooot, but that did not change anything?!
 

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


 
Forum Jump


All times are GMT. The time now is 00:36.