View Single Post
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#36
I would like to have a simple application which can be turned on/off by executing (no options, no GUI) and which sleeps for 10 seconds after activation and then monitors the accelerometer until it will be turned off again. If the accelerometer detects movement for more than two seconds an alarm sound (maybe one of the preinstalled sounds) should be played after five seconds at the highest volume level. This could be handy when you have to charge the phone while you are sleeping / in another room and other people have access (e.g. travelling). If someone could tell me how to detect accelerometer movements over a given time and how to play a sound at the highest volume within a shell script I could write the rest of the script and release it here.