Active Topics

 



Notices


Reply
Thread Tools
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#221
New version 0.2.0-1! You can now toggle (enable and disable) events!

Report if you like it, if it works, or if it doesn't.


edit: updated the screenshot on the first post to reflect the update.
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.

Last edited by shapeshifter; 2010-06-06 at 15:27.
 

The Following User Says Thank You to shapeshifter For This Useful Post:
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#222
a) May I suggest sorting the list of "in" (may be others). Right now, it says "seconds hours minutes days", should be seconds, minutes, hours, days. Also, perhaps a default to "minutes" help? I'm sure few people use a lot of "in 5 seconds" alarms, as it takes 5 seconds to start alarmed

b) My alarms have a dialog that say "clock bd alarm notification snooze" or somesuch nonsense, seem to be non-localized

c) At least in setting 2 alarms in 2 minutes, one checked, one not, both rang. I'll keep testing

d) I clicked the said above alarms, clicked delete, nothing happened. Upon restarting the apps, they were gone, so I'm guessing it doesn't refresh after deleting?

e) It could help if the name checkbox could select text on entry. Makes for faster naming.

Also: Love the checkboxes, mighty useful, should they prove to work.

Perhaps I did something that turned it nuts. Will retry.

-----------

ETA: Retried.
* Added alarm in 1 minutes, name "1"
* Added alarm in 1 minutes, name "2"
* Unchecked "1"
* Locked screen
--
a) Both alarms rang.
b) Phone didn't go back to sleep, as it does when the Nokia alarm rings

Rechecked the delete and they didn't go away. Needs app restart.
__________________
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.

Last edited by ndi; 2010-06-06 at 18:42.
 

The Following User Says Thank You to ndi For This Useful Post:
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#223
Mh that is very odd. I did exactly the same as you did, and in my case, only one alarm rang as expected and it also locked the screen when I had hit "Stop".

Can you please do the same thing, but after step 3, before locking the screen, can you look at
·
Code:
cat /var/cache/alarmd/alarm_queue.ini
and at
Code:
/opt/alarmed/alarmed.py -CL
and tell me what you see, or if possible paste the outputs?

Thanks.

(I'll fix the "clock bd alarm", I was doing some experimentation. The other suggestions I will definitely consider!)
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#224
I'll help in any way I can, by "can" I mean I'm new to the platform and can't code in Python.

So:

Alarmed.py -CL said:
No events specified

Alarm_queue.ini is kinda huge, and has all my old birthday alarms, it's some 40K+ in size, so I'll just paste the alarms that are troubling. If you want the full file, just ask and I'll attach.

Here we go:
Code:
[#000019db]
cookie: 6619
trigger: 1276008548
message: 1
flags: 131072
alarm_appid: 1
alarm_time: 1276008548
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: 2
action0.flags: 65
action0.label: cloc bd alarm notification snooze
action1.flags: 64
action1.label: cloc_bd_stop

[#000019dc]
cookie: 6620
trigger: 1276008568
message: 2
flags: 131072
alarm_appid: 2
alarm_time: 1276008568
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: 2
action0.flags: 65
action0.label: cloc bd alarm notification snooze
action1.flags: 64
action1.label: cloc_bd_stop
Finally, I waited for the alarms to play (I had over 1 minute, I think 10, so I could run cat), and they both played. Tried snooze and stop, no difference, they still played. However, the screen went dark this time.

Either clicking stop instead of snooze makes a difference, or it mattered that enough time passed. On my first attempt, I set 1 minute and locked via slider. This time I set 10 and left it to lock.

Also, the first time I clicked snooze.

Will keep running tests.
__________________
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.
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#225
Oh, one more thing. The deletion issue brought another: editing and alarm now duplicates it. Presumably, instead of editing, you delete and readd the alarm, so editing duplicates.

So I started to exit app every modification. As a result, I noticed that by unticking a task, exiting and returning, the task is still checked. So that solves the ringing mistery, I guess.
__________________
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: 187 | Thanked: 345 times | Joined on Nov 2009
#226
Thanks, are you sure you ran

/opt/alarmed/alarmed.py -CL as user and not as root? Because you have to run it as user so that your events get displayed.

Indeed editing an alarm removes the old one and adds a new one, but this has been like this forever. Enabling and disabling alarms is handled the same way, but something must be throwing it off for you but not for me. I can edit or enable/disable events and nothing weird happens.



edit: oh I totally forgot, please run /opt/alarmed/alarmed.py from the CLI (as user), which will run the GUI, then try enabling/disabling/editing some events and post any suspicious output you get in the terminal while doing it. Thanks
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.

Last edited by shapeshifter; 2010-06-09 at 08:07.
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#227
Originally Posted by shapeshifter View Post
Thanks, are you sure you ran /opt/alarmed/alarmed.py -CL as user and not as root?
No. :P

Running now. Oh yes, _now_ we have something.

Originally Posted by shapeshifter View Post
I can edit or enable/disable events and nothing weird happens.
Editing works for me too. It's deletion that is odd (deletes but doesn't refresh) and disabling (UI works but doesn't disable). As a corollary of the delete-doesn't-refresh, editing duplicates entries.

Aaaaand the email is here:

Code:
~ $ /opt/alarmed/alarmed.py -CL 
Event ID: 3728 
    schedule: Daily 
    title: To  silent 
    content: Silent 
    ttime: 1269212400 
    datetime: 22.03.2010, 01:00 
    type: Switch profile 
Event ID: 3714 
    schedule: Daily 
    title: To  live 
    content: General 
    ttime: 1269230400 
    datetime: 22.03.2010, 06:00 
    type: Switch profile 
Event ID: 6694 
    schedule: In... 
    interval: Minutes 
    enabled: 1 
    number: 10 
    title: 1 
    ttime: 1276101461 
    datetime: 09.06.2010, 19:37 
    type: Alarm 
Event ID: 6695 
    schedule: In... 
    interval: Minutes 
    enabled: 1 
    number: 10 
    title: 2 
    ttime: 1276101478 
    datetime: 09.06.2010, 19:37 
    type: Alarm 
~ $
What SHOULD be in there is:

a) set Silent profile at 1 AM (works)
b) set General profile at 6 AM (works)
c) Alarm 1, in ten minutes, DISABLED
d) Alarm 2, in ten minutes, ENABLED

This is after adding alarm 1, adding alarm 2, unticking alarm 1 and exiting app.

Originally Posted by shapeshifter View Post
edit: oh I totally forgot, please run /opt/alarmed/alarmed.py from the CLI (as user), [...] and post any suspicious output you get in the terminal while doing it. Thanks
Now we're getting somewhere:

~ $ /opt/alarmed/alarmed.py
:: Staring alarmed GUI
TypeError: toggleEvent() takes exactly 1 argument (2 given)
TypeError: toggleEvent() takes exactly 1 argument (2 given)

~ $

What I did was I started app (it has 4 alarms, all enabled) and I clicked on alarm 1 (select) and tapped the tickbox to untick.

Further testing suggests the message appears every time I click on an alarm, be it to select it or to untick/tick it.

No other messages appear whatever I do. I didn't go adding alarms or deleting them, as those work (kinda). Tapping on an alarm then tapping Delete gets me the message above once, when the item is tapped. Nothing happens when Delete is pushed (save for the actual alarm really being deleted). Exiting and re-starting the app gets me the alarm I deleted as deleted (aka, gone) but no other messages.

ETA: What timezone are you in? Perhaps we could make this go faster, if you want. Your message looks to me like it's been posted at 00:43 and edited 11:07 (AM). I'm on EET.
__________________
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.

Last edited by ndi; 2010-06-09 at 16:43.
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#228
I have added an alarm which should start only once and that worked but after that this alarm is still active in the list. It should be deleted in my opinion. Is that possible?

Another thing is that the alarm dialog was strange: Instead of the two normal button captions for "Snooze" and "Stop" it said something like "cbl_alarm_snooze" and "cbl_alarm_stop" but both buttons worked.
 
Posts: 4 | Thanked: 4 times | Joined on Feb 2010
#229
at last: Radio Alarm Clock

Daily command execution at 6:45 of /home/user/start_radio.sh

and here is start_radio.sh:

Code:
#!/bin/sh

#unlock phone
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"unlocked" | echo ""

sleep 5

# connect to known internet connection
dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"[ANY]" uint32:0 | echo ""

sleep 20

# open browser
/usr/bin/browser_dbuscmd.sh open_new_window | echo ""

sleep 5

# load BBC Radio 4 live stream in browser
/usr/bin/browser_dbuscmd.sh load_url http://www.bbc.co.uk/iplayer/console/bbc_radio_fourfm | echo ""
many thanks to shapeshifter for at last making one of my favourite use cases possible

Last edited by lrose; 2010-06-19 at 13:32. Reason: works now
 

The Following 3 Users Say Thank You to lrose For This Useful Post:
GEONXT's Avatar
Posts: 64 | Thanked: 21 times | Joined on Dec 2009 @ New Zealand
#230
Can this app auto connect my wifi and disconnect?. Also when im at work connect to my 3g internet? If so can someone give the code to do so?
 
Reply


 
Forum Jump


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