[Announce] "Alarmed" scheduling App (automatic profile switching, gprs-data-resetting...)
Hi there.
I wrote a small App that acts as a GUI front-end and CLI-wrapper to maemos alarmd scheduler back-end. It's written in python and uses the PySide bindings to Qt. Feature list:
Notes:
Here are some screenshots: http://imgur.com/vbC2t.png http://imgur.com/kdmzH.png http://imgur.com/P3kCN.png http://imgur.com/5R6Fm.png http://imgur.com/jbDoA.png Changelog: 0.1.4-2:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Bug in gprsdataresetter.py: Type of gprs_reset_time key is string, so the proper command line input is:
gconftool-2 -s /system/osso/connectivity/network_type/GPRS/gprs_reset_time --type=string $(date +%s) Stumbled upon it by chance. Was looking for command line option to reset GPRS counter (to use it with fcron), found it here! Thanks. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Thanks! This will be incredibly useful once you've got it stable..
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Please, add a option to go offline ( fligth mode ) and go online ( normal mode ), thanks
cortex:/home/opt/alarmed# cat go-online.sh #!/bin/sh /usr/bin/dbus-send --system --dest=com.nokia.mce --type=method_call /com/nokia/mce/request com.nokia.mce.request.req_device_mode_change string:"normal" cortex:/home/opt/alarmed# cat go-offline.sh #!/bin/sh /usr/bin/dbus-send --system --dest=com.nokia.mce --type=method_call /com/nokia/mce/request com.nokia.mce.request.req_device_mode_change string:"offline" |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Do I get it right this is a kind of crond with gui? That would be fantastic! But still I'm waiting for it getting more stable as I really depend on a working device :rolleyes:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
new version! see first post for updates.
Quote:
Quote:
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
thank you very much, exactly what I was looking for :)
I think the package should depend on python-alarm, it was not installed automatically in my case… |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Thanks a lot for your work, very much appreciated.
Unfortunately it will not come up when I try to start it - nothing happens. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
@corwin: have a look at my post above, install python-alarm (apt-get install python-alarm as root)
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
hcm, shiny, that did the trick. Thanks a lot!
Data counter reset set up, happy :) Best regards, Corwin |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
i wish someone would make an app like this that can swap between "tweakr" profiles at given times
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Hi,
first of all: I do love this application. It's easy to use and has a nice interface. It also seems to work perfectly. One little bug: 1. Select "New event" 2. Select "Alarm" and switch to "Command execution" You will see input fields "Enter name" and "Enter command" In both of them the first letter always is upper case. If you hit "Shift" first the first letter in the line is lower case. Thanks a lot, Uwe |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
nice appl :) but why there is not "first day of a month" option while there is last day option? hehe :)
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
new version! see first page for details
Quote:
Quote:
Btw, note that now it should be possible to put in complete commands into the line including arguments. So it's no longer neccessary to write seperate scripts and put them in. Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Very interesting app! Is there a way to add a feature of day/time based call forwarding? ie. forward calls on weekdays to google voice. thanks.
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
new version! see first post for details!
Alarmed now supports tweakr profile switching! Quote:
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
I've installed 0.1.6-2 and tried a couple times to set profile switching, both tweakr created and fro general to silent.
Neither appear to be working? |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
try to set the profile with a timing rule and post any output it gives (e.g. to a service like www.pastie.org or in this forum.) also, please paste the complete outpu of 'cat /var/cache/alarmd/alarm_queue.ini' so I can debug the problem. thanks :) |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
OK, per request, cat of alarm_queue.ini before running alarmed
Code:
~ $ cat /var/cache/alarmd/alarm_queue.ini Code:
~ $ /opt/alarmed/alarmed.py Code:
~ $ cat /var/cache/alarmd/alarm_queue.ini |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Went into opt/alarmed and ran tweakrprofileswitcher Night
Code:
/home/opt/alarmed $ /bin/ash tweakrprofileswitcher.sh Night |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
okay it doesnt support tweakr profiles??
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
okay NOW IT SUPPORTS TWEAKR PROFILES :D
THANKS |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
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 |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
How about supporting IM status changes, is that possible in the future?
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
I really want this |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
shapeshifter: take a look at this, also compare your existing scripts, because there are 100% right ones here:
http://wiki.maemo.org/Phone_control |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
Code:
cat /var/cache/alarmd/alarm_queue.ini Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
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 |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
Code:
[#00000508] 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 :) |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
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. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
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. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
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. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
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. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
New version! See first post for details!
Quote:
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. Quote:
Quote:
Quote:
|
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Way cool.
Nothing broken thus far. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Built-in profile switching still not working for me.
Command line switching via tweakrprofileswitch.sh script still works fine though. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
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?!
|
All times are GMT. The time now is 23:42. |
vBulletin® Version 3.8.8