maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   REM-aware alarm clock (https://talk.maemo.org/showthread.php?t=23831)

baksiidaa 2008-09-23 20:04

REM-aware alarm clock
 
I read an article recently (I can't remember where, unfortunately) about an alarm clock that works with a wireless wristband accelerometer. You set a 1/2-hour window for the alarm to go off, and when it first senses movement during that window it sounds the alarm. The idea is that it's easier to wake up if you aren't in a deep sleep, and you don't move when you're in a deep sleep.
I think this is a great idea, but I don't want to shell out the money for the clock when my N800 should be capable of doing the same thing, as long as I can find a suitable accelerometer. Is anyone interested in this? Any ideas for a bluetooth accelerometer? I suppose you could strap a Wii-mote to your wrist, but that seems a bit big :D.

gemniii42 2008-09-23 20:18

Re: REM-aware alarm clock
 
Great idea!
However I rarely use an alarm clock, and my wife is motionless for hours :(

baksiidaa 2008-09-23 20:26

Re: REM-aware alarm clock
 
I found plans/schematics for a small bluetooth accelerometer here: http://www-static.cc.gatech.edu/gvu/...sources/btacc/. I might look into making this and trying it out.

pope523 2008-09-23 21:32

Re: REM-aware alarm clock
 
Lifehacker had a story today about an app for a Nokia mobile phone that uses the microphone to estimate your sleep cycles and do just what you're describing (but based on sound data rather than movement data). It's called HappyWakeUp.

It would be groovy if someone make it work on the N800, since my N800 sits on the night stand next to the bed anyway.

Joe

baksiidaa 2008-09-23 22:50

Re: REM-aware alarm clock
 
Quote:

Originally Posted by pope523 (Post 226704)
Lifehacker had a story today about an app for a Nokia mobile phone that uses the microphone to estimate your sleep cycles and do just what you're describing (but based on sound data rather than movement data). It's called HappyWakeUp.

It would be groovy if someone make it work on the N800, since my N800 sits on the night stand next to the bed anyway.

Joe

Are you sure it was on Lifehacker? I can't seem to find the story you're referencing. Sounds like a good idea, but only if you're the only one in the bedroom.

pope523 2008-09-23 23:11

Re: REM-aware alarm clock
 
Maybe it wasn't Lifehacker. It could have been Slashdot or something else.

Here's the article that it linked to, in any case.

http://blogs.computerworld.com/cell_...s_to_you_sleep

Texrat 2008-09-24 02:22

Re: REM-aware alarm clock
 
Quote:

Originally Posted by gemniii42 (Post 226684)
Great idea!
However I rarely use an alarm clock, and my wife is motionless for hours :(

Arg... you just fed me a great line for a joke but I already misfired once... :o

Vadi 2009-02-12 04:37

Re: REM-aware alarm clock
 
Guys, any news about this topic? I'm seriously thinking about writing python script for this purpose... there is easy project for maemo - giving you high level manipulation interface for multimedia. So, theoretically, you can monitor sound level from N800/N810 microphone and log it somewhere, or trigger alarm in a time window, like HappyWakeUp does.

But even thought maemo's easy package is under GPL 2.1 license, I couldn't find any source codes of it. And it gives you API for writing sound to disk, not to analyze it at the same time... May be there are other programs, packages that can do that?

Rassilon7 2009-02-12 04:58

Re: REM-aware alarm clock
 
Quote:

Originally Posted by Texrat (Post 226756)
Arg... you just fed me a great line for a joke but I already misfired once... :o

I used to have that problem too...

jolouis 2009-02-12 14:35

Re: REM-aware alarm clock
 
Two points:

First off, rather than trying to build another clock/alarm wake up program, I suggest working out this feature and then contributing it towards ciroip's awesome FlipClock app (it's written in Python so adding extra stuff isn't very hard); I think he's still working on it, though he swears about once a day that he's not a programmer and is playing around with it more than anything else. Still a good app though with lots of room for additions/enhancements.
Secondly, as far as audio checks go, I built an app in C that reads the input level of the microphone and can perform tasks based on what that level is (i.e. how much noise the mic pics up), but it's based on alsa libraries and I don't remember if Maemo actually utilizes Alsa or not... I know there's some old ESD implementation, but I don't know if ALSA is underlying that, or? Of course if there was a way to do it from python itself that might be a better solution, but I'm not a big python guy... programmer, yes, python, not so familiar with it.


All times are GMT. The time now is 16:37.

vBulletin® Version 3.8.8