![]() |
Run command when light sensor detects certain level?
Is there a way to run a command when the light sensor on the N810 detects a certain level?
I only need this for one time only, it needs to play a certain song when the light turns up. thanks for any help! |
Re: Run command when light sensor detects certain level?
Not directly, but there are scripts that do such things, I believe I have seen a light-sensor based screen-locking script, which could be a good basis for adaptation.
http://talk.maemo.org/showthread.php?t=19127 |
Re: Run command when light sensor detects certain level?
Is it for a birthday surprise or something?
|
Re: Run command when light sensor detects certain level?
probably an alarm to wake him up when the sun rises
|
Re: Run command when light sensor detects certain level?
by the way
how do i re-compile a .deb file to look into codes of software? it would make easier developing new apps for maemo. |
Re: Run command when light sensor detects certain level?
yes there is a program called light-meter that returns the value in lux. I am sure you can write a shell script using it.
|
Re: Run command when light sensor detects certain level?
Quote:
|
| All times are GMT. The time now is 09:59. |
vBulletin® Version 3.8.8